Knowledgeable for shadcn/ui

Knowledgeable is a shadcn/ui theme built around a neutral gray primary color (#cccccc) with muted light red accents (#d7c6c6). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#cccccc) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fcf8f8snow
#030202black
Foreground
#140505black
#fdfcfcsnow
Card
#faf5f5whitesmoke
#070303black
Card foreground
#100404black
#ffffffwhite
Popover
#faf5f5whitesmoke
#070303black
Popover foreground
#100404black
#ffffffwhite
Primary
#cccccclightgrey
#cccccclightgrey
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#d7c6c6lightgrey
#161212black
Secondary foreground
#3f2c2cdarkslategray
#b6a5a5darkgray
Muted
#ecd5d5gainsboro
#2a1313black
Muted foreground
#6a6262dimgray
#9d9595darkgray
Accent
#d7c6c6lightgrey
#161212black
Accent foreground
#3f2c2cdarkslategray
#b6a5a5darkgray
Destructive
#c13e01firebrick
#f44e01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cccccclightgrey
#cccccclightgrey

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card18.62:1AAA
Primary button7.86:1AAA
Secondary button7.96:1AAA
Muted text4.24:1AA Large
Accent7.96:1AAA
Destructive5.32:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.49:1AAA
Primary button7.86:1AAA
Secondary button7.86:1AAA
Muted text5.96:1AA
Accent7.86:1AAA
Destructive3.54: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.982 0.004 17.226);
  --foreground: oklch(0.144 0.029 21.284);
  --muted: oklch(0.891 0.026 17.648);
  --muted-foreground: oklch(0.503 0.01 17.504);
  --popover: oklch(0.973 0.006 17.261);
  --popover-foreground: oklch(0.132 0.025 21.016);
  --card: oklch(0.973 0.006 17.261);
  --card-foreground: oklch(0.132 0.025 21.016);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.841 0.019 17.527);
  --secondary-foreground: oklch(0.316 0.027 18.691);
  --accent: oklch(0.841 0.019 17.527);
  --accent-foreground: oklch(0.316 0.027 18.691);
  --destructive: oklch(0.547 0.176 38.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.841 0.019 17.527);
  --chart-3: oklch(0.841 0.019 17.527);
  --chart-4: oklch(0.867 0.015 17.455);
  --chart-5: oklch(0.843 0.003 17.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.008 18.916);
  --foreground: oklch(0.991 0.001 17.181);
  --muted: oklch(0.221 0.038 20.638);
  --muted-foreground: oklch(0.677 0.01 17.395);
  --popover: oklch(0.109 0.011 18.916);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.011 18.916);
  --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.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.189 0.007 17.763);
  --secondary-foreground: oklch(0.737 0.019 17.592);
  --accent: oklch(0.189 0.007 17.763);
  --accent-foreground: oklch(0.737 0.019 17.592);
  --destructive: oklch(0.65 0.212 38.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.189 0.007 17.763);
  --chart-3: oklch(0.189 0.007 17.763);
  --chart-4: oklch(0.221 0.009 17.846);
  --chart-5: oklch(0.843 0.003 17.225);
}