Effectiveness for shadcn/ui

Effectiveness is a shadcn/ui theme built around a vivid deep yellow primary color (#402f08) with vivid deep green accents (#344008). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#402f08) on a yellow-tinted background (#0c0903).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0903black
Foreground
#040301black
#fbfaf9snow
Card
#fcfcfcsnow
#100d04black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fcfcfcsnow
#100d04black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#402f08darkolivegreen
#402f08darkolivegreen
Primary foreground
#e5ae2egoldenrod
#e5ae2egoldenrod
Secondary
#401308black
#401308black
Secondary foreground
#f09e89darksalmon
#f09e89darksalmon
Muted
#e1dcdbgainsboro
#241f1eblack
Muted foreground
#5d5b5bdimgray
#a4a3a2darkgray
Accent
#344008darkgreen
#344008darkgreen
Accent foreground
#c1e52egreenyellow
#c1e52egreenyellow
Destructive
#ca5512chocolate
#e15f14chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#402f08darkolivegreen
#402f08darkolivegreen

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button6.42:1AA
Secondary button7.59:1AAA
Muted text4.96:1AA
Accent7.74:1AAA
Destructive4.36:1AA Large
Dark mode
Text on background19.04:1AAA
Text on card19.11:1AAA
Primary button6.42:1AA
Secondary button7.59:1AAA
Muted text6.44:1AA
Accent7.74:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.016 94.657);
  --muted: oklch(0.898 0.005 34.307);
  --muted-foreground: oklch(0.473 0.002 34.31);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.316 0.058 84.129);
  --primary-foreground: oklch(0.782 0.148 83.399);
  --secondary: oklch(0.258 0.073 35.25);
  --secondary-foreground: oklch(0.776 0.104 34.709);
  --accent: oklch(0.348 0.077 120.744);
  --accent-foreground: oklch(0.866 0.196 121.068);
  --destructive: oklch(0.592 0.164 44.301);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.058 84.129);
  --chart-1: oklch(0.316 0.058 84.129);
  --chart-2: oklch(0.258 0.073 35.25);
  --chart-3: oklch(0.348 0.077 120.744);
  --chart-4: oklch(0.29 0.085 35.042);
  --chart-5: oklch(0.318 0.06 83.86);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.017 92.452);
  --foreground: oklch(0.986 0.001 87.427);
  --muted: oklch(0.246 0.008 34.303);
  --muted-foreground: oklch(0.715 0.002 34.313);
  --popover: oklch(0.158 0.019 89.978);
  --popover-foreground: oklch(0.993 0.001 87.423);
  --card: oklch(0.158 0.019 89.978);
  --card-foreground: oklch(0.993 0.001 87.423);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.316 0.058 84.129);
  --primary-foreground: oklch(0.782 0.148 83.399);
  --secondary: oklch(0.258 0.073 35.25);
  --secondary-foreground: oklch(0.776 0.104 34.709);
  --accent: oklch(0.348 0.077 120.744);
  --accent-foreground: oklch(0.866 0.196 121.068);
  --destructive: oklch(0.642 0.179 44.112);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.058 84.129);
  --chart-1: oklch(0.316 0.058 84.129);
  --chart-2: oklch(0.258 0.073 35.25);
  --chart-3: oklch(0.348 0.077 120.744);
  --chart-4: oklch(0.29 0.085 35.042);
  --chart-5: oklch(0.318 0.06 83.86);
}