# Config Halo

A quiet deep-indigo night with chunky monospace headlines and a soft, rounded sans for everything else. The signature move is the config card: a real-life setting (a delivery, a booking, a membership) written as a few lines of syntax-colored code in a small window, floating on a halo of dots that fades out around it. Lilac, mint, butter and coral come straight from code highlighting and are the only accents. It feels calm, nerdy and a little cheeky, like a product made by people who'd rather type one line than click through a wizard.

Use it for: subscriptions, co-ops and memberships, developer tools, indie software, small services that want to feel precise and friendly at once, anything where "set it once and forget it" is the pitch. Avoid it for: luxury and fashion, children's products, photo-led brands, anything that needs bright daylight or big imagery.

## 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 Config Halo 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 one invented product (Crateful, a veg-box co-op), built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Space Mono 700 | Hero, section headings, card titles, plan names, big numbers. Tight tracking (-0.03em to -0.04em). |
| Body | Rubik 400 to 600 | Paragraphs, nav, buttons, labels, forms. Nav links and buttons at 600. |
| Code | Space Mono 400, italic for comments and quotes | Config cards, prompt lines, inline `code`, table values. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--cf-night` | #191B31 | The page background, everywhere |
| `--cf-deep` | #14162A | Alternate sections, inputs, footer wells |
| `--cf-panel` | #222542 | Cards, code windows, pricing plans |
| `--cf-panel-2` | #2A2E4E | Hover on panels, avatars, inline code |
| `--cf-line` | #343859 | Every border and divider |
| `--cf-dot` | #50579A | The halo dots |
| `--cf-text` | #E7E5F6 | Headlines and body |
| `--cf-soft` | #9194B8 | Leads and secondary text |
| `--cf-faint` | #6A6D93 | Labels, captions, code comments |
| `--cf-lilac` | #B9A8FF | Keywords, the primary button, links, the featured plan border |
| `--cf-mint` | #66DEC3 | Functions, "New" tags, plus marks in lists |
| `--cf-butter` | #F3D57C | Strings, inline code, one highlighted word |
| `--cf-coral` | #F2908B | Numbers in code, the rare warning |

Rules:
- The page is always night indigo. Alternate with `--cf-deep` sections; never use a light section.
- The four accents belong to code. Outside a code card, lilac is the only one used freely (primary button, links). Mint appears on tags, butter on one highlighted word at most.
- No gradients, no glows. Depth comes from the dot halo and one soft dark shadow under cards.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cf-text-hero` | clamp(40px, 6vw, 72px) | Hero headline, mono 700, line-height 1.04, 2 to 3 lines |
| `--cf-text-h2` | clamp(30px, 3.8vw, 46px) | Section headings |
| `--cf-text-h3` | 21px | Card and plan titles |
| `--cf-text-lead` | 20px | The sentence under a headline, soft color, max 560px |
| `--cf-text-body` | 16px | Body (article body is 18px) |
| `--cf-text-code` | 14px | Config cards |

Headlines are short plain statements that end with a period ("Dinner, but set in one line."). Labels above them are small uppercase Rubik in the faint color.

## Shape and space

- Borders: 1px `--cf-line` on cards, windows, inputs, nav and footer.
- Radius: small. 3px on tags, 6px on buttons and inputs, 8px on cards and code windows, 12px on the form panel. Nothing is a pill.
- Shadows: one soft dark drop (`--cf-shadow`) under code windows and the featured plan only.
- The halo: `.cf-halo` wraps any card and draws an 18px dot grid behind it, masked to fade out in a circle. Use it two or three times per page, never on every card.
- Sections: 72px to 128px vertical padding. Container 1120px, text 700px.
- Motion: one short fade up on the hero. Nothing loops.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.cf` | Put on `<body>`: night background, Rubik, light text |
| `.cf-nav`, `.cf-logo`, `.cf-nav__links`, `.cf-hide-sm` | Full-width bar with a bottom border; mono logo left, bold links and one outlined button right |
| `.cf-hero`, `.cf-hero__card`, `.cf-hero__words`, `.cf-hero__links` | Two columns: config card on the left, words on the right; stacks with the words first on phones |
| `.cf-hero-title`, `.cf-h2`, `.cf-h3`, `.cf-lead`, `.cf-label`, `.cf-hl` | Mono headlines, soft lead, uppercase label, butter highlight |
| `.cf-prompt` | A one-line command with a faint `>` in front ("box --family") |
| `.cf-btn--primary/outline`, `--sm`, `--block` | Square-ish buttons; lilac solid for the one main action |
| `.cf-tag`, `--lilac`, `--butter`, `.cf-news` | Small square outline badges in mono caps; a news line with a tag in front |
| `.cf-halo`, `--wide` | The fading dot field behind a card |
| `.cf-code`, `__bar`, `pre` with `.k .f .s .n .c .p` | Code window: three dim dots and a centered filename; spans color keywords, functions, strings, numbers, comments, punctuation |
| `.cf-logos` | A row of faint wordmarks |
| `.cf-grid`, `.cf-card`, `__key/__title/__text` | Feature cards; the key reads like a config field ("swap:") |
| `.cf-split` | Words beside a code card |
| `.cf-stats`, `.cf-stat` | Big mono numbers over a top border |
| `.cf-quote` | A mono italic quote with a lilac left rule; start it with `//` |
| `.cf-toggle` | Two-option switch (weekly, every 2 weeks) |
| `.cf-plans`, `.cf-plan`, `--featured`, `__head/__name/__desc/__price/__list` | Pricing panels; the featured one has a lilac border and sits in a halo |
| `.cf-table`, `.cf-table-wrap` | Compare table with mono values |
| `.cf-faq` | Details list with a mono plus |
| `.cf-article`, `.cf-meta`, `.cf-avatar` | Long-form text, byline row, initials avatar |
| `.cf-form`, `.cf-field`, `.cf-input`, `.cf-select`, `.cf-check`, `.cf-choices`, `.cf-choice`, `.cf-panel` | Forms on a panel; choice tiles with a lilac border when picked |
| `.cf-section`, `--deep`, `.cf-rule`, `.cf-cta`, `.cf-footer`, `.cf-fade` | Sections, divider, CTA block, one-row footer, entrance |

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: config hero, three setting cards, a rules split, stats, a quote, CTA |
| `pricing.html` | Three plans with a toggle, compare table, FAQ |
| `blog.html` | A journal post with inline code, a config card and a quote |
| `signup.html` | Join form beside a live config card that updates as you pick |

## Page recipe

1. `.cf-nav` with the mono logo and 3 to 4 links.
2. `.cf-hero`: a `.cf-halo` holding a `.cf-code` card that describes the product as settings (8 to 14 lines, under 40 characters each), then the headline, lead, one `.cf-prompt` and a short list of text links with a `.cf-news` line.
3. A `.cf-rule`, then three `.cf-card`s whose keys are the product's main settings.
4. A `.cf-section--deep` `.cf-split` with a smaller config card.
5. Stats, a `//` quote, and a `.cf-cta` on a halo.
6. `.cf-footer`.

Pricing: centered head with `.cf-toggle`, three `.cf-plan`s (the middle one featured inside a `.cf-halo`), a mono compare table, FAQ in a deep section.

Article: 700px column, label, mono title around 48px, `.cf-meta` byline; body at 18px with `code` for the product's words and one config card on a halo.

Sign up: two columns, words plus a live config card on the left, form in a `.cf-panel` on the right. Use `.cf-choices` for the plan.

## Don'ts

- Don't use a light background or white cards.
- Don't make the code fake-complex. Config cards should read like plain English with punctuation.
- Don't use code colors for decoration outside code, apart from lilac buttons and links and the occasional mint tag.
- Don't round things into pills or add glows and gradients.
- Don't put the halo behind every card; it marks the one thing to look at.
- Don't set headlines in Rubik or body text in Space Mono.
