Chaos for shadcn/ui

Chaos is a shadcn/ui theme built around a muted deep teal primary color (#111816) with neutral gray accents (#d2d5d4). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#111816) on a teal-tinted background (#050f0c).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050f0cblack
Foreground
#010403black
#f6f9f8whitesmoke
Card
#fbfefdwhite
#050f0cblack
Card foreground
#010403black
#f6f9f8whitesmoke
Popover
#fbfefdwhite
#050f0cblack
Popover foreground
#010403black
#f6f9f8whitesmoke
Primary
#111816black
#111816black
Primary foreground
#a0bbb3darkgray
#a0bbb3darkgray
Secondary
#d2d5d4lightgrey
#191f1dblack
Secondary foreground
#393c3bdarkslategray
#aebcb8silver
Muted
#dceae6gainsboro
#15231fblack
Muted foreground
#3f4644darkslategray
#b9c0besilver
Accent
#d2d5d4lightgrey
#191f1dblack
Accent foreground
#393c3bdarkslategray
#aebcb8silver
Destructive
#7d1903maroon
#f03005orangered
Destructive foreground
#fdc1b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#111816black
#111816black

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button8.80:1AAA
Secondary button7.54:1AAA
Muted text7.80:1AAA
Accent7.54:1AAA
Destructive6.69:1AA
Dark mode
Text on background18.32:1AAA
Text on card18.32:1AAA
Primary button8.80:1AAA
Secondary button8.51:1AAA
Muted text8.77:1AAA
Accent8.51:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 176.547);
  --foreground: oklch(0.1 0.013 176.862);
  --muted: oklch(0.925 0.016 176.149);
  --muted-foreground: oklch(0.386 0.009 175.938);
  --popover: oklch(0.995 0.004 176.547);
  --popover-foreground: oklch(0.1 0.013 176.862);
  --card: oklch(0.995 0.004 176.547);
  --card-foreground: oklch(0.1 0.013 176.862);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.201 0.011 174.916);
  --primary-foreground: oklch(0.77 0.032 175.373);
  --secondary: oklch(0.871 0.003 176.557);
  --secondary-foreground: oklch(0.354 0.005 176.234);
  --accent: oklch(0.871 0.003 176.557);
  --accent-foreground: oklch(0.354 0.005 176.234);
  --destructive: oklch(0.386 0.138 33.44);
  --destructive-foreground: oklch(0.863 0.072 32.926);
  --ring: oklch(0.201 0.011 174.916);
  --chart-1: oklch(0.201 0.011 174.916);
  --chart-2: oklch(0.871 0.003 176.557);
  --chart-3: oklch(0.871 0.003 176.557);
  --chart-4: oklch(0.894 0.002 176.577);
  --chart-5: oklch(0.202 0.013 174.613);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.017 174.457);
  --foreground: oklch(0.979 0.003 176.555);
  --muted: oklch(0.242 0.021 173.798);
  --muted-foreground: oklch(0.802 0.008 176.372);
  --popover: oklch(0.158 0.017 174.457);
  --popover-foreground: oklch(0.979 0.003 176.555);
  --card: oklch(0.158 0.017 174.457);
  --card-foreground: oklch(0.979 0.003 176.555);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.201 0.011 174.916);
  --primary-foreground: oklch(0.77 0.032 175.373);
  --secondary: oklch(0.232 0.009 175.5);
  --secondary-foreground: oklch(0.784 0.017 175.996);
  --accent: oklch(0.232 0.009 175.5);
  --accent-foreground: oklch(0.784 0.017 175.996);
  --destructive: oklch(0.618 0.229 32.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.201 0.011 174.916);
  --chart-1: oklch(0.201 0.011 174.916);
  --chart-2: oklch(0.232 0.009 175.5);
  --chart-3: oklch(0.232 0.009 175.5);
  --chart-4: oklch(0.266 0.011 175.412);
  --chart-5: oklch(0.202 0.013 174.613);
}