Agonizing for shadcn/ui

Agonizing is a shadcn/ui theme built around a deep green primary color (#0f1504) with muted light green accents (#ebede9). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the deep green primary (#0f1504) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdf7snow
#000000black
Foreground
#0f1604black
#f8f8f7whitesmoke
Card
#fbfdf7snow
#000000black
Card foreground
#0f1604black
#f8f8f7whitesmoke
Popover
#fbfdf7snow
#000000black
Popover foreground
#0f1604black
#f8f8f7whitesmoke
Primary
#0f1504black
#0f1504black
Primary foreground
#85c026yellowgreen
#85c026yellowgreen
Secondary
#ebede9linen
#292c26darkslategray
Secondary foreground
#545a49darkolivegreen
#c3c6besilver
Muted
#e9ede3beige
#181c12black
Muted foreground
#50524cdarkslategray
#b1b3addarkgray
Accent
#ebede9linen
#292c26darkslategray
Accent foreground
#545a49darkolivegreen
#c3c6besilver
Destructive
#792b06saddlebrown
#ed540corangered
Destructive foreground
#fbccb6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f1504black
#0f1504black

Contrast

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

Light mode
Text on background18.03:1AAA
Text on card18.03:1AAA
Primary button8.45:1AAA
Secondary button6.05:1AA
Muted text6.66:1AA
Accent6.05:1AA
Destructive6.67:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button8.45:1AAA
Secondary button8.20:1AAA
Muted text8.18:1AAA
Accent8.20:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.009 123.776);
  --foreground: oklch(0.187 0.037 125.962);
  --muted: oklch(0.94 0.013 123.851);
  --muted-foreground: oklch(0.435 0.011 124.004);
  --popover: oklch(0.991 0.009 123.776);
  --popover-foreground: oklch(0.187 0.037 125.962);
  --card: oklch(0.991 0.009 123.776);
  --card-foreground: oklch(0.187 0.037 125.962);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.185 0.035 125.876);
  --primary-foreground: oklch(0.739 0.184 129.293);
  --secondary: oklch(0.943 0.006 123.729);
  --secondary-foreground: oklch(0.456 0.027 124.532);
  --accent: oklch(0.943 0.006 123.729);
  --accent-foreground: oklch(0.456 0.027 124.532);
  --destructive: oklch(0.399 0.118 40.829);
  --destructive-foreground: oklch(0.881 0.061 46.195);
  --ring: oklch(0.185 0.035 125.876);
  --chart-1: oklch(0.185 0.035 125.876);
  --chart-2: oklch(0.943 0.006 123.729);
  --chart-3: oklch(0.943 0.006 123.729);
  --chart-4: oklch(0.964 0.004 123.694);
  --chart-5: oklch(0.186 0.036 125.928);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.002 123.671);
  --muted: oklch(0.218 0.019 124.978);
  --muted-foreground: oklch(0.763 0.009 123.82);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.002 123.671);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.002 123.671);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.185 0.035 125.876);
  --primary-foreground: oklch(0.739 0.184 129.293);
  --secondary: oklch(0.287 0.011 124.193);
  --secondary-foreground: oklch(0.822 0.012 123.862);
  --accent: oklch(0.287 0.011 124.193);
  --accent-foreground: oklch(0.822 0.012 123.862);
  --destructive: oklch(0.646 0.201 39.419);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.185 0.035 125.876);
  --chart-1: oklch(0.185 0.035 125.876);
  --chart-2: oklch(0.287 0.011 124.193);
  --chart-3: oklch(0.287 0.011 124.193);
  --chart-4: oklch(0.319 0.012 124.216);
  --chart-5: oklch(0.186 0.036 125.928);
}