UI Catalogue Connect AI
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

Choosing a style (procedure)

  1. From the brief take: product type, trust vs desire, audience, platform, theme norm for the domain.
  2. Use the style selection guide in styles-aesthetic-movements.md to get a stack (aesthetic + 1 surface + 1 layout + type + palette archetype).
  3. Open the matching palette archetype in color-and-palettes.md; copy the token set; adjust accent for contrast.
  4. Pair type from typography.md (e.g. grotesque + mono labels for tech; serif + one accent for trust; poster caps for energy).
  5. uic.py sheet 12-24 exemplars of the stack (--tag combos from index/style-recipes.md); verify your tokens against their look.
  6. 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}