Unwitting for shadcn/ui

Unwitting is a shadcn/ui theme built around a deep teal primary color (#0f6567) with deep red accents (#67100f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0f6567) on a teal-tinted background (#051010).

Color palette

TokenLightDark
Background
#ffffffwhite
#051010black
Foreground
#020d0dblack
#ffffffwhite
Card
#ffffffwhite
#051010black
Card foreground
#020d0dblack
#ffffffwhite
Popover
#ffffffwhite
#051010black
Popover foreground
#020d0dblack
#ffffffwhite
Primary
#0f6567teal
#0f6567teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#67100fmaroon
#67100fmaroon
Secondary foreground
#f4b4b3lightpink
#f4b4b3lightpink
Muted
#e2dadagainsboro
#251d1dblack
Muted foreground
#5c4d4ddimgray
#b2a4a3darkgray
Accent
#67100fmaroon
#67100fmaroon
Accent foreground
#f4b4b3lightpink
#f4b4b3lightpink
Destructive
#931b0bdarkred
#e82b11orangered
Destructive foreground
#fcd9d4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f6567teal
#0f6567teal

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button6.81:1AA
Secondary button7.27:1AAA
Muted text5.81:1AA
Accent7.27:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button6.81:1AA
Secondary button7.27:1AAA
Muted text6.84:1AA
Accent7.27:1AAA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.02 196.394);
  --muted: oklch(0.895 0.009 18.509);
  --muted-foreground: oklch(0.435 0.02 19.104);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.02 196.394);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.02 196.394);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.462 0.075 196.705);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.334 0.12 27.351);
  --secondary-foreground: oklch(0.829 0.075 19.896);
  --accent: oklch(0.334 0.12 27.351);
  --accent-foreground: oklch(0.829 0.075 19.896);
  --destructive: oklch(0.431 0.157 31.02);
  --destructive-foreground: oklch(0.913 0.04 26.788);
  --ring: oklch(0.462 0.075 196.705);
  --chart-1: oklch(0.462 0.075 196.705);
  --chart-2: oklch(0.334 0.12 27.351);
  --chart-3: oklch(0.334 0.12 27.351);
  --chart-4: oklch(0.363 0.132 27.527);
  --chart-5: oklch(0.467 0.076 196.718);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.018 196.825);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.012 19.183);
  --muted-foreground: oklch(0.73 0.017 18.734);
  --popover: oklch(0.16 0.018 196.825);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.018 196.825);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.462 0.075 196.705);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.334 0.12 27.351);
  --secondary-foreground: oklch(0.829 0.075 19.896);
  --accent: oklch(0.334 0.12 27.351);
  --accent-foreground: oklch(0.829 0.075 19.896);
  --destructive: oklch(0.601 0.225 30.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.075 196.705);
  --chart-1: oklch(0.462 0.075 196.705);
  --chart-2: oklch(0.334 0.12 27.351);
  --chart-3: oklch(0.334 0.12 27.351);
  --chart-4: oklch(0.363 0.132 27.527);
  --chart-5: oklch(0.467 0.076 196.718);
}