# Keystroke

A fast desktop tool after dark. Near-black pages hold a floating glass pill nav, centred two-line headlines in tight Inter, and light keycap buttons that look like they press down. The star of every page is an app window, a command palette with a search line, grouped rows and a footer of key hints, floating on one soft chili-red glow. Smaller headings are two-tone: a white first sentence, then a dim second one. Footnotes and labels are tiny JetBrains Mono. It feels quick, precise and quietly premium, like a tool built by people who love keyboards.

Use it for: productivity and utility apps, consumer apps with a "power user" angle, smart home and kitchen tools, Mac and desktop apps, launches that want to look crafted. Avoid it for: editorial and long reading sites, kids and family brands, anything that needs warmth from photography, bright daytime brands.

## 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 Keystroke 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 built only with the kit, for an invented kitchen command bar called Mise.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines and body | Inter 400 to 600 | Headlines at 600 with -0.035em tracking. UI text and buttons at 500. Body at 400. |
| Footnotes and keys | JetBrains Mono 400 to 500 | Small print under buttons, eyebrows, table heads, badges, timers and `.ks-kbd` keys. 11 to 12px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ks-void` | #09090B | The page |
| `--ks-panel` | #111114 | Windows, cards, plans, the CTA band |
| `--ks-raised` | #18181C | Key tiles, dark keycap buttons, badges |
| `--ks-hover` | #212127 | Active row, selected tab, hover |
| `--ks-line` | #26262D | Every 1px border |
| `--ks-text` | #F3F3F5 | Headlines and body |
| `--ks-dim` | #8B8B95 | Second half of two-tone lines, leads, nav links |
| `--ks-cap` | #ECECEF | The light keycap button |
| `--ks-chili` | #F0503F | The one accent: the glow, the caret, the main button, checks |
| `--ks-saffron` | #F2B544 | Small highlights only: code, a second row icon |
| `--ks-mint` | #4FD19A | Status dots ("synced", "online") only |

Rules:
- The page is near black. Colour arrives as light: the chili glow behind the window, the blinking caret, one chili button per screen.
- The light keycap (`--ks-btn--cap`) is the default main button. Use `--chili` once per page for the most important action, usually in the CTA or a form.
- Saffron and mint are for tiny marks (icons, dots, inline code), never for large areas.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ks-text-hero` | clamp(40px, 6.2vw, 76px) | Centred page titles, two short lines |
| `--ks-text-h2` | clamp(28px, 3.6vw, 44px) | Section titles, often two-tone with `.ks-dimmed` |
| `--ks-text-h3` | 18px | Card and plan names |
| `--ks-text-lead` | 18px | Dim lead under a title, and `.ks-two-tone` lines |
| `--ks-text-body` | 15px | Body and UI |
| `--ks-text-micro` | 12px | Mono footnotes |

Headlines are plain and confident ("Dinner is a few keystrokes away."). Two-tone lines are a claim then a softer explanation: "Search the fridge, not the internet. One bar for recipes, lists and timers."

## Shape and space

- Radius: 8px buttons and inputs, 12px dock keys, 18px windows and cards, 24px plans and CTA, pill for tabs and the announcement pill.
- Borders: 1px `--ks-line` on cards, plans, tables and the nav. Windows use a faint white ring in their shadow instead.
- Shadows: keycaps get an inset top highlight and a darker bottom edge (`--ks-shadow-cap`, `--ks-shadow-key`) so they look pressable. Windows get a deep drop shadow plus a faint red halo (`--ks-shadow-window`).
- The glow: `.ks-stage::before` paints `--ks-glow`, a wide red radial behind the window. One glow per screen.
- Sections: 72px to 120px vertical padding. Container 1200px with 24px gutters. Text column 640px.
- Motion: quick and small. Buttons sink 1px on press, the caret blinks, content rises 12px on load (`.ks-rise`).

## Components (in components.css)

| Class | What it is |
|---|---|
| `.ks` | Put on `<body>`: void page, Inter, light text |
| `.ks-nav-wrap`, `.ks-nav`, `__links`, `__end`, `.ks-logo` | Sticky floating glass pill nav |
| `.ks-hero-title`, `.ks-h2`, `.ks-h3`, `.ks-lead`, `.ks-two-tone`, `.ks-dimmed`, `.ks-micro`, `.ks-eyebrow` | Type |
| `.ks-btn`, `--cap`, `--key`, `--chili`, `--ghost`, `--lg`, `--block` | Keycap buttons |
| `.ks-kbd` | A small inline key: ⌘K, ↵ |
| `.ks-pill` | Announcement pill with a red arrow |
| `.ks-badge`, `--chili`, `--mint`, `.ks-dot` | Mono badges and status dots |
| `.ks-hero`, `__actions`, `__note` | Centred hero |
| `.ks-stage` | Wrapper that paints the red glow behind its child |
| `.ks-window`, `__search`, `__query`, `__group`, `__label`, `__bar`, `.ks-row`, `--active`, `__icon`, `__title`, `__meta`, `.ks-caret` | The command palette window |
| `.ks-icon-chili`, `-saffron`, `-mint`, `-plain` | Tinted row icons |
| `.ks-dock`, `__key`, `--on` | Row of keycap icons under the window |
| `.ks-grid--2/3/4`, `.ks-card`, `.ks-tile` | Cards and pressable key tiles |
| `.ks-tabs` | Segmented pill tabs (`aria-selected="true"` is the active one) |
| `.ks-split` | Two-column text and visual |
| `.ks-quote`, `.ks-avatar` | Testimonial card |
| `.ks-plans`, `.ks-plan`, `--featured`, `__price`, `__amount`, `__per` | Pricing |
| `.ks-table-wrap`, `.ks-table` | Comparison table |
| `.ks-faq` | `<details>` FAQ |
| `.ks-auth`, `.ks-form`, `.ks-field`, `.ks-label`, `.ks-input`, `.ks-select`, `.ks-hint`, `.ks-check`, `.ks-or` | Forms |
| `.ks-article`, `.ks-byline` | Long-form post |
| `.ks-cta` | Panel with the glow rising from the bottom |
| `.ks-footer`, `__grid`, `__base` | Footer |

## Pages in this kit

- `demo.html`: landing page. Nav, announcement pill, hero, command palette on the glow with a dock, a split with four key tiles, extensions grid with tabs, quotes, CTA, footer.
- `pricing.html`: centred title, monthly or yearly tabs, three plans with the middle one glowing, comparison table, FAQ, CTA.
- `blog.html`: badge, title, byline, a timer window on the glow as the figure, article with inline code and a quote, related posts.
- `signup.html`: a single window-like sign-up card on the glow.

## Page recipe

1. `.ks-nav-wrap` with the glass nav. One light keycap on the right.
2. A centred `.ks-hero`: optional `.ks-pill`, a two-line title, a dim lead, a keycap button with a `.ks-kbd`, a ghost link, and a mono footnote.
3. A `.ks-stage` holding a `.ks-window` that shows the product doing its job with real-looking rows. Add a `.ks-dock` under it.
4. A two-tone caption, then sections that alternate a two-tone statement with tiles, cards or a second window.
5. Finish with a `.ks-cta` and the footer.

Pricing: tabs for the billing period, three `.ks-plan`s with the middle one `--featured` and its button `--chili`. A table and FAQ below.

Article: a `.ks-badge`, a title, a byline, then a figure that is a small `.ks-window` on a `.ks-stage`. Body in `.ks-article` with chili underlines and markers.

Sign up: one `.ks-auth` card on a `.ks-stage`, social keys, `.ks-or`, the form, and a `--chili` submit with a ↵ key.

## Don'ts

- Don't use photos or stock illustrations. The product window is the picture.
- Don't add a second glow colour or put more than one glow on a screen.
- Don't make large areas chili, saffron or mint.
- Don't use pure black (#000) or pure white text; use `--ks-void` and `--ks-text`.
- Don't left-align the hero. Heroes are centred.
- Don't use heavy borders or bright outlines; depth comes from shadows and the glow.
- Don't use em dashes in copy.
