Glass & gradient · Health
Aurora Glass design system template
Soft frosted glass over drifting peach, lilac and mint color bleeds, with a calm teal action color and rounded Plus Jakarta Sans. Made for wellness, meditation, sleep and habit apps.
- WCAG AA verified
- Light + dark
- Tokens = preview
- Plus Jakarta Sans
Wind down for tonight
A 12-minute body scan, then sleep sounds fading out over 30 minutes.
Personality. Aurora Glass is the feeling of a quiet morning. A warm off-white canvas (`#f7f3fa`) carries three blurred blobs of peach, lilac and mint, and every card is a sheet of frosted glass that lets those colors bleed through at the edges. Corners are generous (22px on cards, pill buttons), type is Plus Jakarta Sans at 16px with room to breathe, and the single action color is a deep teal that reads as calm rather than clinical. Nothing is sharp, nothing is urgent: even warnings use soft amber instead of red until a user is truly blocked.
Color bleed: three 360px blurred blobs (--bleed-peach, --bleed-lilac, --bleed-mint) behind the glass
Frosted cards: 60% white fill, 24px blur, 1px white edge, soft lilac-tinted shadow
Pill buttons with a teal fill and a 1px inner white highlight
Breathing room: 16px body at 1.65 leading and 32px card padding
Progress shown as soft rings and 8px rounded bars, never hard percentages alone
Color. 21 roles, both modes.
background
#f7f3fa
foreground
#231b33
card
#ffffff
cardForeground
#231b33
muted
#efe9f5
mutedForeground
#62567a
primary
#16756f
primaryForeground
#ffffff
secondary
#ece6f4
secondaryForeground
#231b33
accent
#def3ef
accentForeground
#0d4f4b
border
rgba(35,27,51,0.1)
input
rgba(35,27,51,0.2)
ring
#16756f
destructive
#b3263e
destructiveForeground
#ffffff
success
#1b7a4a
successForeground
#ffffff
warning
#f3c969
warningForeground
#2a1d00
Type. Plus Jakarta Sans · Figtree · DM Mono
The file. Drop it in your repo.
1---2name: "Aurora Glass"3slug: "aurora-glass"4schema: "freedesignmd/v2"5description: "Soft frosted glass over drifting peach, lilac and mint color bleeds, with a calm teal action color and rounded Plus Jakarta Sans. Made for wellness, meditation, sleep and habit apps."6source: "https://freedesignmd.com/system/aurora-glass"7aesthetic: "glass"8industry: "health"9default_mode: "light"10fonts:11 display: "Plus Jakarta Sans"12 body: "Figtree"13 mono: "DM Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700&family=Figtree:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap"15colors:16 light:17 background: "#f7f3fa"18 foreground: "#231b33"19 card: "#ffffff"20 cardForeground: "#231b33"21 muted: "#efe9f5"22 mutedForeground: "#62567a"23 primary: "#16756f"24 primaryForeground: "#ffffff"25 secondary: "#ece6f4"26 secondaryForeground: "#231b33"27 accent: "#def3ef"28 accentForeground: "#0d4f4b"29 border: "rgba(35,27,51,0.1)"30 input: "rgba(35,27,51,0.2)"31 ring: "#16756f"32 destructive: "#b3263e"33 destructiveForeground: "#ffffff"34 success: "#1b7a4a"35 successForeground: "#ffffff"36 warning: "#f3c969"37 warningForeground: "#2a1d00"38 dark:39 background: "#12101c"40 foreground: "#f1ecf8"41 card: "#1b1829"42 cardForeground: "#f1ecf8"43 muted: "#252137"44 mutedForeground: "#aaa0c2"45 primary: "#6fd8cd"46 primaryForeground: "#0b1a19"47 secondary: "#2a2540"48 secondaryForeground: "#ece6f6"49 accent: "#1d3a3a"50 accentForeground: "#c8f3ee"51 border: "rgba(255,255,255,0.1)"52 input: "rgba(255,255,255,0.16)"53 ring: "#6fd8cd"54 destructive: "#ff8a9c"55 destructiveForeground: "#1a0509"56 success: "#6fdc9e"57 successForeground: "#04170c"58 warning: "#f3c969"59 warningForeground: "#2a1d00"60chart:61 light: ["#16756f", "#8a63d2", "#e0825f", "#d4a017", "#4a8fd4"]62 dark: ["#6fd8cd", "#b49af0", "#f2a584", "#f3c969", "#7db8f2"]63type:64 display: { font: display, size: 60, size_mobile: 34, leading: 1.08, weight: 700, tracking: "-0.03em" }65 h1: { font: display, size: 40, size_mobile: 27, leading: 1.14, weight: 700, tracking: "-0.025em" }66 h2: { font: display, size: 26, size_mobile: 21, leading: 1.25, weight: 600, tracking: "-0.015em" }67 h3: { font: display, size: 18, size_mobile: 18, leading: 1.4, weight: 600, tracking: "-0.005em" }68 body: { font: body, size: 16, size_mobile: 16, leading: 1.65, weight: 400, tracking: "0em" }69 small: { font: body, size: 14, size_mobile: 14, leading: 1.55, weight: 400, tracking: "0em" }70 label: { font: body, size: 13, size_mobile: 13, leading: 1.3, weight: 600, tracking: "0.01em" }71 mono: { font: mono, size: 13, size_mobile: 13, leading: 1.55, weight: 400, tracking: "0em" }72spacing: [4, 8, 12, 16, 24, 32, 40, 56, 80, 112]73radius: { sm: "10px", md: "14px", lg: "22px", xl: "32px", full: "9999px" }74shadow:75 light:76 sm: "0 1px 2px rgba(80,50,120,0.06)"77 md: "0 12px 32px -12px rgba(110,70,170,0.22), 0 1px 2px rgba(80,50,120,0.06)"78 lg: "0 40px 90px -24px rgba(110,70,170,0.38), 0 0 0 1px rgba(255,255,255,0.7)"79 dark:80 sm: "0 1px 2px rgba(0,0,0,0.3)"81 md: "0 12px 32px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05)"82 lg: "0 40px 90px -24px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.08)"83motion:84 duration_ms: { instant: 120, fast: 200, base: 320, slow: 700 }85 easing: { standard: "cubic-bezier(0.4, 0, 0.2, 1)", out: "cubic-bezier(0.22, 1, 0.36, 1)", in: "cubic-bezier(0.55, 0, 0.8, 0.4)" }86 reveal: { distance_px: 16, stagger_ms: 90 }87layout: { max_width: 1120, columns: 12, gutter: 24, section_y: 112, section_y_mobile: 64, measure: "60ch" }88extras:89 glass: { light: "rgba(255,255,255,0.6)", dark: "rgba(255,255,255,0.07)" }90 glass-edge: { light: "rgba(255,255,255,0.85)", dark: "rgba(255,255,255,0.12)" }91 bleed-peach: { light: "rgba(255,181,148,0.55)", dark: "rgba(255,150,110,0.22)" }92 bleed-lilac: { light: "rgba(190,160,255,0.5)", dark: "rgba(150,120,240,0.26)" }93 bleed-mint: { light: "rgba(150,230,210,0.5)", dark: "rgba(80,200,180,0.2)" }94---95 96# Aurora Glass, DESIGN.md97 98> Soft frosted glass over drifting peach, lilac and mint color bleeds, with a calm teal action color and rounded Plus Jakarta Sans. Made for wellness, meditation, sleep and habit apps.99 100## How to use this file101 1021. Save this file as `DESIGN.md` in the project root and paste the `tokens.css` block (section 10) into your global stylesheet, or import `https://freedesignmd.com/system/aurora-glass.css`, which also contains every component class.1032. **Claude Code:** add `Before any UI work, read @DESIGN.md and use only its tokens and component recipes.` to `CLAUDE.md`.1043. **Cursor:** create `.cursor/rules/design.mdc` with `alwaysApply: true` and the line `Follow @DESIGN.md for every color, font, radius, shadow, spacing and duration.`1054. **Lovable:** paste section 10 into `src/index.css` and add this file to Project Knowledge; ask for changes by role name (`primary`, `muted-foreground`), never by hex.1065. Default mode is **light**: dark mode is `class="dark"` on `<html>` (both modes are fully specified). Use semantic names only (`bg-primary`, `text-muted-foreground`, `.btn-primary`, `var(--radius-lg)`); if a value is not in this file, it does not belong in the UI.107 108## 1. Overview & personality109 110Aurora Glass is the feeling of a quiet morning. A warm off-white canvas (`#f7f3fa`) carries three blurred blobs of peach, lilac and mint, and every card is a sheet of frosted glass that lets those colors bleed through at the edges. Corners are generous (22px on cards, pill buttons), type is Plus Jakarta Sans at 16px with room to breathe, and the single action color is a deep teal that reads as calm rather than clinical. Nothing is sharp, nothing is urgent: even warnings use soft amber instead of red until a user is truly blocked.111 112**At a glance**113 114- Aesthetic: Glass & gradient · Industry: Health · Default mode: light115- Type: Plus Jakarta Sans (display) · Figtree (body) · DM Mono (mono)116- Brand color (`primary`): `#16756f` light · `#6fd8cd` dark, on primary, text is `#ffffff` / `#0b1a19`117- Corners: 10px / 14px / 22px / 32px · Container 1120px · Base motion 320ms118 119**Signature moves**120 121- Color bleed: three 360px blurred blobs (`--bleed-peach`, `--bleed-lilac`, `--bleed-mint`) behind the glass122- Frosted cards: 60% white fill, 24px blur, 1px white edge, soft lilac-tinted shadow123- Pill buttons with a teal fill and a 1px inner white highlight124- Breathing room: 16px body at 1.65 leading and 32px card padding125- Progress shown as soft rings and 8px rounded bars, never hard percentages alone126 127## 2. Color128 129Roles follow shadcn/ui naming, so `primary` is always the brand / main-action color and `foreground` is always body text. Every text pair below is WCAG AA (≥ 4.5:1) in both modes.130 131### Light mode (`:root`)132 133| Role | CSS variable | Value | Contrast | Usage |134|---|---|---|---|---|135| `background` | `--background` | `#f7f3fa` | | Page canvas |136| `foreground` | `--foreground` | `#231b33` | 15.01:1 on background | Body text and headings on background |137| `card` | `--card` | `#ffffff` | | Cards, panels, popovers |138| `cardForeground` | `--card-foreground` | `#231b33` | 16.46:1 on card | Text on card |139| `muted` | `--muted` | `#efe9f5` | | Subtle fills: table headers, code, skeletons |140| `mutedForeground` | `--muted-foreground` | `#62567a` | 5.63:1 on muted | Secondary text, captions, placeholders |141| `primary` | `--primary` | `#16756f` | | Calm teal for the one next step: Begin session, Continue, active tab. |142| `primaryForeground` | `--primary-foreground` | `#ffffff` | 5.51:1 on primary | Text and icons on primary |143| `secondary` | `--secondary` | `#ece6f4` | | Secondary buttons and quiet fills |144| `secondaryForeground` | `--secondary-foreground` | `#231b33` | 13.47:1 on secondary | Text on secondary |145| `accent` | `--accent` | `#def3ef` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |146| `accentForeground` | `--accent-foreground` | `#0d4f4b` | 8.12:1 on accent | Text on accent |147| `border` | `--border` | `rgba(35,27,51,0.1)` | | Dividers and card outlines |148| `input` | `--input` | `rgba(35,27,51,0.2)` | | Input borders |149| `ring` | `--ring` | `#16756f` | | Focus ring |150| `destructive` | `--destructive` | `#b3263e` | | Errors and destructive actions |151| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 6.43:1 on destructive | Text on destructive |152| `success` | `--success` | `#1b7a4a` | | Positive status |153| `successForeground` | `--success-foreground` | `#ffffff` | 5.34:1 on success | Text on success |154| `warning` | `--warning` | `#f3c969` | | Soft amber for gentle nudges like a missed streak; red is reserved for blocking errors. |155| `warningForeground` | `--warning-foreground` | `#2a1d00` | 10.49:1 on warning | Text on warning |156| `chart-1…5` | `--chart-1…5` | `#16756f` `#8a63d2` `#e0825f` `#d4a017` `#4a8fd4` | | Data series, in this order |157 158### Dark mode (`.dark`)159 160| Role | CSS variable | Value | Contrast | Usage |161|---|---|---|---|---|162| `background` | `--background` | `#12101c` | | Page canvas |163| `foreground` | `--foreground` | `#f1ecf8` | 16.20:1 on background | Body text and headings on background |164| `card` | `--card` | `#1b1829` | | Cards, panels, popovers |165| `cardForeground` | `--card-foreground` | `#f1ecf8` | 14.96:1 on card | Text on card |166| `muted` | `--muted` | `#252137` | | Subtle fills: table headers, code, skeletons |167| `mutedForeground` | `--muted-foreground` | `#aaa0c2` | 6.30:1 on muted | Secondary text, captions, placeholders |168| `primary` | `--primary` | `#6fd8cd` | | Calm teal for the one next step: Begin session, Continue, active tab. |169| `primaryForeground` | `--primary-foreground` | `#0b1a19` | 10.53:1 on primary | Text and icons on primary |170| `secondary` | `--secondary` | `#2a2540` | | Secondary buttons and quiet fills |171| `secondaryForeground` | `--secondary-foreground` | `#ece6f6` | 11.98:1 on secondary | Text on secondary |172| `accent` | `--accent` | `#1d3a3a` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |173| `accentForeground` | `--accent-foreground` | `#c8f3ee` | 10.19:1 on accent | Text on accent |174| `border` | `--border` | `rgba(255,255,255,0.1)` | | Dividers and card outlines |175| `input` | `--input` | `rgba(255,255,255,0.16)` | | Input borders |176| `ring` | `--ring` | `#6fd8cd` | | Focus ring |177| `destructive` | `--destructive` | `#ff8a9c` | | Errors and destructive actions |178| `destructiveForeground` | `--destructive-foreground` | `#1a0509` | 8.76:1 on destructive | Text on destructive |179| `success` | `--success` | `#6fdc9e` | | Positive status |180| `successForeground` | `--success-foreground` | `#04170c` | 10.95:1 on success | Text on success |181| `warning` | `--warning` | `#f3c969` | | Soft amber for gentle nudges like a missed streak; red is reserved for blocking errors. |182| `warningForeground` | `--warning-foreground` | `#2a1d00` | 10.49:1 on warning | Text on warning |183| `chart-1…5` | `--chart-1…5` | `#6fd8cd` `#b49af0` `#f2a584` `#f3c969` `#7db8f2` | | Data series, in this order |184 185### System extras186 187| Variable | Light | Dark | Usage |188|---|---|---|---|189| `--glass` | `rgba(255,255,255,0.6)` | `rgba(255,255,255,0.07)` | Card fill over the color bleed; pair with blur(24px). |190| `--glass-edge` | `rgba(255,255,255,0.85)` | `rgba(255,255,255,0.12)` | 1px border on glass cards. |191| `--bleed-peach` | `rgba(255,181,148,0.55)` | `rgba(255,150,110,0.22)` | Blurred blob, top-left of the canvas. |192| `--bleed-lilac` | `rgba(190,160,255,0.5)` | `rgba(150,120,240,0.26)` | Blurred blob, center-right. |193| `--bleed-mint` | `rgba(150,230,210,0.5)` | `rgba(80,200,180,0.2)` | Blurred blob, bottom-left. |194 195## 3. Typography196 197Load fonts with:198 199```html200<link rel="preconnect" href="https://fonts.googleapis.com" />201<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />202<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700&family=Figtree:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap" />203```204 205| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |206|---|---|---|---|---|---|---|---|207| `display` | Plus Jakarta Sans | 34px → 60px | 1.08 | 700 | -0.03em | – | `.type-display` |208| `h1` | Plus Jakarta Sans | 27px → 40px | 1.14 | 700 | -0.025em | – | `.type-h1` |209| `h2` | Plus Jakarta Sans | 21px → 26px | 1.25 | 600 | -0.015em | – | `.type-h2` |210| `h3` | Plus Jakarta Sans | 18px | 1.4 | 600 | -0.005em | – | `.type-h3` |211| `body` | Figtree | 16px | 1.65 | 400 | 0em | – | `.type-body` |212| `small` | Figtree | 14px | 1.55 | 400 | 0em | – | `.type-small` |213| `label` | Figtree | 13px | 1.3 | 600 | 0.01em | – | `.type-label` |214| `mono` | DM Mono | 13px | 1.55 | 400 | 0em | – | `.type-mono` |215 216- `h1`–`h3` elements map to the roles of the same name; `display` is for one hero headline per page.217- Fluid sizes use `clamp()` between the two values (see `--type-*-size` in tokens.css).218- Only the weights in this table are loaded; never use other weights.219 220## 4. Spacing & layout221 222Spacing is a 4px scale. Use these steps only (`--space-N` = N × 4px):223 224| Token | `--space-1` | `--space-2` | `--space-3` | `--space-4` | `--space-6` | `--space-8` | `--space-10` | `--space-14` | `--space-20` | `--space-28` |225|---|---|---|---|---|---|---|---|---|---|---|226| px | 4 | 8 | 12 | 16 | 24 | 32 | 40 | 56 | 80 | 112 |227 228- Container: max 1120px, 24px side gutters (`.container`).229- Grid: 12 columns, 24px gap.230- Sections: 112px vertical padding on desktop, 64px on mobile (`.section`).231- Long text: max 60ch per line (`.prose`).232- Single-column reading flow at 560px for sessions and journals; dashboards open to 1120px.233- Glass cards never touch the viewport edge: keep 16px of canvas visible on mobile.234- Bleed blobs are fixed to the viewport so they slowly parallax against scrolling cards.235 236## 5. Shape & elevation237 238| Radius | Value | Use |239|---|---|---|240| `--radius-sm` | 10px | badges, checkboxes, small chips |241| `--radius-md` | 14px | buttons, inputs, tabs (= shadcn `--radius`) |242| `--radius-lg` | 22px | cards, panels, menus |243| `--radius-xl` | 32px | dialogs, hero media, large surfaces |244| `--radius-full` | 9999px | avatars, pills, toggles |245 246| Shadow | Mode | Value |247|---|---|---|248| `--shadow-sm` | light | `0 1px 2px rgba(80,50,120,0.06)` |249| `--shadow-md` | light | `0 12px 32px -12px rgba(110,70,170,0.22), 0 1px 2px rgba(80,50,120,0.06)` |250| `--shadow-lg` | light | `0 40px 90px -24px rgba(110,70,170,0.38), 0 0 0 1px rgba(255,255,255,0.7)` |251| `--shadow-sm` | dark | `0 1px 2px rgba(0,0,0,0.3)` |252| `--shadow-md` | dark | `0 12px 32px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05)` |253| `--shadow-lg` | dark | `0 40px 90px -24px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.08)` |254 255`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.256 257## 6. Motion258 259**Slow breath.** Color bleeds drift on a 40-second loop and cards rise 16px with a long ease-out. Progress rings fill over the slow duration. Hover states soften instead of snapping: nothing moves faster than 200ms except focus.260 261| Token | Value | Use |262|---|---|---|263| `--duration-instant` | 120ms | press feedback, toggles |264| `--duration-fast` | 200ms | hover, focus, color changes |265| `--duration-base` | 320ms | menus, tabs, popovers, cards lifting |266| `--duration-slow` | 700ms | dialogs and scroll reveals |267| `--ease-standard` | `cubic-bezier(0.4, 0, 0.2, 1)` | state changes |268| `--ease-out` | `cubic-bezier(0.22, 1, 0.36, 1)` | entrances and reveals |269| `--ease-in` | `cubic-bezier(0.55, 0, 0.8, 0.4)` | exits |270 271- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 16px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 90ms (`--reveal-index`).272- Use no durations other than the four above.273- `prefers-reduced-motion: reduce` → no transforms, reveals show immediately (included in tokens.css).274 275## 7. Components276 277Every component reads only variables from section 10, so light and dark mode work with no extra code. These are the exact rules (also in `https://freedesignmd.com/system/aurora-glass.css`). In React/shadcn projects, put the same declarations on the matching shadcn component variants.278 279### Button280 281```html282<button class="btn btn-primary">Save</button> <!-- btn-secondary · btn-outline · btn-ghost -->283```284 285```css286.btn {287 display: inline-flex;288 align-items: center;289 justify-content: center;290 gap: 8px;291 height: 48px;292 padding: 0 28px;293 font-family: var(--font-display);294 font-size: 15px;295 font-weight: 600;296 letter-spacing: -0.005em;297 border-radius: var(--radius-full);298 border: 1px solid transparent;299 white-space: nowrap;300 cursor: pointer;301 text-decoration: none;302 transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);303}304.btn-primary {305 background: var(--primary);306 color: var(--primary-foreground);307 box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px -10px var(--primary);308}309.btn-primary:hover:not(:disabled) {310 background: color-mix(in oklab, var(--primary) 90%, white);311 transform: translateY(-1px);312}313.btn-primary:active:not(:disabled) {314 background: color-mix(in oklab, var(--primary) 90%, black);315 transform: translateY(0);316}317.btn-secondary {318 background: var(--glass);319 color: var(--foreground);320 border-color: var(--glass-edge);321 backdrop-filter: blur(16px);322 -webkit-backdrop-filter: blur(16px);323}324.btn-secondary:hover:not(:disabled) {325 background: var(--accent);326 color: var(--accent-foreground);327}328.btn-secondary:active:not(:disabled) {329 background: var(--secondary);330}331.btn-outline {332 background: transparent;333 color: var(--primary);334 border-color: var(--primary);335}336.btn-outline:hover:not(:disabled) {337 background: var(--accent);338}339.btn-outline:active:not(:disabled) {340 background: var(--secondary);341}342.btn-ghost {343 background: transparent;344 color: var(--muted-foreground);345}346.btn-ghost:hover:not(:disabled) {347 background: var(--glass);348 color: var(--foreground);349}350.btn-ghost:active:not(:disabled) {351 background: var(--secondary);352}353.btn:focus-visible {354 outline: 3px solid var(--ring);355 outline-offset: 3px;356}357.btn:disabled, .btn[aria-disabled="true"] {358 opacity: 0.45;359 cursor: not-allowed;360 box-shadow: none;361}362```363 364### Input365 366```html367<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->368```369 370```css371.input {372 display: block;373 width: 100%;374 height: 52px;375 padding: 0 20px;376 font-family: var(--font-sans);377 font-size: 16px;378 color: var(--foreground);379 background: var(--glass);380 border: 1px solid var(--glass-edge);381 border-radius: var(--radius-lg);382 outline: none;383 transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);384 backdrop-filter: blur(16px);385 -webkit-backdrop-filter: blur(16px);386}387.input::placeholder {388 color: var(--muted-foreground);389 opacity: 1;390}391.input:hover:not(:disabled):not(:focus) {392 border-color: var(--input);393}394.input:focus, .input:focus-visible {395 border-color: var(--ring);396 box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 20%, transparent);397}398.input[aria-invalid="true"] {399 border-color: var(--destructive);400 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);401}402.input:disabled {403 opacity: 0.5;404 cursor: not-allowed;405 background: var(--muted);406}407```408 409### Card410 411```html412<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->413```414 415```css416.card {417 background: var(--glass);418 color: var(--card-foreground);419 border: 1px solid var(--glass-edge);420 border-radius: var(--radius-lg);421 box-shadow: var(--shadow-md);422 padding: 32px;423 transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);424 backdrop-filter: blur(24px) saturate(150%);425 -webkit-backdrop-filter: blur(24px) saturate(150%);426}427.card-interactive:hover {428 transform: translateY(-3px);429 box-shadow: var(--shadow-lg);430}431```432 433### Badge434 435```html436<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->437```438 439```css440.badge {441 --tone: var(--primary);442 --tone-foreground: var(--primary-foreground);443 display: inline-flex;444 align-items: center;445 gap: 6px;446 height: 26px;447 padding: 0 12px;448 border-radius: var(--radius-full);449 font-family: var(--font-sans);450 font-size: 12px;451 font-weight: 600;452 letter-spacing: 0em;453 line-height: 1;454 white-space: nowrap;455}456.badge[data-tone="success"] {457 --tone: var(--success);458 --tone-foreground: var(--success-foreground);459}460.badge[data-tone="warning"] {461 --tone: var(--warning);462 --tone-foreground: var(--warning-foreground);463}464.badge[data-tone="destructive"] {465 --tone: var(--destructive);466 --tone-foreground: var(--destructive-foreground);467}468.badge-solid {469 background: var(--tone);470 color: var(--tone-foreground);471 border: 1px solid var(--tone);472}473.badge-soft {474 background: color-mix(in oklab, var(--tone) 18%, var(--card));475 color: var(--foreground);476 border: 1px solid color-mix(in oklab, var(--tone) 34%, transparent);477}478.badge-outline {479 background: transparent;480 color: var(--foreground);481 border: 1px solid var(--border);482}483```484 485### Navigation bar486 487```html488<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>489```490 491```css492.nav {493 display: flex;494 align-items: center;495 gap: 4px;496 height: 68px;497 padding: 0 24px;498 background: var(--glass);499 backdrop-filter: blur(24px) saturate(160%);500 -webkit-backdrop-filter: blur(24px) saturate(160%);501 border-bottom: 1px solid var(--glass-edge);502}503.nav-link {504 padding: 6px 12px;505 border-radius: var(--radius-full);506 font-family: var(--font-display);507 font-size: 14px;508 font-weight: 600;509 letter-spacing: 0em;510 color: var(--muted-foreground);511 text-decoration: none;512 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);513}514.nav-link:hover {515 color: var(--foreground);516 background: var(--muted);517}518.nav-link[aria-current="page"] {519 color: var(--primary-foreground);520 background: var(--primary);521}522```523 524### Tabs525 526```html527<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>528```529 530```css531.tabs {532 display: inline-flex;533 gap: 4px;534 padding: 4px;535 background: var(--muted);536 border-radius: var(--radius-full);537}538.tab {539 height: 40px;540 padding: 0 16px;541 border: 0;542 border-radius: var(--radius-full);543 background: transparent;544 color: var(--muted-foreground);545 cursor: pointer;546 font-family: var(--font-sans);547 font-size: 14px;548 font-weight: 600;549 letter-spacing: 0em;550 transition: color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);551}552.tab:hover:not([aria-selected="true"]) {553 color: var(--foreground);554}555.tab[aria-selected="true"] {556 background: var(--card);557 color: var(--foreground);558 box-shadow: var(--shadow-sm);559}560```561 562### Table563 564```html565<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>566```567 568```css569.table {570 width: 100%;571 border-collapse: collapse;572 font-size: 14px;573 font-variant-numeric: tabular-nums;574}575.table th {576 text-align: left;577 height: 40px;578 padding: 0 16px;579 font-family: var(--font-sans);580 font-size: 13px;581 font-weight: 600;582 background: var(--muted);583 color: var(--muted-foreground);584 border-bottom: 1px solid var(--border);585}586.table td {587 height: 56px;588 padding: 0 16px;589 border-bottom: 1px solid var(--border);590 color: var(--foreground);591 transition: background-color var(--duration-fast) var(--ease-standard);592}593.table tbody tr:hover td {594 background: var(--accent);595 color: var(--accent-foreground);596}597```598 599### Dialog / modal600 601```html602<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>603```604 605```css606.dialog-overlay {607 position: fixed;608 inset: 0;609 background: rgba(60,40,90,0.28);610 backdrop-filter: blur(14px);611 -webkit-backdrop-filter: blur(14px);612 display: grid;613 place-items: center;614 padding: 24px;615}616.dialog {617 width: min(520px, 100%);618 background: var(--glass);619 color: var(--card-foreground);620 border: 1px solid var(--glass-edge);621 border-radius: var(--radius-xl);622 box-shadow: var(--shadow-lg);623 padding: 40px;624}625```626 627### Text link628 629```html630<a class="link" href="…">Read more</a>631```632 633```css634.link {635 color: var(--primary);636 text-decoration: underline;637 text-decoration-color: var(--primary);638 text-decoration-thickness: 1px;639 text-underline-offset: 4px;640 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);641}642.link:hover {643 text-decoration-thickness: 2px;644}645```646 647## 8. Imagery & iconography648 649**Imagery.** Soft-focus nature and body photography with warm, lifted shadows: morning light through leaves, hands around a mug, water. Overlay a 20% lilac wash on photos so they sit in the palette. Illustrations are blobby gradients, never line-art people.650 651**Icons.** Rounded 1.75px stroke icons at 22px (Lucide, round caps). Active icons gain a `accent` filled disc behind them. Streak and mood glyphs are filled soft shapes: sun, moon, leaf, wave.652 653## 9. Do / Don't654 655**Do**656 657- Keep at least 16px of visible canvas around every glass card so the bleed shows658- Use one teal button per screen; every other action is secondary or ghost659- Round everything: 22px cards, 32px dialogs, full pills for buttons and badges660- Write copy in second person and present tense ("Take three slow breaths")661- Use `warning` amber for gentle nudges and save `destructive` for data loss662 663**Don't**664 665- Don't use hard black or pure white; text is `foreground` plum-ink and panes are 60% white666- Don't add sharp corners or 1px dividers inside cards; use spacing667- Don't show streak failure in red or with exclamation marks668- Don't animate faster than 200ms or add bounce; this system exhales669- Don't stack glass on glass more than once; the second layer loses the bleed670 671## 10. tokens.css672 673Drop-in, shadcn/ui-compatible. Works with Tailwind v4 as-is (the `@theme inline` block creates `bg-primary`, `text-muted-foreground`, `font-heading`, `text-display`, `rounded-ui-lg`, `shadow-ui-md`…). Plain CSS projects can ignore the `@theme` block.674 675```css676/* Aurora Glass, tokens.css677 * https://freedesignmd.com/system/aurora-glass678 * shadcn/ui-compatible variables. Light on :root, dark on .dark.679 * Default mode: light.680 */681@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700&family=Figtree:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap");682 683:root {684 --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;685 --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;686 --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;687 --type-display-size: clamp(34px, 24.34px + 2.476vw, 60px);688 --type-display-leading: 1.08;689 --type-display-weight: 700;690 --type-display-tracking: -0.03em;691 --type-h1-size: clamp(27px, 22.17px + 1.238vw, 40px);692 --type-h1-leading: 1.14;693 --type-h1-weight: 700;694 --type-h1-tracking: -0.025em;695 --type-h2-size: clamp(21px, 19.14px + 0.476vw, 26px);696 --type-h2-leading: 1.25;697 --type-h2-weight: 600;698 --type-h2-tracking: -0.015em;699 --type-h3-size: 18px;700 --type-h3-leading: 1.4;701 --type-h3-weight: 600;702 --type-h3-tracking: -0.005em;703 --type-body-size: 16px;704 --type-body-leading: 1.65;705 --type-body-weight: 400;706 --type-body-tracking: 0em;707 --type-small-size: 14px;708 --type-small-leading: 1.55;709 --type-small-weight: 400;710 --type-small-tracking: 0em;711 --type-label-size: 13px;712 --type-label-leading: 1.3;713 --type-label-weight: 600;714 --type-label-tracking: 0.01em;715 --type-mono-size: 13px;716 --type-mono-leading: 1.55;717 --type-mono-weight: 400;718 --type-mono-tracking: 0em;719 --space-1: 4px;720 --space-2: 8px;721 --space-3: 12px;722 --space-4: 16px;723 --space-6: 24px;724 --space-8: 32px;725 --space-10: 40px;726 --space-14: 56px;727 --space-20: 80px;728 --space-28: 112px;729 --radius: 14px;730 --radius-sm: 10px;731 --radius-md: 14px;732 --radius-lg: 22px;733 --radius-xl: 32px;734 --radius-full: 9999px;735 --duration-instant: 120ms;736 --duration-fast: 200ms;737 --duration-base: 320ms;738 --duration-slow: 700ms;739 --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);740 --ease-out: cubic-bezier(0.22, 1, 0.36, 1);741 --ease-in: cubic-bezier(0.55, 0, 0.8, 0.4);742 --reveal-distance: 16px;743 --reveal-stagger: 90ms;744 --container-max: 1120px;745 --gutter: 24px;746 --section-y: 112px;747 --section-y-mobile: 64px;748 --measure: 60ch;749 --background: #f7f3fa;750 --foreground: #231b33;751 --card: #ffffff;752 --card-foreground: #231b33;753 --muted: #efe9f5;754 --muted-foreground: #62567a;755 --primary: #16756f;756 --primary-foreground: #ffffff;757 --secondary: #ece6f4;758 --secondary-foreground: #231b33;759 --accent: #def3ef;760 --accent-foreground: #0d4f4b;761 --border: rgba(35,27,51,0.1);762 --input: rgba(35,27,51,0.2);763 --ring: #16756f;764 --destructive: #b3263e;765 --destructive-foreground: #ffffff;766 --success: #1b7a4a;767 --success-foreground: #ffffff;768 --warning: #f3c969;769 --warning-foreground: #2a1d00;770 --chart-1: #16756f;771 --chart-2: #8a63d2;772 --chart-3: #e0825f;773 --chart-4: #d4a017;774 --chart-5: #4a8fd4;775 --shadow-sm: 0 1px 2px rgba(80,50,120,0.06);776 --shadow-md: 0 12px 32px -12px rgba(110,70,170,0.22), 0 1px 2px rgba(80,50,120,0.06);777 --shadow-lg: 0 40px 90px -24px rgba(110,70,170,0.38), 0 0 0 1px rgba(255,255,255,0.7);778 --glass: rgba(255,255,255,0.6);779 --glass-edge: rgba(255,255,255,0.85);780 --bleed-peach: rgba(255,181,148,0.55);781 --bleed-lilac: rgba(190,160,255,0.5);782 --bleed-mint: rgba(150,230,210,0.5);783}784 785.dark {786 --background: #12101c;787 --foreground: #f1ecf8;788 --card: #1b1829;789 --card-foreground: #f1ecf8;790 --muted: #252137;791 --muted-foreground: #aaa0c2;792 --primary: #6fd8cd;793 --primary-foreground: #0b1a19;794 --secondary: #2a2540;795 --secondary-foreground: #ece6f6;796 --accent: #1d3a3a;797 --accent-foreground: #c8f3ee;798 --border: rgba(255,255,255,0.1);799 --input: rgba(255,255,255,0.16);800 --ring: #6fd8cd;801 --destructive: #ff8a9c;802 --destructive-foreground: #1a0509;803 --success: #6fdc9e;804 --success-foreground: #04170c;805 --warning: #f3c969;806 --warning-foreground: #2a1d00;807 --chart-1: #6fd8cd;808 --chart-2: #b49af0;809 --chart-3: #f2a584;810 --chart-4: #f3c969;811 --chart-5: #7db8f2;812 --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);813 --shadow-md: 0 12px 32px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);814 --shadow-lg: 0 40px 90px -24px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.08);815 --glass: rgba(255,255,255,0.07);816 --glass-edge: rgba(255,255,255,0.12);817 --bleed-peach: rgba(255,150,110,0.22);818 --bleed-lilac: rgba(150,120,240,0.26);819 --bleed-mint: rgba(80,200,180,0.2);820}821 822/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */823@theme inline {824 --color-background: var(--background);825 --color-foreground: var(--foreground);826 --color-card: var(--card);827 --color-card-foreground: var(--card-foreground);828 --color-muted: var(--muted);829 --color-muted-foreground: var(--muted-foreground);830 --color-primary: var(--primary);831 --color-primary-foreground: var(--primary-foreground);832 --color-secondary: var(--secondary);833 --color-secondary-foreground: var(--secondary-foreground);834 --color-accent: var(--accent);835 --color-accent-foreground: var(--accent-foreground);836 --color-border: var(--border);837 --color-input: var(--input);838 --color-ring: var(--ring);839 --color-destructive: var(--destructive);840 --color-destructive-foreground: var(--destructive-foreground);841 --color-success: var(--success);842 --color-success-foreground: var(--success-foreground);843 --color-warning: var(--warning);844 --color-warning-foreground: var(--warning-foreground);845 --color-chart-1: var(--chart-1);846 --color-chart-2: var(--chart-2);847 --color-chart-3: var(--chart-3);848 --color-chart-4: var(--chart-4);849 --color-chart-5: var(--chart-5);850 --font-heading: var(--font-display);851 --font-body: var(--font-sans);852 --font-code: var(--font-mono);853 --radius-ui-sm: var(--radius-sm);854 --radius-ui-md: var(--radius-md);855 --radius-ui-lg: var(--radius-lg);856 --radius-ui-xl: var(--radius-xl);857 --text-display: var(--type-display-size);858 --text-display--line-height: var(--type-display-leading);859 --text-display--letter-spacing: var(--type-display-tracking);860 --text-display--font-weight: var(--type-display-weight);861 --text-h1: var(--type-h1-size);862 --text-h1--line-height: var(--type-h1-leading);863 --text-h1--letter-spacing: var(--type-h1-tracking);864 --text-h1--font-weight: var(--type-h1-weight);865 --text-h2: var(--type-h2-size);866 --text-h2--line-height: var(--type-h2-leading);867 --text-h2--letter-spacing: var(--type-h2-tracking);868 --text-h2--font-weight: var(--type-h2-weight);869 --text-h3: var(--type-h3-size);870 --text-h3--line-height: var(--type-h3-leading);871 --text-h3--letter-spacing: var(--type-h3-tracking);872 --text-h3--font-weight: var(--type-h3-weight);873 --text-body: var(--type-body-size);874 --text-body--line-height: var(--type-body-leading);875 --text-body--letter-spacing: var(--type-body-tracking);876 --text-body--font-weight: var(--type-body-weight);877 --text-small: var(--type-small-size);878 --text-small--line-height: var(--type-small-leading);879 --text-small--letter-spacing: var(--type-small-tracking);880 --text-small--font-weight: var(--type-small-weight);881 --text-label: var(--type-label-size);882 --text-label--line-height: var(--type-label-leading);883 --text-label--letter-spacing: var(--type-label-tracking);884 --text-label--font-weight: var(--type-label-weight);885 --text-mono: var(--type-mono-size);886 --text-mono--line-height: var(--type-mono-leading);887 --text-mono--letter-spacing: var(--type-mono-tracking);888 --text-mono--font-weight: var(--type-mono-weight);889 --shadow-ui-sm: var(--shadow-sm);890 --shadow-ui-md: var(--shadow-md);891 --shadow-ui-lg: var(--shadow-lg);892}893 894@layer base {895 body {896 background: var(--background);897 color: var(--foreground);898 font-family: var(--font-sans);899 font-size: var(--type-body-size);900 line-height: var(--type-body-leading);901 font-weight: var(--type-body-weight);902 letter-spacing: var(--type-body-tracking);903 -webkit-font-smoothing: antialiased;904 }905 .type-display {906 font-family: var(--font-display);907 font-size: var(--type-display-size);908 line-height: var(--type-display-leading);909 font-weight: var(--type-display-weight);910 letter-spacing: var(--type-display-tracking);911 }912 .type-h1 {913 font-family: var(--font-display);914 font-size: var(--type-h1-size);915 line-height: var(--type-h1-leading);916 font-weight: var(--type-h1-weight);917 letter-spacing: var(--type-h1-tracking);918 }919 .type-h2 {920 font-family: var(--font-display);921 font-size: var(--type-h2-size);922 line-height: var(--type-h2-leading);923 font-weight: var(--type-h2-weight);924 letter-spacing: var(--type-h2-tracking);925 }926 .type-h3 {927 font-family: var(--font-display);928 font-size: var(--type-h3-size);929 line-height: var(--type-h3-leading);930 font-weight: var(--type-h3-weight);931 letter-spacing: var(--type-h3-tracking);932 }933 .type-body {934 font-family: var(--font-sans);935 font-size: var(--type-body-size);936 line-height: var(--type-body-leading);937 font-weight: var(--type-body-weight);938 letter-spacing: var(--type-body-tracking);939 }940 .type-small {941 font-family: var(--font-sans);942 font-size: var(--type-small-size);943 line-height: var(--type-small-leading);944 font-weight: var(--type-small-weight);945 letter-spacing: var(--type-small-tracking);946 }947 .type-label {948 font-family: var(--font-sans);949 font-size: var(--type-label-size);950 line-height: var(--type-label-leading);951 font-weight: var(--type-label-weight);952 letter-spacing: var(--type-label-tracking);953 }954 .type-mono {955 font-family: var(--font-mono);956 font-size: var(--type-mono-size);957 line-height: var(--type-mono-leading);958 font-weight: var(--type-mono-weight);959 letter-spacing: var(--type-mono-tracking);960 }961 h1 {962 font-family: var(--font-display);963 font-size: var(--type-h1-size);964 line-height: var(--type-h1-leading);965 font-weight: var(--type-h1-weight);966 letter-spacing: var(--type-h1-tracking);967 }968 h2 {969 font-family: var(--font-display);970 font-size: var(--type-h2-size);971 line-height: var(--type-h2-leading);972 font-weight: var(--type-h2-weight);973 letter-spacing: var(--type-h2-tracking);974 }975 h3 {976 font-family: var(--font-display);977 font-size: var(--type-h3-size);978 line-height: var(--type-h3-leading);979 font-weight: var(--type-h3-weight);980 letter-spacing: var(--type-h3-tracking);981 }982 code, kbd, samp, pre {983 font-family: var(--font-mono);984 }985 ::selection {986 background: var(--primary);987 color: var(--primary-foreground);988 }989 .container {990 width: 100%;991 max-width: var(--container-max);992 margin-inline: auto;993 padding-inline: var(--gutter);994 }995 .section {996 padding-block: var(--section-y);997 }998 .prose {999 max-width: var(--measure);1000 }1001 .reveal {1002 opacity: 0;1003 transform: translateY(var(--reveal-distance));1004 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);1005 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));1006 }1007 .reveal.is-in {1008 opacity: 1;1009 transform: none;1010 }1011 @media (prefers-reduced-motion: reduce) {1012 .reveal { opacity: 1; transform: none; transition: none; }1013 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }1014 }1015}1016```1017 1018Tailwind v3:1019 1020```js1021// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)1022module.exports = {1023 darkMode: "class",1024 theme: {1025 extend: {1026 colors: {1027 "background": "var(--background)",1028 "foreground": "var(--foreground)",1029 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },1030 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },1031 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },1032 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },1033 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },1034 "border": "var(--border)",1035 "input": "var(--input)",1036 "ring": "var(--ring)",1037 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1038 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1039 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1040 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1041 },1042 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1043 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1044 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1045 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1046 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1047 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1048 },1049 },1050};1051```1052 1053Dependencies: `lucide-react`Save as DESIGN.md in the repo root and add “Follow DESIGN.md for all UI” to CLAUDE.md, AGENTS.md or your Cursor rules.


