Disgust for shadcn/ui

Disgust is a shadcn/ui theme built around a vivid deep green primary color (#063805) with vivid deep red accents (#380506). The light mode uses a neutral background (#fbfdfb). Dark mode keeps the vivid deep green primary (#063805) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfbsnow
#000000black
Foreground
#020802black
#f9fbf9mintcream
Card
#f8fcf8mintcream
#030303black
Card foreground
#010401black
#fcfdfcwhite
Popover
#fbfdfbsnow
#000000black
Popover foreground
#020802black
#f9fbf9mintcream
Primary
#063805darkgreen
#063805darkgreen
Primary foreground
#21eb1elimegreen
#21eb1elimegreen
Secondary
#050638black
#050638black
Secondary foreground
#d9dafclavender
#d9dafclavender
Muted
#e6e6ealavender
#151519black
Muted foreground
#4d4e5bdarkslategray
#a4a4b2darkgray
Accent
#380506black
#380506black
Accent foreground
#f47c7elightcoral
#f47c7elightcoral
Destructive
#8b3504saddlebrown
#e05606chocolate
Destructive foreground
#fdd9c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#063805darkgreen
#063805darkgreen

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.88:1AAA
Primary button8.20:1AAA
Secondary button14.12:1AAA
Muted text6.62:1AA
Accent6.72:1AA
Destructive6.06:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.28:1AAA
Primary button8.20:1AAA
Secondary button14.12:1AAA
Muted text7.37:1AAA
Accent6.72:1AA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 145.076);
  --foreground: oklch(0.123 0.026 143.281);
  --muted: oklch(0.927 0.004 285.535);
  --muted-foreground: oklch(0.427 0.022 284.67);
  --popover: oklch(0.993 0.003 145.076);
  --popover-foreground: oklch(0.123 0.026 143.281);
  --card: oklch(0.987 0.007 145.051);
  --card-foreground: oklch(0.097 0.021 143.281);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.298 0.094 142.542);
  --primary-foreground: oklch(0.818 0.27 142.509);
  --secondary: oklch(0.174 0.094 270.125);
  --secondary-foreground: oklch(0.899 0.046 284.664);
  --accent: oklch(0.223 0.08 25.725);
  --accent-foreground: oklch(0.722 0.147 20.388);
  --destructive: oklch(0.446 0.128 43.468);
  --destructive-foreground: oklch(0.91 0.05 51.876);
  --ring: oklch(0.298 0.094 142.542);
  --chart-1: oklch(0.298 0.094 142.542);
  --chart-2: oklch(0.174 0.094 270.125);
  --chart-3: oklch(0.223 0.08 25.725);
  --chart-4: oklch(0.197 0.112 269.273);
  --chart-5: oklch(0.301 0.096 142.492);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 145.079);
  --muted: oklch(0.199 0.006 285.04);
  --muted-foreground: oklch(0.724 0.019 285.138);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 145.079);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 145.09);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.298 0.094 142.542);
  --primary-foreground: oklch(0.818 0.27 142.509);
  --secondary: oklch(0.174 0.094 270.125);
  --secondary-foreground: oklch(0.899 0.046 284.664);
  --accent: oklch(0.223 0.08 25.725);
  --accent-foreground: oklch(0.722 0.147 20.388);
  --destructive: oklch(0.627 0.187 42.109);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.298 0.094 142.542);
  --chart-1: oklch(0.298 0.094 142.542);
  --chart-2: oklch(0.174 0.094 270.125);
  --chart-3: oklch(0.223 0.08 25.725);
  --chart-4: oklch(0.197 0.112 269.273);
  --chart-5: oklch(0.301 0.096 142.492);
}