# Soft Desktop

A friendly, nerdy website that behaves like a tiny operating system. The page lives inside a pale window floating on a drawn meadow wallpaper, with desktop icons down both sides, a translucent menu bar on top and a little toast note in the corner. Headlines are heavy and tightly tracked in Rethink Sans, key words get a crooked highlighter swipe in yellow, blue or peach, and every button is a keycap with a darker bottom edge that presses down when clicked. Marigold is for actions, violet marks the active tab and the featured plan, cobalt is for links. It feels like software made by people with a sense of humor.

Use it for: indie software, product tools, community shops and libraries, education platforms, documentation hubs, makers who want to look warm and a bit geeky, anything where exploring should feel like poking around a desktop. Avoid it for: luxury and fashion, serious finance or legal, healthcare, minimal editorial sites, 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 Soft Desktop 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 bookshop that lends books, called Burrow.

## Fonts

All free on Google Fonts:

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

| Role | Font | Weight | Use |
|---|---|---|---|
| Headlines | Rethink Sans | 700 to 800 | Hero titles, section titles, plan names, prices. Tracking -0.025em to -0.04em |
| Body and UI | Rethink Sans | 400 to 600 | Text, nav, buttons, labels, forms |
| System text | IBM Plex Mono | 400 to 500 | Window titles, eyebrow labels, chips, table heads, the footer status line, keys |

Mono is the "operating system" voice: anything that reads like a file name, a path, a tag or a status belongs in it. Keep it small (11 to 13px).

## Color

| Token | Hex | Use |
|---|---|---|
| `--sd-sky`, `--sd-hill`, `--sd-meadow`, `--sd-meadow-deep` | #DFE9D4, #B9CF98, #9DBB7A, #6F9152 | The wallpaper only: sky fading into rolling hills |
| `--sd-window` | #EEF0E6 | The main window surface |
| `--sd-window-bar` | #E3E6D8 | Title bars, the footer, the segment toggle |
| `--sd-paper` | #FFFFFF | Cards, plans, fields, article windows (`sd-window--paper`) |
| `--sd-tint` | #F6F7F1 | Inside drawn mini windows, table heads |
| `--sd-ink` | #1C1F1A | Text and button outlines |
| `--sd-soft` | #5E6358 | Secondary text, labels |
| `--sd-marigold` / `--sd-marigold-edge` | #E8A230 / #B97A16 | Primary buttons and their keycap edge, feature icon tiles (`--sd-marigold-soft`) |
| `--sd-violet` / `--sd-violet-edge` | #A632D6 / #7D1FA6 | The active tab and its stage, the featured plan border, one strong secondary button |
| `--sd-cobalt` | #2F6FE0 | Links, the current nav item, the blue highlighter's text |
| `--sd-mark-yellow`, `--sd-mark-blue`, `--sd-mark-peach` | #F6E3A6, #CFE0FB, #F8D5BD | Highlighter swipes, the pull quote, callouts |
| `--sd-line`, `--sd-line-strong` | #D3D6C8, #B9BDAB | Hairlines, field borders, the bottom edge of desktop icons |

Marigold is the only action color. Violet appears once per screen at most (one tab bar, or one featured plan, or one violet button).

## Type scale

| Class | Size | Notes |
|---|---|---|
| `sd-hero-title` | clamp(36px, 5.2vw, 60px) | 700, tracking -0.03em, line-height 1.05 |
| `sd-h2` | clamp(28px, 3.6vw, 42px) | 700, tracking -0.025em |
| `sd-h3` | 21px | 700 |
| `sd-lead` | clamp(17px, 1.6vw, 20px) | `--sd-soft`, max 560px wide |
| Body | 16px | line-height 1.55; articles use 18px at 1.7 |
| `sd-label` | 12px | IBM Plex Mono, uppercase, tracking 0.08em |

Every big headline gets exactly one highlighted phrase: `<span class="sd-mark">for free</span>`, `sd-mark--blue` (also turns the text cobalt) or `sd-mark--peach`.

## Shape and space

- Windows have 16px corners (`--sd-radius-window`) and a soft floating shadow (`--sd-shadow-window`). Cards, buttons and fields use 8px or 6px.
- Buttons are keycaps: a 1.5px outline plus a thicker 4.5px bottom border in a darker shade (`--sd-edge`). On press they drop 2px and the edge disappears.
- Desktop icons are 52px white tiles with a 2px bottom edge in `--sd-line-strong`; their labels turn into a cobalt selection pill on hover.
- Cards sit flat with hairlines; only the hero setup card, the featured plan and toasts get `--sd-shadow-card`.
- The window body has 48 to 88px of vertical padding and content is capped at 1080px.
- The menu bar is a translucent strip 8px in from the screen edges, sticky at the top.

## Components (in components.css)

- **Wallpaper** `sd-wallpaper` on `<body>`: the drawn sky and hills.
- **Menu bar** `sd-menubar` with `sd-logo` (+ `sd-logo__mark`, three tilted book spines in SVG), `sd-menubar__links` (hidden under 820px; mark the page with `aria-current`) and `sd-menubar__end` with a small primary button and `sd-icon-btn`.
- **Desktop** `sd-desktop`: a three-column grid of `sd-dock` | `sd-window` | `sd-dock`. Docks hold `sd-desk-icon` links (`sd-desk-icon__tile` + label) and disappear under 980px.
- **Window** `sd-window` with `sd-window__bar` (`sd-window__controls` squares either side of a mono `sd-window__title`) and `sd-window__body`. `sd-window--paper` makes the body white for reading.
- **Buttons** `sd-btn` plus `--primary` (marigold), `--secondary` (white with a marigold edge), `--violet`, `--sm`, `--block`. Group them in `sd-actions`.
- **Highlighter** `sd-mark`, `--blue`, `--peach`. **Link** `sd-link` (cobalt, dotted underline).
- **Badges and chips** `sd-badge` (`--violet`, `--blue`), mono `sd-chip` in `sd-chips`, keyboard key `sd-kbd`.
- **Hero** `sd-hero` (copy left, `sd-card` right) with `sd-hero__brand` above the headline.
- **Setup card** `sd-card` with `sd-card__title` and a `sd-checks` list of green ticks. `sd-card--flat` drops the shadow.
- **Tabs** `sd-tabs`: `sd-tabs__list` of `sd-tab` (`aria-selected`), and a violet `sd-tabs__stage` holding white `sd-tabs__panel`s.
- **Mini window** `sd-mini` with `sd-mini__bar` dots and `sd-mini__body` of `sd-row`s (use `sd-spine` for a colored book spine or status stripe). Use it to draw product UI instead of screenshots.
- **Sections** `sd-section`, `sd-head` (title left, link right), `sd-grid` / `sd-grid--2` of `sd-feature` cards with a marigold-soft `sd-feature__icon`.
- **Quote** `sd-quote`, `sd-byline`, `sd-avatar`. **Toast** `sd-toast` with `sd-toast__close`.
- **Pricing** `sd-segment` toggle, `sd-plans` of `sd-plan` (`--featured` for the violet one) with `sd-plan__top`, `sd-plan__name`, `sd-price`. `sd-table-wrap` + `sd-table` to compare, `sd-faq` of `<details>`.
- **Article** `sd-article`, `sd-article__meta`, `sd-prose` (yellow-block blockquotes, mono inline code), `sd-figure`, `sd-callout` (blue).
- **Forms** `sd-form`, `sd-field`, `sd-input`, `sd-select`, `sd-hint`, `sd-check`, `sd-choice` (radio cards with a violet ring), `sd-divider`.
- **Footer** `sd-footer` inside the window: link columns, then a dashed `sd-footer__status` line in mono, like a status bar.

## Pages in this kit

- `demo.html`: landing page. Menu bar, docks, hero with setup card, violet tab bar with three panels, feature grid, quote with a tag card, footer, cookie toast.
- `pricing.html`: centered intro with a highlighted headline, monthly/yearly toggle, three plans, comparison table, FAQ.
- `blog.html`: article in a paper window titled like a file (`why-we-lend.md`), with meta, blockquote, a drawn bar chart in a mini window, callout and a sign-up card.
- `signup.html`: a single small window centered on the wallpaper like an app dialog, with a toast note under it.

## Page recipe

1. `<body class="sd-wallpaper">`, then `sd-menubar`.
2. `sd-desktop` with a left `sd-dock` of 3 to 5 icons, the `sd-window`, and a right dock of 2 to 4 icons.
3. Give the window a title bar whose title reads like a path (`brand.com / page`).
4. Inside the body: a hero with one highlighted phrase and a setup card, then one violet tab bar, then 2 or 3 sections.
5. End the window with `sd-footer` and its status line. Add at most one `sd-toast`.

**Pricing:** centered `sd-label`, `sd-hero-title`, `sd-lead` and `sd-segment`, then `sd-plans` with the middle plan `--featured`. Follow with `sd-table` and `sd-faq`.

**Article:** use `sd-window sd-window--paper` and `sd-article`. Start with an `sd-badge--blue` category, the headline with one mark, `sd-article__meta` with avatar and a mono read-time chip, then `sd-prose`. Draw charts inside `sd-mini`.

**Sign up:** no docks. A `max-width: 560px` window centered on the wallpaper, a mono step label, a highlighted `sd-h2`, then the form with one primary button and one secondary button split by `sd-divider`.

## Don'ts

- Don't use photos as page backgrounds; the wallpaper is the only scenery.
- Don't add more than one highlighter mark per headline, or mark whole sentences in body text.
- Don't use flat buttons: every button keeps its keycap edge.
- Don't use violet for more than one thing per screen, or marigold for anything but actions and icon tiles.
- Don't round corners past 16px or use pills for buttons; pills are only for badges.
- Don't put mono in long text; it is for labels, paths and tags.
- Don't let the desktop icons appear on phones; the window fills the screen instead.
