# Switch Halo

Bright, orderly product pages on white. The signature is a stack of feature switches that fans out like a dial, floating over a halo of fine vertical lines that glow from violet into azure. The key words of every headline are filled with that same violet to azure gradient, buttons are soft pills with a tinted glow, and customer names sit in pale frost tiles. Headlines are big, tight and confident (Onest 600), body text is friendly (Figtree), and small labels are set in mono capitals. It feels ready and calm: the product is already built, you only need to switch it on.

Use it for: software that turns features on for someone else (admin tools, B2B platforms, settings-heavy products), operations tools for schools, clinics and care, membership and booking back offices, anything that wants to feel capable without shouting. Avoid it for: editorial or long-read brands, handmade or rustic products, loud consumer launches, games, anything dark and moody.

## 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 Switch 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 built only with the kit, for an invented childcare center app called Nestwise.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Onest 600 | Hero, section headings, prices, stats, quotes, card titles. Very tight tracking (-0.05em on the hero). |
| Body | Figtree 400 to 600 | Paragraphs, nav, buttons, switch names, forms. |
| Labels | Geist Mono 500 | Small uppercase labels above headings, table group rows, step numbers, log lines. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--sh-white` | #FFFFFF | The main background |
| `--sh-frost` | #F4F5FA | Logo tiles, quiet sections, FAQ rows, the sign-up side panel |
| `--sh-line` | #E3E5EF | Every border and divider |
| `--sh-ink` | #1D2431 | Headlines and body text |
| `--sh-slate` | #5A6277 | Leads, secondary text, the "on" state of a plain switch |
| `--sh-soft` | #8A91A5 | Captions, labels, dimmed badges |
| `--sh-iris` | #6D5EF0 | The one action color: buttons, links, checks, the active switch |
| `--sh-violet` | #9372F2 | Start of the glow gradient |
| `--sh-azure` | #4C9FE6 | End of the glow gradient |
| `--sh-mint` | #2FAE7C | "On" and "Shared" badges only |
| `--sh-night` | #17192A | One dark band per page at most |

Rules:
- White is the default surface. Frost for one or two quiet sections, night for one band.
- `--sh-glow` (violet into azure) fills the key words of headlines (`.sh-glow`), the halo, the logo mark, avatars, the featured plan's border and the first step's rule. Never a button fill, never a section background.
- Iris is the only flat accent in page chrome. Mint, amber and red live only in badges, switches and form errors.
- When a halo sits on frost, set `--sh-halo-gap: var(--sh-frost)` on its parent so the gaps between lines match.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sh-text-hero` | clamp(42px, 6.2vw, 84px) | Hero headline, line-height 1.02, tracking -0.05em |
| `--sh-text-h2` | clamp(32px, 3.8vw, 50px) | Section headings, tracking -0.035em |
| `--sh-text-h3` | 20px | Card and step titles |
| `--sh-text-lead` | 19px | Slate lead under a heading, max 600px |
| `--sh-text-body` | 16px | Body |
| `--sh-text-micro` | 12px | Mono labels, uppercase, tracking 0.12em |

The glow headline is the second signature: the first half is a plain ink statement, the second half is the payoff in `.sh-glow`. `<h2 class="sh-h2">Every room, <span class="sh-glow">one calm screen.</span></h2>`. In the hero, break the line so the glow words get a line of their own.

## Shape and space

- Radius: 999px pills on buttons, toggles and segmented controls; 10px on inputs; 14px on switch rows and FAQ rows; 22px on cards, panels, plans and covers; 4px on status badges (square-ish, small).
- Borders: 1px `--sh-line` on cards and plans. Switch rows have no border, only a soft shadow.
- Shadows: soft and low (`--sh-shadow`) on switch rows; long (`--sh-shadow-lg`) on panels, the featured plan and the active switch; primary buttons get an iris glow (`--sh-shadow-btn`).
- Logo tiles touch with a 4px gap, no borders, no radius.
- Container 1200px, narrow 740px. Sections 120px top and bottom (76px on phones).

## Components (in components.css)

| Class | What it is |
|---|---|
| `.sh-nav-wrap`, `.sh-nav`, `__links`, `__actions`, `__signin` | Sticky translucent nav: logo, links pushed right, an outlined pill "Sign in" |
| `.sh-logo`, `__mark` | Wordmark with a small glow diamond |
| `.sh-hero`, `__grid`, `__copy` | Two-column hero: copy left, switch stack right |
| `.sh-halo`, `--small`, `--faint` | The glowing field of fine vertical lines behind any element |
| `.sh-switches`, `--wheel`, `.sh-switch`, `__name` | The switch stack. `--wheel` fans five rows out from the middle one and dims the outer rows |
| `.sh-toggle`, `--iris` | A real `role="switch"` toggle; `aria-checked="true"` turns it on |
| `.sh-badge`, `--on`, `--iris`, `.sh-chip` | Small square-ish status badges; pill chips |
| `.sh-hero-title`, `.sh-h2`, `.sh-h3`, `.sh-glow`, `.sh-lead`, `.sh-label`, `.sh-kicker` | Type. `.sh-kicker` is a small link with a chevron above a hero |
| `.sh-btn--primary/text/outline/white`, `--sm`, `--block` | Pill buttons. `--text` is a plain link with a chevron, paired with a primary |
| `.sh-tiles` | Customer names in touching frost tiles, 8 across (4 on tablets, 2 on phones) |
| `.sh-grid`, `--2`, `.sh-card`, `--frost`, `__icon/__title/__text/__link` | Cards with an iris icon tile |
| `.sh-panel`, `__head`, `__row` | Product UI panel with rows, avatars and badges |
| `.sh-steps` | Three numbered steps with top rules; the first rule glows |
| `.sh-stats`, `.sh-stat` | Big numbers; glow-filled on night |
| `.sh-quote`, `.sh-avatar` | Large Onest quote with a glow avatar |
| `.sh-section--frost/night`, `.sh-split` | Section surfaces; a two-column split |
| `.sh-period` | Monthly or yearly pill switcher |
| `.sh-plans`, `.sh-plan`, `--featured`, `__name/__desc/__price/__note/__list` | Plan cards; the featured one has a glow border |
| `.sh-table-wrap`, `.sh-table`, `__group`, `.sh-yes`, `.sh-no` | Comparison table with mono group rows |
| `.sh-faq` | Frost `<details>` rows with a plus |
| `.sh-meta`, `.sh-author`, `.sh-cover` | Article meta, author line and a frost cover holding a halo and switches |
| `.sh-prose`, `.sh-callout`, `.sh-figure` | Article text: glow diamond bullets, a quote with a glow rule, iris-soft note |
| `.sh-post`, `__thumb`, `--b`, `--c` | Related post with a halo thumbnail |
| `.sh-form`, `.sh-row`, `.sh-field`, `--error`, `.sh-label-text`, `.sh-input`, `.sh-select`, `.sh-help`, `.sh-error`, `.sh-check`, `.sh-divider` | Form parts |
| `.sh-auth`, `__form`, `__inner`, `__side` | Split sign-up layout |
| `.sh-footer`, `__cols`, `__bottom` | Five-column footer with mono headings |
| `.sh-rise`, `--2`, `--3` | Small rise-in for hero copy, respects reduced motion. Never on switch rows |

## Pages in this kit

- `demo.html`: landing page (kicker, glow headline, the switch wheel over a halo, logo tiles, a split with a room panel, cards and steps on frost, a night band with an access log and stats, a quote, a centered call to action over a faint halo).
- `pricing.html`: centered hero over a faint halo with a billing switcher, three plans with a glow-bordered featured plan, a comparison table on frost, FAQ, a night call to action.
- `blog.html`: product article with a frost cover holding two switches, prose with a bar chart figure and a callout, related posts.
- `signup.html`: split page, form on white, frost side with the switch wheel used as onboarding steps and a quote.

## Page recipe

1. Nav: logo left, four links pushed right, outlined pill "Sign in".
2. Hero: `.sh-kicker` link, hero title with the payoff words in `.sh-glow` on their own line, slate lead, primary pill plus a `--text` link.
3. On the right, `.sh-halo` holding `.sh-switches--wheel` with five rows: two on, the middle one active with an iris toggle, two ready.
4. A mono label and `.sh-tiles` with eight customer names.
5. A split: label, glow h2, lead, outline button on one side; a `.sh-panel` on the other.
6. Frost section: glow h2, three cards, then `.sh-steps`.
7. One night band with stats.
8. A quote in the narrow container, then a centered call to action over `.sh-halo--small.sh-halo--faint`.

## Pricing page recipe

Centered hero over a faint small halo, glow headline, lead and `.sh-period`. Three `.sh-plan`s with the middle one `--featured` and a primary button (outline buttons on the others). Comparison table on frost, FAQ on white, night call to action.

## Article recipe

Narrow header: kicker back to the journal, a glow headline (one glowing phrase), lead, author and meta. A full-width `.sh-cover` with one or two switches over a halo that says what the post is about. Narrow `.sh-prose`, one `.sh-figure`, one `.sh-callout`. Three `.sh-post`s with halo thumbnails.

## Sign-up recipe

`.sh-auth`: form on white with a mono label, glow h2, two-up name row, a select, an error example, a checkbox, primary and outline block buttons. The frost side holds the switch wheel relabelled as setup steps, then a short quote.

## Don'ts

- Don't fill buttons or whole sections with the gradient. It belongs to words, the halo and tiny marks.
- Don't use more than one switch stack per screen, and keep it to five rows or fewer.
- Don't make badges pills; they stay small and square-ish so they read as status.
- Don't add borders to switch rows or logo tiles.
- Don't use the halo behind long paragraphs; behind a short centered headline, use `--faint`.
- Don't use a second accent color. Mint is status only.
- No em dashes in copy.
