Spark Rail.
Bright white pages, chunky gradient headlines and a colorful command-line panel. White pages and flat gray tiles with no borders, big rounded Fredoka headlines filled with a hot magenta to violet gradient, and Figtree for everything else. A four-point sparkle replaces bullets and logos, and one dark rail panel per page shows real information as a colorful command line.
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 Spark 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 Spark Rail style works
From the kit's DESIGN.md, the file your AI reads first. What is DESIGN.md?
Bright, quick and a little bit loud. Clean white pages and flat gray tiles do the quiet work, while big rounded headlines filled with a hot magenta to violet gradient do the shouting. A four-point sparkle stands in for bullets, logos and the odd letter, and one dark "rail" panel per page shows real information as a colorful command line: time in pink, places in mint, prompts in sky blue. It feels like a friendly tool made by people who love their craft, nerdy without being cold.
Use it for: booking apps, community services, clubs, hobby tools, indie software, developer tools that want to feel welcoming, consumer apps with a playful streak. Avoid it for: luxury, finance that must feel sober, healthcare where calm matters more than energy, long-form editorial sites.
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 Spark 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 (a landing page), pricing.html, blog.html and signup.html are complete example pages for an invented product, Laneline (pool lanes and swim lessons), built only with the kit.
Fonts
All free on Google Fonts:
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
| Role | Font | Use |
|---|---|---|
| Display | Fredoka 600 to 700 | The hero wordmark, page titles, section headings, prices, big numbers, quotes. Tight tracking, rounded and chunky. |
| Body | Figtree 400 to 700 | Paragraphs, nav, buttons, forms, the spaced uppercase tagline. |
| Mono | JetBrains Mono 400 and 600 | Only inside the rail panel, keyboard hints and inline code. |
Color
| Token | Hex | Role |
|---|---|---|
--sr-white |
#FFFFFF | The page background |
--sr-tile |
#F4F3F6 | Feature tiles, plan cards, inputs, secondary buttons, every second section |
--sr-tile-2 |
#EAE8EF | Hover on tiles |
--sr-line |
#E3E0E9 | Table rules, the footer rule, card outlines |
--sr-ink |
#1E1B26 | Headlines and body text |
--sr-soft |
#5F5A6B | Leads and secondary text |
--sr-magenta |
#E3127A | The main accent: primary button, eyebrow, focus rings, the featured plan outline |
--sr-violet |
#8A2BE2 | The other end of the gradient and the uppercase tagline |
--sr-blush |
#FCE4F0 | Soft badges and callouts |
--sr-rail |
#22202B | The dark rail panel and the closing band |
--sr-gradient runs magenta to violet at 100 degrees. Rail token colors (--sr-rail-mint, --sr-rail-sky, --sr-rail-pink, --sr-rail-sun) live only inside rail panels.
Rules:
- White first. Tiles are gray on white, or white on a gray section. Never gray on gray.
- The gradient is only ever on text (.sr-grad), the sparkle, the logo badge, step numbers and the featured plan badge. Never on a button or a big background.
- Buttons are solid magenta, never gradient.
- One rail panel per page, plus at most one dark closing band.
Type scale
| Token | Size | Use |
|---|---|---|
--sr-text-hero |
clamp(56px, 10vw, 132px) | The landing wordmark: the product name, lowercase, with a sparkle tucked between syllables |
.sr-page-title |
clamp(44px, 7vw, 84px) | Page titles on inner pages, often one gradient line over one ink line |
--sr-text-h2 |
clamp(32px, 4.4vw, 52px) | Section headings |
--sr-text-h3 |
20px | Tile and step titles |
--sr-text-lead |
clamp(18px, 2vw, 23px) | The sentence under a headline, soft gray, max 600px |
--sr-text-body |
16px | Body; articles use 18px |
The tagline under the hero wordmark is Figtree 500, uppercase, tracked at 0.22em, in violet. Headlines are short and plain ("Free to swim. Fair for pools."). Sentence case except the wordmark.
Shape and space
- No borders on tiles, cards or inputs: they are flat fills. The only outlines are the 2px magenta ring on the featured plan and on a focused input or chosen option.
- Radius: 18px on plan cards and the sign-up card, 12px on tiles and the rail, 8px on inputs and the search pill, pills on buttons and badges.
- Shadows: almost none. The rail gets one deep soft drop shadow (
--sr-shadow-rail), and the primary button gets a magenta glow on hover. Nothing else floats. - Sections: 64px to 112px vertical padding. Container 1080px, text 700px. Tiles sit 16px apart.
- Motion: buttons lift 1px on hover, the rail caret blinks. That is all.
Components (in components.css)
.sron<body>,.sr-container,.sr-narrow,.sr-center,.sr-sectionwith--tileand--rail.sr-nav,.sr-logowith.sr-logo__badge,.sr-searchwith.sr-kbd,.sr-nav__links(add.sr-hide-smto links that drop on phones).sr-hero,.sr-hero-title,.sr-hero__spark,.sr-tagline,.sr-page-title,.sr-h2,.sr-h3,.sr-lead,.sr-eyebrow,.sr-grad.sr-spark(the four-point star; size with font-size),.sr-spark--white.sr-btnwith--primary,--tile,--light,--sm,--block;.sr-actions.sr-tiles,.sr-tile(works on<a>too),.sr-steps(numbered gradient circles).sr-rail,.sr-rail__bar,.sr-rail__lights,.sr-rail__body,.sr-rail__line, token colors.sr-t-mint,.sr-t-sky,.sr-t-pink,.sr-t-sun,.sr-t-dim, and.sr-caret.sr-badgewith--tileand--grad,.sr-quote.sr-segment,.sr-plans,.sr-planwith--featured,.sr-plan__name,.sr-plan__price,.sr-plan__note,.sr-checks(sparkle bullets).sr-faq(details and summary).sr-article,.sr-meta,.sr-avatar,.sr-callout.sr-form,.sr-field,.sr-label,.sr-input,.sr-select,.sr-hint,.sr-check,.sr-or,.sr-choice.sr-footer,.sr-footer__grid,.sr-footer__links
Pages in this kit
demo.html: landing page with the wordmark hero, a rail showing a booking, three tiles, a split section with stats and steps, a quote and a dark closing bandpricing.html: page title, monthly and yearly toggle, three plans with the featured one ringed in magenta, a comparison table and an FAQblog.html: an article with a badge, gradient-highlighted title, a rail used as a small data table, a pull quote, a callout and related tilessignup.html: a two-column sign-up with a page title and rail on the left and a white form card on the right
Page recipe
- Nav: logo with the gradient sparkle badge, a gray search pill, three links and a tile "Sign in" button.
- Hero, centered: the product name as a giant lowercase gradient wordmark with a sparkle between syllables, the uppercase violet tagline, a lead, one magenta button and one tile button.
- The rail panel under the hero, 640px wide, showing something real the product does in three or four colored lines.
- A row of three flat gray tiles.
- A gray section with a heading, gradient stats and white step rows.
- A centered quote with tile badges for names.
- A dark rail band with a closing heading and buttons.
- Footer with a single top rule.
Pricing recipe: eyebrow, page title (gradient line then ink line), lead, segmented toggle, three plans in tiles with the middle one white and ringed, a ruled table, then a gray FAQ section.
Article recipe: centered badge, page title with a gradient phrase, author row with a gradient avatar. Body at 700px and 18px. Use the rail for numbers or schedules, a magenta-ruled pull quote, one blush callout with a sparkle. End with related tiles.
Sign-up recipe: two columns. Left: eyebrow, page title, lead and a small rail. Right: a white card with a 1px line ring, a tile Google button, an "or" divider, flat gray inputs that turn white with a magenta ring on focus, option chips and one full-width magenta button.
Don'ts
- Don't put the gradient on buttons, backgrounds or body text.
- Don't add borders or shadows to tiles. Flat fill only.
- Don't use more than one rail panel per page, and keep rail lines short so they fit on a phone.
- Don't use the rail colors (mint, sky, sun) outside the rail.
- Don't set headlines in Figtree or body copy in Fredoka.
- 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
A friendly notation tool on pale aqua, with ribbons of small colored symbols and big underlined links.
Cheeky cartoon panels and a scribbled pink word on a deep aubergine night.
Loud, cheeky and warm, with gradient headlines that shout and copy that winks.
A bright shared whiteboard where everyone's cursor is already on the page.