Noxious for shadcn/ui

Noxious is a shadcn/ui theme built around a muted deep green primary color (#344427) with near-white accents (#e8e9e7). The light mode uses a neutral background (#fafdf6). Dark mode keeps the muted deep green primary (#344427) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#fafdf6mintcream
#020302black
Foreground
#020401black
#fafbf9snow
Card
#fafdf6mintcream
#020302black
Card foreground
#020401black
#fafbf9snow
Popover
#fafdf6mintcream
#020302black
Popover foreground
#020401black
#fafbf9snow
Primary
#344427darkslategray
#344427darkslategray
Primary foreground
#cddcc1lightgrey
#cddcc1lightgrey
Secondary
#e8e9e7linen
#2d3328darkslategray
Secondary foreground
#4f544adarkslategray
#c6cec0silver
Muted
#eff5ebhoneydew
#0f140ablack
Muted foreground
#657359dimgray
#98a68cdarkseagreen
Accent
#e8e9e7linen
#2d3328darkslategray
Accent foreground
#4f544adarkslategray
#c6cec0silver
Destructive
#8b1304darkred
#fa462etomato
Destructive foreground
#fdcac3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#344427darkslategray
#344427darkslategray

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card20.06:1AAA
Primary button7.29:1AAA
Secondary button6.40:1AA
Muted text4.55:1AA
Accent6.40:1AA
Destructive6.55:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button7.29:1AAA
Secondary button7.99:1AAA
Muted text7.25:1AAA
Accent7.99:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.01 130.531);
  --foreground: oklch(0.101 0.018 128.949);
  --muted: oklch(0.962 0.014 130.576);
  --muted-foreground: oklch(0.537 0.044 131.244);
  --popover: oklch(0.99 0.01 130.531);
  --popover-foreground: oklch(0.101 0.018 128.949);
  --card: oklch(0.99 0.01 130.531);
  --card-foreground: oklch(0.101 0.018 128.949);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.364 0.051 131.946);
  --primary-foreground: oklch(0.875 0.039 130.859);
  --secondary: oklch(0.933 0.004 130.478);
  --secondary-foreground: oklch(0.437 0.017 130.801);
  --accent: oklch(0.933 0.004 130.478);
  --accent-foreground: oklch(0.437 0.017 130.801);
  --destructive: oklch(0.41 0.155 31.112);
  --destructive-foreground: oklch(0.883 0.059 27.036);
  --ring: oklch(0.364 0.051 131.946);
  --chart-1: oklch(0.364 0.051 131.946);
  --chart-2: oklch(0.933 0.004 130.478);
  --chart-3: oklch(0.933 0.004 130.478);
  --chart-4: oklch(0.956 0.003 130.464);
  --chart-5: oklch(0.368 0.057 132.116);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 129.703);
  --foreground: oklch(0.986 0.002 130.455);
  --muted: oklch(0.183 0.021 131.613);
  --muted-foreground: oklch(0.707 0.041 131);
  --popover: oklch(0.096 0.009 129.703);
  --popover-foreground: oklch(0.986 0.002 130.455);
  --card: oklch(0.096 0.009 129.703);
  --card-foreground: oklch(0.986 0.002 130.455);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.364 0.051 131.946);
  --primary-foreground: oklch(0.875 0.039 130.859);
  --secondary: oklch(0.313 0.021 131.088);
  --secondary-foreground: oklch(0.841 0.02 130.664);
  --accent: oklch(0.313 0.021 131.088);
  --accent-foreground: oklch(0.841 0.02 130.664);
  --destructive: oklch(0.654 0.219 30.949);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.364 0.051 131.946);
  --chart-1: oklch(0.364 0.051 131.946);
  --chart-2: oklch(0.313 0.021 131.088);
  --chart-3: oklch(0.313 0.021 131.088);
  --chart-4: oklch(0.345 0.024 131.11);
  --chart-5: oklch(0.368 0.057 132.116);
}