Grain Rail.
A late-night community look: film grain, a ruled log header and soft rounded tiles. Warm near-black pages under a fine film grain, with a header drawn as two rows of thin boxes holding the nav, a live clock and a now-playing rail. Lowercase Outfit headlines, tiny DM Mono credits, rounded archive tiles, periwinkle join pills and a bevelled grey pill with red text for anything live. Asks sit in dashed rounded boxes and every page ends on a giant lowercase wordmark.
Use it with Claude Code or Codex
Download the kit into your project, then paste this prompt. Fill in the last line. New to this? See how it works.
Build my page in the Grain Rail style. Read DESIGN.md first and follow it exactly. Use the tokens in tokens.css and the classes in components.css; don't invent new colors, fonts, radii or shadows. The example pages (demo.html, pricing.html, blog.html, signup.html) show the style on landing, pricing, blog post, and sign up. My page: [describe what you're building, who it's for and the sections you need]
Colors
Click a hex to copy it.
Fonts
All free on Google Fonts.
How the Grain Rail style works
From the kit's DESIGN.md, the file your AI reads first. What is DESIGN.md?
A late-night community look. The page is a warm near-black with a fine film grain over everything, like a photo of a dark room. The header is a ruled log sheet: two rows of thin paper-colored boxes holding the wordmark, the nav, a live clock and a "now" rail with a small play triangle. Headlines are a round geometric sans in lowercase, set large and a little tight. Credits, dates and tags are tiny mono. The archive is a grid of soft rounded square tiles with the credit line above a medium title. Buttons are pills: periwinkle for joining, and a bevelled grey pill with red text for anything happening right now. Asks sit in dashed rounded boxes, and every page ends on a huge lowercase wordmark. It feels like a station or studio that is still open when everything else has closed: friendly, handmade and a bit underground.
Use it for: member-run studios and co-ops, community radio, late-night venues, makerspaces, clubs with a schedule or archive, nonprofits funded by their members, anything with a "now happening" line. Avoid it for: banks and insurance, medical products, bright kids brands, luxury retail, anything that should feel corporate or squeaky clean.
Read the full style guide: fonts, color, type scale, components and page recipes
How to use this file
Give this file, tokens.css and components.css to your AI coding tool and say:
Build [your page] in the Grain Rail style. Follow DESIGN.md exactly. Use the tokens in tokens.css and the classes in components.css; don't invent new colors, fonts, radii or shadows.
demo.html is a complete landing page built only with the kit. pricing.html, blog.html and signup.html show the other page types. The example product is Night Kiln, a members' pottery studio open from 6pm to 2am.
Fonts
All free on Google Fonts:
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
| Role | Font | Use |
|---|---|---|
| Display | Outfit 500 (600 for the footer wordmark) | Headlines, always lowercase, letter-spacing -0.03em, line-height 1.02. |
| Body | Outfit 300 to 400 | Paragraphs (300 for leads), nav, buttons, tile titles, form inputs. |
| Meta | DM Mono 400 | Tiny credits, dates, tags, labels, footer columns. 11.5px. |
Color
| Token | Hex | Role |
|---|---|---|
--gr-black |
#0B0B0A | The page, inverted text on paper |
--gr-soot |
#161614 | Inputs, tiles without art |
--gr-ash |
#24231F | Hover on soot |
--gr-paper |
#EEEDE6 | Text, every hairline, the featured plan, small round buttons |
--gr-mute |
#8E8C84 | Secondary text, mono meta |
--gr-peri |
#8AA2FF | The one action color: join buttons, links, current nav item, one highlighted word in a headline |
--gr-flare |
#FF4A3D | Live only: the dot, the text in the bevelled pill, "firing now" badges, errors |
--gr-glaze-* |
#3F5B55 / #6B3B2E / #2F3A5E / #7A7466 / #C98A5A | Backdrops for drawn art tiles only, never for text or UI |
The grain is --gr-grain, an inline SVG noise laid over the page by body::before. Keep it on every page.
Type scale
| Token | Size | Use |
|---|---|---|
--gr-size-mark |
72 to 300px | Footer wordmark |
--gr-size-hero |
44 to 104px | Page headline |
--gr-size-h1 |
36 to 64px | Article title |
--gr-size-h2 |
28 to 42px | Section titles |
--gr-size-h3 |
22px | Small titles |
--gr-size-lead |
20px | Intro paragraphs, weight 300 |
--gr-size-body |
17px | Body |
--gr-size-nav |
18px | Header rows |
--gr-size-meta |
11.5px | Mono meta |
Shape and space
- Hairlines are 1px
--gr-line(paper at 90%) for the header boxes, plan cards and ruled logs. Use--gr-line-softfor rows inside content. - Radius: 16px for small tiles, 22px for feature cards, plan cards, forms and asks, full pills for buttons, badges, selects and inputs. Nothing has square corners except the header boxes.
- No drop shadows. The only depth is the bevel on
.gr-btn--liveand a faint 1px ring on tiles. - Dashed rounded boxes (
--gr-border-dash) are for asks: donate, join, sliding scale. - Space on an 8px base:
--gr-space-1to--gr-space-9(4 to 112px). Sections are 72px apart. Gutter is 16 to 28px.
Components (in components.css)
- Header
.gr-head:.gr-head-mark(lowercase wordmark, spans both rows), two.gr-head-rows. Row one holds.gr-navand.gr-clock; row two holds.gr-nowwith.gr-triand a centred.gr-now-text. - Buttons
.gr-btnplus--peri,--paper,--ghost,--live(bevelled grey, red text, with.gr-dot),--sm,--block..gr-icon-btnis a small paper circle ("i", arrows). - Badges
.gr-badge(outlined mono pill),--live,--peri..gr-dotand.gr-dot--pulsefor live. - Hero
.gr-hero,.gr-hero-grid,.gr-hero-title(wrap one phrase in<em>for periwinkle),.gr-hero-row. - Feature cards
.gr-featureswith.gr-feature: tall rounded art card, title top left,.gr-feature-footwith.gr-playbottom left. Art goes in.gr-feature-arton a.gr-glaze--*backdrop. - Archive
.gr-filtersof.gr-selectpills, then.gr-tilesof.gr-tile: an 84px rounded.gr-tile-thumb, mono credit,.gr-tile-title,.gr-tags..gr-pagerbelow. - Ask
.gr-ask, a dashed rounded centred box. - Log
.gr-logwith.gr-log-row(mono label, bold line, badge). - Ticker
.gr-tickerand.gr-ticker-track, always inside a wrapper that clips. - Pricing
.gr-plans,.gr-plan,.gr-plan--featured(inverted to paper),.gr-plan-name,.gr-price,.gr-list,.gr-faq. - Article
.gr-article,.gr-article-head,.gr-article-title,.gr-byline,.gr-prose(h2, blockquote in a dashed box with a mono cite),.gr-figure. - Forms
.gr-card,.gr-form,.gr-field,.gr-label(mono, lowercase),.gr-input(pill),.gr-textarea,.gr-choiceswith.gr-choicepills,.gr-check,.gr-help,.gr-error. - Footer
.gr-foot,.gr-foot-mark(huge lowercase wordmark),.gr-foot-colsof boxed mono.gr-foot-cols. - Drawn art fill helpers
.gr-f-*for inline SVG (paper, black, each glaze, peri, flare, shade, shine).
Pages in this kit
demo.html: landing page with hero, three feature cards, filtered archive grid, ask box, kiln log and ticker.pricing.html: three plans (middle one inverted), sliding-scale ask, what's-included log, FAQ.blog.html: journal post with drawn figure, dashed pull quote and related tiles.signup.html: join form with pill inputs and pill choices beside a drawn art card.
Page recipe
.gr-headwith the wordmark, nav, live clock and a "now" line. Never drop the second row: it is the signature..gr-hero: a mono meta line, a lowercase headline with one<em>phrase, a light lead, then a periwinkle pill and an optional live pill.- A row of three
.gr-featurecards with drawn art on glaze backdrops. - The archive: pill filters, then a four-column grid of tiles with mono credits.
- A dashed
.gr-ask. - A
.gr-logof what's happening tonight, then a ticker with a small join pill. .gr-footwith the giant wordmark and boxed mono columns.
Pricing recipe: hero with a meta line and short lead, .gr-plans with the middle plan --featured, a .gr-ask for a cheaper route, a .gr-log of what's included, then .gr-faq beside a small title.
Article recipe: .gr-article centred at 680px, outlined mono badges, lowercase title, ruled .gr-byline, .gr-prose with a lead, one drawn figure and one dashed blockquote, a closing .gr-ask, then three related tiles.
Sign-up recipe: two columns. Left: meta, headline, lead and a drawn art card. Right: .gr-card form with mono labels, pill inputs, .gr-choices for options, a check, and a periwinkle submit.
Don'ts
- Don't use uppercase or title case for headlines. Lowercase only.
- Don't add drop shadows, gradients on surfaces, or glow.
- Don't use periwinkle and red together on one button. Periwinkle is for joining, red is for live.
- Don't put text on the glaze colors except feature card titles in paper.
- Don't square off cards or buttons. Only the header boxes are square.
- Don't remove the grain or the second header row.
- Don't use em dashes in copy.
The reference
The site this style was studied from. The kit uses its own colors, content and code.
Similar styles
Homemade-web nostalgia: stacked color bands, chalk doodles and framed little pages.
A care package from a pen pal: blush paper, airmail stripes and tilted snapshots.
A ruled white page with a left rail, rose pills and one hand-drawn magenta asterisk.
A hand-drawn neighborhood style where ink-outlined pastel shopfronts line a pale diagonal street.