Docs / Style system
UI Catalogue: Style system (colour, type, theme, surface, aesthetic, layout)
Load ui-catalogue first (D:/Projects/ui-catalogue/ui-catalogue, scripts/uic.py). Measured palettes live in index/palettes.md/.json (built by scripts/extract_palettes.py, ~50 s for all designs; validated: designs tagged only Dark mode have a dark dominant colour 85% of the time, Light mode 95%). Style co-occurrence: index/style-recipes.md.
Which reference file
| Need | File (references/) |
|---|---|
| Palette choice, role assignment (bg/surface/text/accent), per-industry norms, 12 archetypes with CSS tokens and contrast ratios, gradient/mesh/glow recipes, accessibility rules | color-and-palettes.md |
| Dark vs light decisions, dark-mode craft checklist, elevation without shadows, theme toggle, token pair for one system in two themes | theme-dark-light.md |
| Font classes and pairings, scales, tracking, token sets (grotesque + mono, serif hero, italic serif accent, edge-bleed oversize, poster caps, terminal, micro-caps...) | typography.md |
| Liquid glass, glow, frosted dark, mesh/aurora, blur, soft shadow, neumorphism, skeuomorphic, chrome, holographic, liquid/shader, grain, print texture, dither, halftone, ASCII, neon/glitch + 3D/clay/isometric/line/flat/hand-drawn/pixel/wireframe/duotone idioms, with CSS/SVG/WebGL snippets | styles-surfaces-and-effects.md |
| Minimal, Techy, Calm, Playful, Premium, Brutalist, Swiss, Y2K, Retro, Cyberpunk, Maximalist, Editorial, Moody/Dreamy, Japanese/Nordic, Artsy + style selection guide (brand attribute -> style stack) | styles-aesthetic-movements.md |
| Centred stage, bento, card layout, modular grid, portfolio grid, split hero, full bleed, whitespace, collage/broken grid, diagonal, masonry, horizontal scroll, floating elements, dense data layouts | styles-layout-systems.md |
Measured facts
- Neutral-first catalogue: 86% of designs have a neutral background; only 44% have any chromatic accent (median accent share of pixels 3.6%). Use one accent, small.
- Dark is mostly not black: of 1,955 dark designs, 36% pure black (max channel <=10), 39% graphite (
#11-#1e), 19% brand-tinted; median dark bg#0f0f0f. Elevation = lighter surface + 1px border, not shadow. Primary CTA on dark is typically a light pill. - Apps default light (156 light vs 33 dark apps, 3 mixed); dark clusters in media, wearables, crypto/trading, creative/dev tools.
Dark light toggle(126 designs) is a signature interaction in portfolios/dev tools. - Median accents fail WCAG as text: light blue
#4676d54.2:1, terracotta#b3693e3.7:1, dark-mode blue 3.0:1: use adjusted values from the file. Saturated blocks (orange/yellow/pastel) need near-black ink (white on orange#f06b1c= 3.1:1). - Typography: sans is the untagged default, so type tags mark departures: Serif 23% of Sites (Food 48%, Media 43%, AI 31%), Monospace 43% of Developer Tools sites (15% baseline),
Oversized typeis a hero device (73% carry Hero). - 3D-first and centred-stage-first:
3D render1,035 designs,Centered2,128 (38%). Flat, hand-drawn, riso, pixel each <30: underused ways to stand out. - Commit to one hero material and one movement. Real stacks by pair-lift: Dithering+Halftone x27, Chrome+Premium x20, Glass+Blur x9, Glow+Futuristic (43), Swiss+Modular x11. Large gradients and dark fields almost always carry grain or dither.
- Dark designs treat light as the source (glow, refraction, specular rim); light designs use stacked soft shadows.
- Tags undercount looks:
bento111 description hits vs 74 tagged;iridescent73 vs 41 Holographic; "liquid glass" 43; Brutalist is tagged 10 times and Swiss 6 across Sites though the looks are common. Search free text too. - Fresh now: refractive Apple-style glass; dither/ASCII/halftone mono with one accent; holographic & chrome cards; print textures (stamps, receipts, paper); tactile hardware controls. Clichés: purple AI gradients, orb heroes, 3D blobs with no meaning.
Choosing a style (procedure)
- From the brief take: product type, trust vs desire, audience, platform, theme norm for the domain.
- Use the style selection guide in
styles-aesthetic-movements.mdto get a stack (aesthetic + 1 surface + 1 layout + type + palette archetype). - Open the matching palette archetype in
color-and-palettes.md; copy the token set; adjust accent for contrast. - Pair type from
typography.md(e.g. grotesque + mono labels for tech; serif + one accent for trust; poster caps for energy). uic.py sheet12-24 exemplars of the stack (--tagcombos fromindex/style-recipes.md); verify your tokens against their look.- Write tokens as CSS custom properties (
--bg --surface --border --text --muted --accent --accent-ink, type scale, radii, spacing, shadow/elevation, motion durations) and one dark/light pair if both are needed.
Paste-ready defaults (use only when no archetype fits)
:root{--bg:#fafafa;--surface:#fff;--border:rgb(0 0 0/.08);--text:#0b0b0c;--muted:#6b6f76;--accent:#2f5fd0;--accent-ink:#fff;
--radius-s:8px;--radius-m:12px;--radius-l:20px;--space:8px;--shadow:0 1px 2px rgb(0 0 0/.05),0 8px 24px rgb(0 0 0/.06);
--font-sans:"Inter",system-ui,sans-serif;--font-mono:"JetBrains Mono",ui-monospace,monospace}
[data-theme=dark]{--bg:#0f0f0f;--surface:#161616;--border:rgb(255 255 255/.09);--text:#f2f2f2;--muted:#9a9a9a;--accent:#6d8dff;--accent-ink:#0b0b0c;--shadow:none}