Unwitting for shadcn/ui

Unwitting is a shadcn/ui theme built around a muted deep teal primary color (#1b2c24) with muted light teal accents (#d1e1d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#1b2c24) on a teal-tinted background (#040b08).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b08black
Foreground
#010403black
#f5faf7whitesmoke
Card
#fcfcfcsnow
#060f0bblack
Card foreground
#000000black
#f8fbfamintcream
Popover
#fcfcfcsnow
#060f0bblack
Popover foreground
#000000black
#f8fbfamintcream
Primary
#1b2c24darkslategray
#1b2c24darkslategray
Primary foreground
#adccbesilver
#adccbesilver
Secondary
#e5ebe8lavender
#26362edarkslategray
Secondary foreground
#445a50darkslategray
#bdd0c8silver
Muted
#e9eceblavender
#131615black
Muted foreground
#445a50darkslategray
#a5bbb1darkgray
Accent
#d1e1d9gainsboro
#305041darkslategray
Accent foreground
#324d41darkslategray
#cfe2d9gainsboro
Destructive
#820808maroon
#e30d0dred
Destructive foreground
#fbc0c0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b2c24darkslategray
#1b2c24darkslategray

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button8.48:1AAA
Secondary button6.16:1AA
Muted text6.26:1AA
Accent6.79:1AA
Destructive6.74:1AA
Dark mode
Text on background18.81:1AAA
Text on card18.68:1AAA
Primary button8.48:1AAA
Secondary button7.91:1AAA
Muted text8.96:1AAA
Accent6.64:1AA
Destructive4.86:1AA

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.099 0.014 167.126);
  --muted: oklch(0.941 0.005 166.776);
  --muted-foreground: oklch(0.446 0.032 164.794);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.275 0.026 163.973);
  --primary-foreground: oklch(0.818 0.038 165.57);
  --secondary: oklch(0.935 0.008 166.675);
  --secondary-foreground: oklch(0.446 0.032 164.794);
  --accent: oklch(0.895 0.02 166.289);
  --accent-foreground: oklch(0.395 0.039 163.848);
  --destructive: oklch(0.385 0.152 28.438);
  --destructive-foreground: oklch(0.862 0.068 18.562);
  --ring: oklch(0.275 0.026 163.973);
  --chart-1: oklch(0.275 0.026 163.973);
  --chart-2: oklch(0.935 0.008 166.675);
  --chart-3: oklch(0.895 0.02 166.289);
  --chart-4: oklch(0.957 0.005 166.757);
  --chart-5: oklch(0.278 0.029 163.591);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 166.928);
  --foreground: oklch(0.98 0.005 166.756);
  --muted: oklch(0.197 0.007 165.959);
  --muted-foreground: oklch(0.772 0.028 165.872);
  --popover: oklch(0.156 0.018 165.08);
  --popover-foreground: oklch(0.987 0.004 166.807);
  --card: oklch(0.156 0.018 165.08);
  --card-foreground: oklch(0.987 0.004 166.807);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.275 0.026 163.973);
  --primary-foreground: oklch(0.818 0.038 165.57);
  --secondary: oklch(0.315 0.024 164.593);
  --secondary-foreground: oklch(0.842 0.024 166.111);
  --accent: oklch(0.4 0.046 163.267);
  --accent-foreground: oklch(0.897 0.024 166.171);
  --destructive: oklch(0.577 0.232 28.807);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.275 0.026 163.973);
  --chart-1: oklch(0.275 0.026 163.973);
  --chart-2: oklch(0.315 0.024 164.593);
  --chart-3: oklch(0.4 0.046 163.267);
  --chart-4: oklch(0.348 0.028 164.513);
  --chart-5: oklch(0.278 0.029 163.591);
}