# Sunny Slab

A cheerful little-gadget style for products you can hold. The page opens on a pewter gray stage with a soft spotlight, and in the middle sits one chunky yolk-yellow object, drawn in CSS with bolts, a gray screen and a dial on the side. Under it comes one friendly sentence and a giant lowercase wordmark in deep yellow, then the page turns yolk yellow and stays that way, with heavy rounded-grotesque headlines that end in a full stop: "The Lid." "The Dial." The only action color is a grape-purple pill that sits on a solid lower edge and presses down when you click. Tilted black stickers, cream cards with thick ink outlines and tiny pixel type on gray LCD screens give it a retro toy feel without going childish.

Use it for: gadgets and small hardware, kitchen tools, hobby kits, game and toy launches, subscription boxes, consumer apps with a physical side, anything with a playful product and a bit of personality. Avoid it for: serious finance, healthcare, legal, dense dashboards, luxury brands, anything that needs to feel quiet or formal.

## 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 Sunny Slab 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 a made-up jar-top sourdough gadget called Proof.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Figtree:wght@400;500;700&family=Silkscreen&display=swap" rel="stylesheet">
```

| Role | Font | Weight | Use |
|---|---|---|---|
| Display | Bricolage Grotesque | 800 | The logo, the wordmark, hero line, section titles, card titles, buttons, prices, quotes |
| Body and UI | Figtree | 400 to 700 | Body copy, nav links, labels, hints, table cells. Bold (700) for phrases you want to land |
| Pixel | Silkscreen | 400 | Only small and uppercase: LCD screens, kickers, stat labels, captions, the footer base line |

Headlines always use 800 with tight tracking (-0.035em). Never set Silkscreen above 14px or in long text.

## Color

| Token | Hex | Use |
|---|---|---|
| `--sy-yolk` | #FFC624 | The page. Most sections are yolk |
| `--sy-yolk-deep` | #F4A90A | The giant wordmark, the device shading, dial details |
| `--sy-yolk-soft` | #FFE58F | Highlights on drawn objects, table row lines, step bars |
| `--sy-cream` | #FFF7DF | Cards, plans, FAQ items, forms, the quiet section |
| `--sy-pewter` | #80868E | The hero stage, the nav, quote bands, the footer |
| `--sy-spot` | #B6BAC0 | The spotlight in the middle of the stage |
| `--sy-ink` | #241F19 | Text, thick outlines, stickers, the solid drop under cards |
| `--sy-grape` | #6F1FF0 | Primary buttons, the picked plan, focus rings, one badge. Nothing else |
| `--sy-screen`, `--sy-lcd` | #2B2C2B, #B4B8AD | Gray screens and readouts with pixel type |

Grape appears once or twice per screen. Pewter is only for the stage, nav, quote band and footer; content sections are yolk or cream.

## Type scale

| Class | Size | Notes |
|---|---|---|
| `sy-mark` | clamp(110px, 21vw, 300px) | The giant lowercase wordmark under the hero, in `--sy-yolk-deep`, line-height 0.78 |
| `sy-hero-title` | clamp(30px, 3.6vw, 48px) | White on the stage, centered, three lines at most |
| `sy-h2` | clamp(34px, 4.4vw, 58px) | Ends with a full stop: "The Dial." "Pick your Proof." |
| `sy-h3` | 24px | Card titles, also with a full stop |
| `sy-lead` | clamp(18px, 1.6vw, 21px) | Intro paragraphs, max 600px |
| Body | 17px | Figtree 400, line-height 1.55 |
| `sy-prose` | 19px | Article body, line-height 1.7 |
| `sy-kicker`, `sy-pixel` | 12px | Silkscreen, uppercase, with a small square before kickers |

## Shape and space

- Everything is a rounded slab: 20px for cards and fields, 34px for plans, panels and devices, full pills for buttons, badges and toggles.
- Cards, plans, FAQ items and fields carry a 3px ink outline (`--sy-edge`) and a solid 5px drop straight down (`--sy-press-ink`), never a blurry shadow. The picked plan drops in grape instead.
- Buttons have a solid lower edge (`--sy-press`): they lift 2px on hover and drop 4px when pressed.
- The drawn device is the one place with a soft shadow (`--sy-slab`), because it is an object sitting on the stage.
- Stickers are rotated about 8 degrees; a plan flag about 4. Nothing else tilts.
- Sections are 72 to 128px tall in padding. Feature rows sit 64 to 112px apart.

## Components (in components.css)

- **Nav** `sy-nav` (pewter, white text) or `sy-nav--yolk`: the lowercase `sy-logo`, then `sy-nav__links` with a small glyph before each link and a small grape pill at the end. Text links hide under 820px; the pill stays.
- **Stage** `sy-stage`: the hero. Pewter with a radial spotlight, centered. Holds `sy-stage__sticker`, a `sy-device`, an `sy-hero-title`, the `sy-mark` and one big grape button.
- **Device** `sy-device` (or `--sm`): a yellow slab drawn in CSS with four `sy-bolt`s, a `sy-device__screen` holding an `sy-lcd` (one bold word and a pixel line), `sy-device__controls` (a ring and two keys) and an optional `sy-device__dial` on the right edge. Change the word on the screen per page: "Bubbly." "Peak!" "Hello."
- **Sticker** `sy-sticker`: a tilted black label with `sy-sticker__big` (one word in yolk) and a white `sy-sticker__band` below.
- **Buttons** `sy-btn` plus `--grape` (primary), `--white` (outlined secondary), `--ink` (yolk text on ink), and sizes `--sm`, `--lg`, `--block`. Copy can be excited: "Get one!!"
- **Feature row** `sy-feature` (`--flip` to swap sides): `sy-feature__copy` with an `sy-h2` and paragraphs, beside an inline SVG drawing (`sy-drawing`) or a small device.
- **Readout** `sy-readout`: a dark screen holding LCD cells, each with a big number and a pixel label.
- **Cards** `sy-card` (cream, outlined, solid drop), `--pewter`, `--grape`, with an optional `sy-card__icon`.
- **Badges** `sy-badge` (ink with yolk text), `--grape`, `--cream`. `sy-kicker` for pixel labels.
- **Quote** `sy-quote` and `sy-quote__by`, usually on a `sy-section--pewter` band.
- **Pricing** `sy-toggle`, `sy-plans` of `sy-plan` (`--pick` lifts and drops in grape, with a tilted `sy-plan__flag`), `sy-plan__name`, `sy-plan__price`, `sy-list` with yolk check boxes, `sy-table` inside `sy-table-wrap`.
- **FAQ** `sy-faq` of `details`, with a grape plus button.
- **Article** `sy-article-head`, `sy-meta` with `sy-avatar`, `sy-prose`, `sy-pull` (a yolk slab), `sy-figure` (a small stage) and `sy-callout` (an LCD-style tip).
- **Forms** `sy-form`, `sy-field`, `sy-label`, `sy-input`, `sy-select`, `sy-hint`, `sy-row`, `sy-choices` of `sy-choice` (the checked one turns yolk), `sy-check`, `sy-steps`, `sy-panel`, `sy-fieldset`.
- **Footer** `sy-footer`: pewter, four columns, a pixel base line.
- **SVG fills** `sy-f-yolk`, `sy-f-deep`, `sy-f-soft`, `sy-f-cream`, `sy-f-ink`, `sy-f-grape`, `sy-f-steel`, `sy-f-lcd`, `sy-f-screen`, `sy-f-white` and the stroke `sy-s-ink`, so drawings use the tokens.

## Pages in this kit

- `demo.html`: stage hero with sticker, device, line, wordmark and button; three yolk feature rows ("The Lid." "The Dial." "The App."); a readout of stats; three cream cards; a pewter quote band; a closing call to action; the footer.
- `pricing.html`: centered head with a toggle, three plans with the middle one picked, a comparison table, an FAQ.
- `blog.html`: a cream article page with a pull slab, a small stage figure, an LCD callout, then three related cards on yolk.
- `signup.html`: a split screen. A small stage with a sticker and device on the left, a three-step form panel on the right.

## Page recipe

1. `sy-nav` on pewter.
2. `sy-stage`: optional sticker, one `sy-device` (or your product drawn in the same chunky way), an `sy-hero-title` of one or two friendly sentences, the `sy-mark` wordmark and one `sy-btn--grape sy-btn--lg`.
3. A yolk `sy-section` of two to four `sy-feature` rows, alternating sides, each titled "The Thing."
4. A cream section of `sy-card`s, a pewter quote band, then a yolk closing section with a kicker, an `sy-h2` and the grape button.
5. `sy-footer`.

**Pricing recipe:** a centered kicker, `sy-h2` and `sy-lead`, the `sy-toggle`, then `sy-plans` with exactly one `sy-plan--pick`, then a table and an FAQ on cream and yolk.

**Article recipe:** set the body to cream, put the head and `sy-prose` in `sy-narrow`, break the text with one `sy-pull`, one `sy-figure` and at most one `sy-callout`, and end on a yolk band of related cards.

**Sign-up recipe:** two columns: a `sy-stage` side panel with a sticker, a small device and one reassuring line; then `sy-steps`, a kicker, an `sy-h2` and the form in an `sy-panel`, ending in a block grape button.

## Don'ts

- Don't use grape for anything but actions, the picked plan and focus. It is never a background for a whole section.
- Don't add blurry drop shadows to cards or buttons. Drops are solid and point straight down.
- Don't make the page mostly gray. Pewter frames the yolk; it doesn't replace it.
- Don't drop the full stop from section titles, or set them in anything lighter than 800.
- Don't use Silkscreen for body text or headings.
- Don't tilt more than one or two things per screen.
- Don't use em dashes in copy.
