theme-1 for shadcn/ui

theme-1 is a shadcn/ui theme built around a muted deep purple primary color (#372536) with muted deep teal accents (#253637). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the muted deep purple primary (#372536) on a purple-tinted background (#0d070d).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#0d070dblack
Foreground
#0d020dblack
#ffffffwhite
Card
#e9dde9gainsboro
#110910black
Card foreground
#090109black
#ffffffwhite
Popover
#fbf4fbghostwhite
#110910black
Popover foreground
#090109black
#ffffffwhite
Primary
#372536darkslategray
#372536darkslategray
Primary foreground
#d2bcd1thistle
#d2bcd1thistle
Secondary
#363725darkslategray
#363725darkslategray
Secondary foreground
#d1d2bclightgrey
#d1d2bclightgrey
Muted
#ebebe0beige
#1f1f14black
Muted foreground
#64654edimgray
#b0b19adarkgray
Accent
#253637darkslategray
#253637darkslategray
Accent foreground
#bcd1d2lightsteelblue
#bcd1d2lightsteelblue
Destructive
#e23112orangered
#e53415orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e8e3e8gainsboro
#251e24black
Input
#e8e3e8gainsboro
#251e24black
Ring
#372536darkslategray
#372536darkslategray

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card15.69:1AAA
Primary button8.02:1AAA
Secondary button7.88:1AAA
Muted text4.98:1AA
Accent7.92:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background19.92:1AAA
Text on card19.64:1AAA
Primary button8.02:1AAA
Secondary button7.88:1AAA
Muted text7.57:1AAA
Accent7.92:1AAA
Destructive4.34:1AA Large

CSS variables

Paste this into your globals.css to use theme-1 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.008 327.11);
  --foreground: oklch(0.122 0.039 329.153);
  --muted: oklch(0.938 0.016 109.016);
  --muted-foreground: oklch(0.498 0.035 109.981);
  --popover: oklch(0.974 0.012 327.147);
  --popover-foreground: oklch(0.106 0.034 328.941);
  --card: oklch(0.911 0.02 327.244);
  --card-foreground: oklch(0.106 0.034 328.941);
  --border: oklch(0.921 0.009 327.132);
  --input: oklch(0.921 0.009 327.132);
  --primary: oklch(0.293 0.04 328.229);
  --primary-foreground: oklch(0.82 0.038 327.462);
  --secondary: oklch(0.331 0.031 110.355);
  --secondary-foreground: oklch(0.857 0.03 109.355);
  --accent: oklch(0.319 0.023 200.171);
  --accent-foreground: oklch(0.845 0.023 200.573);
  --destructive: oklch(0.593 0.215 31.987);
  --destructive-foreground: oklch(0.972 0.012 29.512);
  --ring: oklch(0.293 0.04 328.229);
  --chart-1: oklch(0.293 0.04 328.229);
  --chart-2: oklch(0.331 0.031 110.355);
  --chart-3: oklch(0.319 0.023 200.171);
  --chart-4: oklch(0.365 0.035 110.401);
  --chart-5: oklch(0.292 0.046 328.394);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.018 328.07);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.021 110.313);
  --muted-foreground: oklch(0.754 0.032 109.487);
  --popover: oklch(0.154 0.021 328.221);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.021 328.221);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.244 0.017 327.656);
  --input: oklch(0.244 0.017 327.656);
  --primary: oklch(0.293 0.04 328.229);
  --primary-foreground: oklch(0.82 0.038 327.462);
  --secondary: oklch(0.331 0.031 110.355);
  --secondary-foreground: oklch(0.857 0.03 109.355);
  --accent: oklch(0.319 0.023 200.171);
  --accent-foreground: oklch(0.845 0.023 200.573);
  --destructive: oklch(0.601 0.216 32.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.293 0.04 328.229);
  --chart-1: oklch(0.293 0.04 328.229);
  --chart-2: oklch(0.331 0.031 110.355);
  --chart-3: oklch(0.319 0.023 200.171);
  --chart-4: oklch(0.365 0.035 110.401);
  --chart-5: oklch(0.292 0.046 328.394);
}