Foolish for shadcn/ui

Foolish is a shadcn/ui theme built around a purple primary color (#8f1977) with pink accents (#8f193d). The light mode uses a neutral background (#fcf7fb). Dark mode keeps the purple primary (#8f1977) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fcf7fbsnow
#0b040ablack
Foreground
#150512black
#ffffffwhite
Card
#fbf4faghostwhite
#0f060dblack
Card foreground
#11040eblack
#ffffffwhite
Popover
#fbf4faghostwhite
#0f060dblack
Popover foreground
#11040eblack
#ffffffwhite
Primary
#8f1977purple
#8f1977purple
Primary foreground
#fae1f5lavenderblush
#fae1f5lavenderblush
Secondary
#6c198frebeccapurple
#6c198frebeccapurple
Secondary foreground
#f2e1falavender
#f2e1falavender
Muted
#f4eef7whitesmoke
#0f0811black
Muted foreground
#625f63dimgray
#9f9ca0darkgray
Accent
#8f193dbrown
#8f193dbrown
Accent foreground
#fae1e8mistyrose
#fae1e8mistyrose
Destructive
#760f0amaroon
#ed2b21crimson
Destructive foreground
#f9bbb8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8f1977purple
#8f1977purple

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.49:1AAA
Primary button6.65:1AA
Secondary button7.79:1AAA
Muted text5.50:1AA
Accent7.15:1AAA
Destructive6.96:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.00:1AAA
Primary button6.65:1AA
Secondary button7.79:1AAA
Muted text7.27:1AAA
Accent7.15:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 332.116);
  --foreground: oklch(0.15 0.04 335.008);
  --muted: oklch(0.956 0.014 315.969);
  --muted-foreground: oklch(0.489 0.007 315.971);
  --popover: oklch(0.974 0.011 332.173);
  --popover-foreground: oklch(0.136 0.035 334.393);
  --card: oklch(0.974 0.011 332.173);
  --card-foreground: oklch(0.136 0.035 334.393);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.453 0.179 338.029);
  --primary-foreground: oklch(0.935 0.038 332.594);
  --secondary: oklch(0.412 0.182 312.755);
  --secondary-foreground: oklch(0.93 0.038 315.875);
  --accent: oklch(0.429 0.152 9.734);
  --accent-foreground: oklch(0.931 0.029 357.541);
  --destructive: oklch(0.364 0.137 29.095);
  --destructive-foreground: oklch(0.849 0.072 22.131);
  --ring: oklch(0.453 0.179 338.029);
  --chart-1: oklch(0.453 0.179 338.029);
  --chart-2: oklch(0.412 0.182 312.755);
  --chart-3: oklch(0.429 0.152 9.734);
  --chart-4: oklch(0.438 0.195 312.686);
  --chart-5: oklch(0.456 0.184 338.24);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.022 332.888);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.149 0.022 315.617);
  --muted-foreground: oklch(0.697 0.006 315.989);
  --popover: oklch(0.139 0.025 333.791);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.025 333.791);
  --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.453 0.179 338.029);
  --primary-foreground: oklch(0.935 0.038 332.594);
  --secondary: oklch(0.412 0.182 312.755);
  --secondary-foreground: oklch(0.93 0.038 315.875);
  --accent: oklch(0.429 0.152 9.734);
  --accent-foreground: oklch(0.931 0.029 357.541);
  --destructive: oklch(0.611 0.227 29.008);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.179 338.029);
  --chart-1: oklch(0.453 0.179 338.029);
  --chart-2: oklch(0.412 0.182 312.755);
  --chart-3: oklch(0.429 0.152 9.734);
  --chart-4: oklch(0.438 0.195 312.686);
  --chart-5: oklch(0.456 0.184 338.24);
}