What a skin is, and what it is not
Two sites in the wild wear a look the engine never shipped: one dressed as a Hugo theme, one as Ghost. Neither forked the engine, neither edited a template, and both survive git pull untouched. This guide is what those two cost to build -- the mechanism first, then the three places where a skin and the engine can quietly disagree, and last the checks that would have caught every mistake made along the way.
It is not a CSS tutorial. Everything here is specific to this engine.
A skin is one stylesheet that repaints what is already on the page. The engine ships its own in skins/ and a site picks one with site.skin: in config/site.yml -- classic, the look blog.sh has always had, unless it says otherwise, or minimal: paper, ink and one colour, the base of the Minimal family -- or one of its variants: minimal-literal (a book's setting: one column, a serif, a reader's measure), minimal-journal (a diary, read by its days: a line of time down the left, the date its heading), minimal-manual (a manual: a series is a chapter, the menu -- chapters, and group: true over them -- down the side from 1100px, the sections of a page numbered), minimal-pictorial (a wall of pictures where the listing stood, three across, the front page's lead a row of its own; layout.lead_card and a page of nine or twelve posts suit it) or minimal-terminal (a page the way a terminal would print it, two faces and square brackets; it sets the site's name and claim as text, so it wants banner.show_image: false and the two show_ keys for the words on). A variant is minimal whole with a layer of its own after it -- Terminal, written over classic, stands on classic less what it says again, and Pictorial narrows minimal's rules for a post in a listing to the one card that stays a row -- and its file in skins/ is made rather than written: skins/src/build.rb puts the two together from skins/<base>.css and skins/src/<layer>.css, so a change to the base reaches every variant, and the suite says so when one was not made again. Edit the layer and run ruby skins/src/build.rb; never edit the made file. The build publishes /assets/css/site.css as the engine's own rules (assets/css/site.css: the fonts, the focus ring, media that keep to their column, the lightbox), then the skin, then the engine's last word -- that a control arriving hidden stays hidden, which no skin may undo. Only the skin chosen reaches the server, and without its comments: the sources explain themselves at length, and that is for whoever edits them (lib/css_text.rb).
A skin of your own is one stylesheet of yours, loaded after all of that, that repaints what is already on the page. The rest of this guide is about that one.
Before writing one, spend ten minutes with ./style.sh. A surprising amount of what looks like skinning is a setting: the colour palette (seven shipped, or your own), the banner and what is written over it, the menu, the sidebar and its widgets, whether a post opens with a lead image -- and which of the skins the engine ships the site wears, under Layout. A site that only wants different colours does not want a skin at all -- it wants a palette, and the palette keeps working when the engine changes.
Reach for a skin when the answer is "the same site, drawn differently": other typography, other spacing, cards instead of rules, a masthead that looks like somebody else's masthead. That is what a stylesheet loaded last can do without owning anything.
