Unwitting for shadcn/ui

Unwitting is a shadcn/ui theme built around a deep indigo primary color (#161641) with deep green accents (#164116). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#161641) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#ffffffwhite
#010104black
Foreground
#050514black
#fcfcfdwhite
Card
#ffffffwhite
#010104black
Card foreground
#050514black
#fcfcfdwhite
Popover
#ffffffwhite
#010104black
Popover foreground
#050514black
#fcfcfdwhite
Primary
#161641midnightblue
#161641midnightblue
Primary foreground
#a8a7e2lightsteelblue
#a8a7e2lightsteelblue
Secondary
#411616maroon
#411616maroon
Secondary foreground
#e2a8a7tan
#e2a8a7tan
Muted
#f0ebealinen
#150f0fblack
Muted foreground
#5f5959dimgray
#a6a1a0darkgray
Accent
#164116darkgreen
#164116darkgreen
Accent foreground
#a7e2a8palegreen
#a7e2a8palegreen
Destructive
#671004maroon
#f5260aorangered
Destructive foreground
#fbaca2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#161641midnightblue
#161641midnightblue

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button7.59:1AAA
Secondary button7.67:1AAA
Muted text5.79:1AA
Accent7.81:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button7.59:1AAA
Secondary button7.67:1AAA
Muted text7.42:1AAA
Accent7.81:1AAA
Destructive4.07: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.129 0.035 281.352);
  --muted: oklch(0.943 0.006 18.454);
  --muted-foreground: oklch(0.47 0.007 18.593);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.035 281.352);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.035 281.352);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.23 0.08 278.794);
  --primary-foreground: oklch(0.75 0.084 284.954);
  --secondary: oklch(0.269 0.067 23.616);
  --secondary-foreground: oklch(0.785 0.068 19.836);
  --accent: oklch(0.334 0.085 143.648);
  --accent-foreground: oklch(0.857 0.099 145.053);
  --destructive: oklch(0.333 0.122 31.382);
  --destructive-foreground: oklch(0.819 0.095 27.629);
  --ring: oklch(0.23 0.08 278.794);
  --chart-1: oklch(0.23 0.08 278.794);
  --chart-2: oklch(0.269 0.067 23.616);
  --chart-3: oklch(0.334 0.085 143.648);
  --chart-4: oklch(0.297 0.076 23.874);
  --chart-5: oklch(0.227 0.084 278.043);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.074 0.018 282.426);
  --foreground: oklch(0.991 0.002 287.141);
  --muted: oklch(0.176 0.009 19.179);
  --muted-foreground: oklch(0.712 0.006 18.497);
  --popover: oklch(0.074 0.018 282.426);
  --popover-foreground: oklch(0.991 0.002 287.141);
  --card: oklch(0.074 0.018 282.426);
  --card-foreground: oklch(0.991 0.002 287.141);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.23 0.08 278.794);
  --primary-foreground: oklch(0.75 0.084 284.954);
  --secondary: oklch(0.269 0.067 23.616);
  --secondary-foreground: oklch(0.785 0.068 19.836);
  --accent: oklch(0.334 0.085 143.648);
  --accent-foreground: oklch(0.857 0.099 145.053);
  --destructive: oklch(0.62 0.239 30.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.23 0.08 278.794);
  --chart-1: oklch(0.23 0.08 278.794);
  --chart-2: oklch(0.269 0.067 23.616);
  --chart-3: oklch(0.334 0.085 143.648);
  --chart-4: oklch(0.297 0.076 23.874);
  --chart-5: oklch(0.227 0.084 278.043);
}