# Sun Tile

A tiny toy-like gadget sitting under a soft grey spotlight. The page is a cool, quiet grey with a lighter glow in the middle, and the star of every screen is a sunny yellow object: a bevelled tile with a lit top-left edge, a darker bottom-right edge and little steel screws in the corners. Dark matte screens are set into those tiles and speak in chunky pixel lettering. Headlines are big, rounded and tightly tracked, a tilted black sticker shouts the news, and one electric violet pill carries the main action. It feels playful, tactile and a little retro, like a handheld you want to pick up.

Use it for: gadgets and hardware, consumer apps with a mascot object, hobby and maker products, food and cooking tools, games and toys, kids and family, indie software and launches. Avoid it for: serious finance, legal or healthcare, luxury fashion, dense dashboards and long reports, anything that should feel quiet and corporate.

## 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 Sun Tile 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 countertop gadget called Proofy that watches a sourdough starter rise.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Outfit 800 | Every heading, prices, the logo. Line height 1.04, tracking -0.025em. |
| Body and UI | Outfit 400 to 700 | Body at 400, links and buttons at 600 to 700. |
| Pixel | Silkscreen 400 and 700 | Labels, screen text, stats, table heads, step counters. Always uppercase or short. |

The pixel face is a seasoning. Use it for labels and anything that sits on a screen, never for paragraphs.

## Color

| Token | Hex | Role |
|---|---|---|
| `--st-fog` | #E6E8EB | The page |
| `--st-mist` | #F3F4F6 | The spotlight glow, alternate sections, figures |
| `--st-white` | #FFFFFF | Cards, inputs, ghost buttons |
| `--st-stone` | #CDD1D6 | 2px borders, dividers, empty steps |
| `--st-ink` | #222428 | Headlines, body, stickers |
| `--st-mute` | #5F646C | Leads, card text, labels |
| `--st-sun` | #F5BC34 | The object: tiles, the device, the featured plan, the CTA band |
| `--st-sun-light` | #FFD970 | Top-left bevel highlight |
| `--st-sun-deep` | #D2951A | Bottom-right bevel shade, outlines on dials |
| `--st-screen` | #2A2C2F | Dark screens, stats, tip boxes |
| `--st-pixel` | #A7AE9C | Lit pixels on a screen |
| `--st-violet` | #6B2CF0 | The main button, links, focus, highlights |
| `--st-steel` | #B4B9C0 | Screws and the crank |

Rules:
- Yellow is an object, not a background. It appears as tiles, the device, one featured plan and one CTA band per page.
- Violet is only for actions and links. One violet button per view.
- Screens are always `--st-screen` with `--st-pixel` text, and a sun dot or number for the one important reading.
- Never put yellow text on the grey page; yellow text lives on dark screens and stickers only.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--st-size-hero` | 2.5 to 4.6rem | Landing headline, centred under the object |
| `--st-size-h1` | 2.1 to 3.3rem | Page titles |
| `--st-size-h2` | 1.7 to 2.4rem | Section headings |
| `--st-size-h3` | 1.35rem | Card titles, quotes |
| `--st-size-lead` | 1.22rem | Intro paragraphs, in `--st-mute` |
| `--st-size-body` | 1.06rem | Body |
| `--st-size-label` | 0.78rem | Pixel labels |

## Shape and space

- Radius: 30px for tiles, cards, plans and the device; 18px for screens and inputs; full pills for buttons and badges; circles for dials, keys and avatars.
- The bevel: `--st-bevel` is two inset shadows (light top-left, deep bottom-right). Every yellow tile has it. White cards use the softer `--st-bevel-white`.
- The lift: one soft drop shadow (`--st-lift`) under objects so they float above the spotlight.
- Screws: `.st-screw` in the corners of tiles. Use two or four, never one.
- Screens are inset (`--st-screen-inset`) so they read as glass set into the object.
- Generous space: 80px between sections, 24px grid gaps, 1160px max width, 700px for reading.

## Components (in components.css)

- `.st-btn` with `--sun`, `--ghost`, `--block`, `--sm`: pill buttons. Violet by default.
- `.st-nav`, `.st-logo` (with `.st-logo__mark`, a mini device), `.st-nav__link`.
- `.st-hero`, `.st-hero__stage`, `.st-hero__actions`: centred hero with the object on top and the headline below.
- `.st-device` and its parts (`__screen`, `__big`, `__small`, `__controls`, `__dial`, `__keys`, `__key`, `__side`, `__grill`, `__crank`): the yellow gadget drawn in CSS.
- `.st-screw` (plus `--tl`, `--tr`, `--bl`, `--br`).
- `.st-sticker` (plus `--stripes`, `--tl`, `--tr`): a tilted black badge with a white border.
- `.st-tile` (yellow) and `.st-card` (white), `.st-card__screen`, `.st-card__icon`, `.st-lcd` (a small inline screen readout).
- `.st-badge` (plus `--sun`, `--violet`), `.st-label`, `.st-lead`, `.st-hl`, `.st-pixel`.
- `.st-split` (plus `--flip`), `.st-grid`, `.st-stats` and `.st-stat`, `.st-quote`, `.st-who`, `.st-avatar`.
- Forms: `.st-field`, `.st-field__label`, `.st-input`, `.st-select`, `.st-hint`, `.st-check`, `.st-choices` and `.st-choice` (selected tiles turn into yellow bevels), `.st-divider`, `.st-steps`.
- Pricing: `.st-toggle`, `.st-plans`, `.st-plan` (plus `--featured`, `__name`, `__price`), `.st-checks` (pixel square bullets), `.st-table-wrap`, `.st-table`, `.st-yes`.
- `.st-faq`, `.st-article__head`, `.st-byline`, `.st-prose`, `.st-tip` (a dark screen box), `.st-figure`, `.st-cta`, `.st-footer`.
- SVG helpers: `.st-f-sun`, `.st-f-screen`, `.st-f-pixel`, `.st-s-pixel` and friends, so drawings use the tokens.

## Pages in this kit

- `demo.html`: the device under a spotlight with a sticker, a centred headline, a badge strip, two split rows (a white card with a pixel chart, a yellow tile with a screen), three feature cards, dark stat screens, quotes and a yellow CTA band.
- `pricing.html`: a toggle, three plans with the yellow featured middle plan and a sticker, a comparison table and an FAQ.
- `blog.html`: a starter care article with badges, a byline, a drawn curve on a screen, a tip box, a quote and "Up next" cards.
- `signup.html`: a split page with the device showing a pairing code, pixel step bars, option tiles and big inputs.

## Page recipe

1. `.st-nav`: logo left, two or three links and one small violet button.
2. `.st-hero` on the glow: the object first (`.st-device` or a `.st-tile`), a sticker tilted on its corner, then a pixel label, a big headline, a lead and a violet plus ghost button pair.
3. A `.st-section--mist` strip of badges.
4. Two `.st-split` rows that alternate sides, each pairing words with a tile or card that holds a screen.
5. A `.st-grid` of three `.st-card` features with yellow icon chips.
6. `.st-stats` on dark screens, then quotes, then a yellow `.st-cta` and the `.st-footer`.

Pricing recipe: centred head on the glow with `.st-toggle`, `.st-plans` with the middle plan `--featured` (yellow, with a `.st-sticker`), a `.st-table` inside `.st-table-wrap`, then `.st-faq`.

Article recipe: `.st-article__head` on the glow with badges, a headline, a lead and a `.st-byline`; `.st-read` + `.st-prose`; one `.st-figure` holding an SVG on a screen; one `.st-tip`; a blockquote with a yellow rule; "Up next" cards and a `.st-cta`.

Sign-up recipe: two columns. The glow side holds the device with a code on its screen and a `.st-lcd` step counter; the white side holds the logo, `.st-steps`, a headline, `.st-choices`, inputs, one block violet button, a `.st-divider` and two ghost buttons. On phones the form comes first.

## Don'ts

- Don't fill whole sections with yellow. It's an object you could hold.
- Don't use sharp corners or thin outlines on the object. Depth comes from the bevel and one soft lift.
- Don't set paragraphs in the pixel font.
- Don't use photos as the hero. Draw the object in CSS or SVG with the token colors.
- Don't use more than one violet button in a view, and never a violet background.
- Don't use a dark page. The dark color belongs to screens only.
