Complicated for shadcn/ui

Complicated is a shadcn/ui theme built around a vivid deep blue primary color (#0d1a77) with vivid deep yellow accents (#776b0d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#0d1a77) on a blue-tinted background (#05060a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05060ablack
Foreground
#050715black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#07070eblack
Card foreground
#040511black
#fcfcfdwhite
Popover
#ffffffwhite
#05060ablack
Popover foreground
#050715black
#f9f9fbghostwhite
Primary
#0d1a77midnightblue
#0d1a77midnightblue
Primary foreground
#bfc5f8lightsteelblue
#bfc5f8lightsteelblue
Secondary
#776b0dolive
#776b0dolive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edead4antiquewhite
#2b2812black
Muted foreground
#42423ddarkslategray
#c2c1bdsilver
Accent
#776b0dolive
#776b0dolive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b92909firebrick
#f4360borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d1a77midnightblue
#0d1a77midnightblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.04:1AAA
Text on card19.85:1AAA
Primary button8.78:1AAA
Secondary button5.38:1AA
Muted text8.31:1AAA
Accent5.38:1AA
Destructive6.20:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.55:1AAA
Primary button8.78:1AAA
Secondary button5.38:1AA
Muted text8.24:1AAA
Accent5.38:1AA
Destructive3.91:1AA Large

CSS variables

Paste this into your globals.css to use Complicated in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.032 273.704);
  --muted: oklch(0.933 0.029 100.785);
  --muted-foreground: oklch(0.377 0.008 100.631);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.032 273.704);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.027 273.456);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.292 0.156 267.387);
  --primary-foreground: oklch(0.837 0.071 278.865);
  --secondary: oklch(0.523 0.105 100.95);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.523 0.105 100.95);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.514 0.184 32.969);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.292 0.156 267.387);
  --chart-1: oklch(0.292 0.156 267.387);
  --chart-2: oklch(0.523 0.105 100.95);
  --chart-3: oklch(0.523 0.105 100.95);
  --chart-4: oklch(0.566 0.114 100.888);
  --chart-5: oklch(0.291 0.16 266.903);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.013 277.063);
  --foreground: oklch(0.982 0.003 280.279);
  --muted: oklch(0.274 0.036 101.807);
  --muted-foreground: oklch(0.811 0.006 100.449);
  --popover: oklch(0.121 0.013 277.063);
  --popover-foreground: oklch(0.982 0.003 280.279);
  --card: oklch(0.134 0.015 277.33);
  --card-foreground: oklch(0.991 0.002 280.305);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.292 0.156 267.387);
  --primary-foreground: oklch(0.837 0.071 278.865);
  --secondary: oklch(0.523 0.105 100.95);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.523 0.105 100.95);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.629 0.229 32.742);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.292 0.156 267.387);
  --chart-1: oklch(0.292 0.156 267.387);
  --chart-2: oklch(0.523 0.105 100.95);
  --chart-3: oklch(0.523 0.105 100.95);
  --chart-4: oklch(0.566 0.114 100.888);
  --chart-5: oklch(0.291 0.16 266.903);
}