Foolish for shadcn/ui

Foolish is a shadcn/ui theme built around a neutral gray primary color (#96a297) with neutral gray accents (#a29796). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#96a297) on a green-tinted background (#060f07).

Color palette

TokenLightDark
Background
#ffffffwhite
#060f07black
Foreground
#051407black
#ffffffwhite
Card
#fcfcfcsnow
#071209black
Card foreground
#041006black
#ffffffwhite
Popover
#fcfcfcsnow
#071209black
Popover foreground
#041006black
#ffffffwhite
Primary
#96a297darkgray
#96a297darkgray
Primary foreground
#020302black
#020302black
Secondary
#9796a2darkgray
#9796a2darkgray
Secondary foreground
#020203black
#020203black
Muted
#d8d4edgainsboro
#16122bblack
Muted foreground
#413e51darkslategray
#b1aec1silver
Accent
#a29796darkgray
#a29796darkgray
Accent foreground
#030202black
#030202black
Destructive
#6f0702maroon
#fb1f13red
Destructive foreground
#fea9a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96a297darkgray
#96a297darkgray

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.99:1AAA
Primary button7.74:1AAA
Secondary button7.08:1AAA
Muted text7.16:1AAA
Accent7.31:1AAA
Destructive6.71:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.05:1AAA
Primary button7.74:1AAA
Secondary button7.08:1AAA
Muted text8.37:1AAA
Accent7.31:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.174 0.035 148.004);
  --muted: oklch(0.881 0.034 292.583);
  --muted-foreground: oklch(0.375 0.032 291.672);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.158 0.03 148.558);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.158 0.03 148.558);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.698 0.02 149.869);
  --primary-foreground: oklch(0.092 0.002 150.132);
  --secondary: oklch(0.677 0.017 292.819);
  --secondary-foreground: oklch(0.09 0.002 293.172);
  --accent: oklch(0.686 0.012 29.537);
  --accent-foreground: oklch(0.091 0.001 29.936);
  --destructive: oklch(0.343 0.135 30.034);
  --destructive-foreground: oklch(0.816 0.101 22.816);
  --ring: oklch(0.698 0.02 149.869);
  --chart-1: oklch(0.698 0.02 149.869);
  --chart-2: oklch(0.677 0.017 292.819);
  --chart-3: oklch(0.686 0.012 29.537);
  --chart-4: oklch(0.703 0.016 292.878);
  --chart-5: oklch(0.702 0.03 149.68);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.022 149.005);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.203 0.048 288.276);
  --muted-foreground: oklch(0.76 0.026 292.647);
  --popover: oklch(0.169 0.026 148.452);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.026 148.452);
  --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.698 0.02 149.869);
  --primary-foreground: oklch(0.092 0.002 150.132);
  --secondary: oklch(0.677 0.017 292.819);
  --secondary-foreground: oklch(0.09 0.002 293.172);
  --accent: oklch(0.686 0.012 29.537);
  --accent-foreground: oklch(0.091 0.001 29.936);
  --destructive: oklch(0.629 0.247 29.429);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.698 0.02 149.869);
  --chart-1: oklch(0.698 0.02 149.869);
  --chart-2: oklch(0.677 0.017 292.819);
  --chart-3: oklch(0.686 0.012 29.537);
  --chart-4: oklch(0.703 0.016 292.878);
  --chart-5: oklch(0.702 0.03 149.68);
}