Unwitting for shadcn/ui

Unwitting is a shadcn/ui theme built around a cyan primary color (#167e88) with muted cyan accents (#b4c8ca). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the cyan primary (#167e88) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#fbfdfewhite
#010304black
Foreground
#020708black
#f5f9faghostwhite
Card
#fbfdfewhite
#010304black
Card foreground
#020708black
#f5f9faghostwhite
Popover
#fbfdfewhite
#010304black
Popover foreground
#020708black
#f5f9faghostwhite
Primary
#167e88teal
#167e88teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c8cfd0lightgrey
#2d2f2fdarkslategray
Secondary foreground
#2f3637darkslategray
#c5c8c9silver
Muted
#e1eeeflavender
#101d1eblack
Muted foreground
#587274dimgray
#8ba5a7darkgray
Accent
#b4c8casilver
#3b4445darkslategray
Accent foreground
#202c2ddarkslategray
#d6dbdcgainsboro
Destructive
#8a2000darkred
#ff5f2etomato
Destructive foreground
#ffccbdpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#167e88teal
#167e88teal

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button4.77:1AA
Secondary button7.80:1AAA
Muted text4.33:1AA Large
Accent8.28:1AAA
Destructive6.40:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button4.77:1AA
Secondary button8.00:1AAA
Muted text6.62:1AA
Accent7.16:1AAA
Destructive6.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 203.558);
  --foreground: oklch(0.123 0.012 201.246);
  --muted: oklch(0.939 0.014 203.453);
  --muted-foreground: oklch(0.532 0.031 203.177);
  --popover: oklch(0.994 0.002 203.558);
  --popover-foreground: oklch(0.123 0.012 201.246);
  --card: oklch(0.994 0.002 203.558);
  --card-foreground: oklch(0.123 0.012 201.246);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.545 0.088 204.6);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.85 0.007 203.504);
  --secondary-foreground: oklch(0.327 0.009 203.35);
  --accent: oklch(0.819 0.022 203.357);
  --accent-foreground: oklch(0.281 0.016 203.175);
  --destructive: oklch(0.417 0.146 35.186);
  --destructive-foreground: oklch(0.886 0.062 37.592);
  --ring: oklch(0.545 0.088 204.6);
  --chart-1: oklch(0.545 0.088 204.6);
  --chart-2: oklch(0.85 0.007 203.504);
  --chart-3: oklch(0.819 0.022 203.357);
  --chart-4: oklch(0.872 0.006 203.517);
  --chart-5: oklch(0.55 0.09 204.754);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 201.573);
  --foreground: oklch(0.98 0.004 203.54);
  --muted: oklch(0.218 0.018 203.121);
  --muted-foreground: oklch(0.702 0.029 203.257);
  --popover: oklch(0.097 0.008 201.573);
  --popover-foreground: oklch(0.98 0.004 203.54);
  --card: oklch(0.097 0.008 201.573);
  --card-foreground: oklch(0.98 0.004 203.54);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.545 0.088 204.6);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.303 0.004 203.474);
  --secondary-foreground: oklch(0.831 0.003 203.543);
  --accent: oklch(0.378 0.012 203.315);
  --accent-foreground: oklch(0.888 0.006 203.518);
  --destructive: oklch(0.689 0.204 36.73);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.545 0.088 204.6);
  --chart-1: oklch(0.545 0.088 204.6);
  --chart-2: oklch(0.303 0.004 203.474);
  --chart-3: oklch(0.378 0.012 203.315);
  --chart-4: oklch(0.334 0.004 203.471);
  --chart-5: oklch(0.55 0.09 204.754);
}