Knowledgeable for shadcn/ui

Knowledgeable is a shadcn/ui theme built around a muted green primary color (#96b394) with muted purple accents (#b094b3). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#96b394) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#000000black
Foreground
#010401black
#f9fbf9mintcream
Card
#fcfdfcwhite
#000000black
Card foreground
#010401black
#f9fbf9mintcream
Popover
#fcfdfcwhite
#000000black
Popover foreground
#010401black
#f9fbf9mintcream
Primary
#96b394darkseagreen
#96b394darkseagreen
Primary foreground
#090c08black
#090c08black
Secondary
#b094b3darkgray
#b094b3darkgray
Secondary foreground
#0c080cblack
#0c080cblack
Muted
#ede8eelavender
#171117black
Muted foreground
#614f63dimgray
#ae9cb0darkgray
Accent
#b094b3darkgray
#b094b3darkgray
Accent foreground
#0c080cblack
#0c080cblack
Destructive
#a22901firebrick
#ef3d01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96b394darkseagreen
#96b394darkseagreen

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button8.57:1AAA
Secondary button7.30:1AAA
Muted text6.17:1AA
Accent7.30:1AAA
Destructive7.33:1AAA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button8.57:1AAA
Secondary button7.30:1AAA
Muted text7.23:1AAA
Accent7.30:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 143.12);
  --foreground: oklch(0.097 0.017 141.514);
  --muted: oklch(0.936 0.01 323.184);
  --muted-foreground: oklch(0.455 0.039 323.513);
  --popover: oklch(0.993 0.003 143.12);
  --popover-foreground: oklch(0.097 0.017 141.514);
  --card: oklch(0.993 0.003 143.12);
  --card-foreground: oklch(0.097 0.017 141.514);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.736 0.054 142.784);
  --primary-foreground: oklch(0.149 0.009 142.68);
  --secondary: oklch(0.701 0.055 323.486);
  --secondary-foreground: oklch(0.143 0.009 323.485);
  --accent: oklch(0.701 0.055 323.486);
  --accent-foreground: oklch(0.143 0.009 323.485);
  --destructive: oklch(0.472 0.163 35.505);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.054 142.784);
  --chart-1: oklch(0.736 0.054 142.784);
  --chart-2: oklch(0.701 0.055 323.486);
  --chart-3: oklch(0.701 0.055 323.486);
  --chart-4: oklch(0.727 0.05 323.444);
  --chart-5: oklch(0.74 0.064 142.725);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.004 143.113);
  --muted: oklch(0.189 0.015 323.489);
  --muted-foreground: oklch(0.714 0.035 323.354);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.004 143.113);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.004 143.113);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.736 0.054 142.784);
  --primary-foreground: oklch(0.149 0.009 142.68);
  --secondary: oklch(0.701 0.055 323.486);
  --secondary-foreground: oklch(0.143 0.009 323.485);
  --accent: oklch(0.701 0.055 323.486);
  --accent-foreground: oklch(0.143 0.009 323.485);
  --destructive: oklch(0.625 0.22 34.685);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.054 142.784);
  --chart-1: oklch(0.736 0.054 142.784);
  --chart-2: oklch(0.701 0.055 323.486);
  --chart-3: oklch(0.701 0.055 323.486);
  --chart-4: oklch(0.727 0.05 323.444);
  --chart-5: oklch(0.74 0.064 142.725);
}