UI Catalogue Connect AI
Docs / ui-catalogue-style / theme-dark-light

Theme: dark vs light conventions, dark/light toggle, dark and light craft

How the catalogue splits between light and dark, which sections/categories/moods lean which way, and how the best dark and light designs are built. Counts come from tags (Light mode 2928, Dark mode 1741, Dark light toggle 126, Frosted dark 17) and from measured backgrounds in index/palettes.md (scripts/extract_palettes.py). Tag overlap: 2768 designs are tagged light only, 1592 dark only, 1083 neither (mostly Graphic/Motion/Ads), 125 have both Dark mode and Light mode tags, of which 67 also carry the toggle tag. Hex values are medians of real designs or pixel samples; [inferred] marks eyeballed values.

How to find them

python3 scripts/uic.py sheet --tag "Dark light toggle" --limit 24 -o D:/Projects/ui-catalogue/_work/me/toggle.jpg
python3 scripts/uic.py sheet --tag "Dark mode" --tag "Glow effect" --limit 24 -o ...
python3 scripts/uic.py sheet --tag "Light mode" --tag Calm --section Sites --limit 24 -o ...
python3 scripts/uic.py search --tag "Frosted dark"              # 17 dark glass/blur UIs
python3 scripts/uic.py appsheet "Oura" --from 1 --count 18 --cols 9 -o ...   # dark mobile flow
python3 scripts/uic.py cooc "Dark light toggle" --top 30

What dominates (quantitative)

Pattern cards

Quiet light product (default)

Warm / cool light variants

Pure-black launch dark

Graphite elevated dark (product UI)

Tinted / vignette dark for mobile onboarding

Brand-tinted dark

Inverse island (dark panel inside a light page, or light card in a dark page)

Theme toggle as signature interaction

Glow on dark

Frosted dark / glass

Dark-mode craft checklist (observed)

aspect observed norm
base #050506 black (launch), #111112-#131519 graphite (product), brand tint at L ≤ 0.12
steps +4 to +8 per elevation level in 0-255 (#131519 -> #1a1c20 -> #202329); iOS #000/#1c1c1e/#242426/#2c2c2e
separation 1px border at 6-10% white + lighter surface; shadows are not visible
text primary #ededed-#f2f2f3 (≈ 17:1), secondary 55-65% (≈ 5.5-6:1), disabled 35-40%
accent raise lightness 15-25% vs light mode; saturation 0.55-0.7; glow ≤ 25% alpha
primary CTA light pill (white or warm cream #f7ece7) with dark ink; accent-filled for secondary emphasis
imagery dim photos 10-30% or add a bottom scrim; avoid white-background PNGs
data viz muted gridlines (8% white), series at 70-85% L, positive #35c26b / negative #ef5a4f
status use the same hues as light but lighter; avoid pure #f00 on black (vibration)
focus 2px accent ring with 2px offset

Light-mode craft checklist (observed)

aspect observed norm
base #fafafa/#f9f9f9 (24%), #fff (11.5%), warm #f2efe8 (8.7%), cool #e8eaf1 (3.2%)
separation 1px #e5e5e5, or white card on off-white page; shadow ≤ 4% black
text #111-#1a1a1b primary, #5b5b60 secondary (6.4:1), placeholder #8a8a93 (3.3:1 on #fafafa: acceptable only for placeholder text, never for real content)
accent darken to ≥ 4.5:1 for text; fills can stay lighter with dark ink
primary CTA black or brand-dark pill; white secondary pill + hairline
imagery warm-graded photography on warm bases; product shots with rounded 16-24px frame
contrast islands one dark panel per page (inverse island) for drama

Token pair (paste-ready, one system, two themes)

:root{color-scheme:light dark;
  --bg:#fafafa;--surface:#fff;--surface-2:#f2f2f3;--border:#e5e5e5;--text:#1a1a1b;--text-2:#5b5b60;--accent:#3b6fd8;--on-accent:#fff;--cta-bg:#111;--cta-fg:#fff;--shadow:0 1px 2px rgba(0,0,0,.05)}
:root[data-theme="dark"]{
  --bg:#131519;--surface:#1a1c20;--surface-2:#202329;--border:#262a30;--text:#f1f2f4;--text-2:#8b8f98;--accent:#7aa2ff;--on-accent:#0b0f1a;--cta-bg:#ededed;--cta-fg:#111;--shadow:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#131519;--surface:#1a1c20;--surface-2:#202329;--border:#262a30;--text:#f1f2f4;--text-2:#8b8f98;--accent:#7aa2ff;--on-accent:#0b0f1a;--cta-bg:#ededed;--cta-fg:#111;--shadow:none}}
body{background:var(--bg);color:var(--text);transition:background-color .2s,color .2s}
.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}
.btn-primary{background:var(--cta-bg);color:var(--cta-fg);border-radius:999px}

Contrast: dark text 15.2:1 on surface, --text-2 5.6:1, --accent #7aa2ff 7.3:1 on --bg; light --text-2 6.4:1, --accent #3b6fd8 4.5:1 on #fafafa, #e5e5e5 border is a 1.2:1 hairline (decorative, so use a darker border #c8c8cc for input outlines to reach 3:1).

Brief -> query recipes

Exemplar index

ID title why
01M4H8JHS… Vercel reference quiet light product
01M4HFDNW… Public light page with a dark island
01M507MSK… Dark Mode Fintech Bento Feature Grid graphite elevation, 1px borders, glow
01M49CMPN… Tensorlake Brand & Website warm graphite + hairline grid
01M4GK2F3… Lovable glow on near-black
01M4Y41DD… Dark Mode Community Platform Landing tinted dark over photo, light CTA
01M4ARSE1… Window Theme Toggle metaphor toggle
01M4AS3BE… Dark Mode Knob tactile mode knob
01M4GMWRZ… Spela brand-tinted dark + acid accent