Unnatural for shadcn/ui

Unnatural is a shadcn/ui theme built around a vivid green primary color (#2ba216) with vivid purple accents (#8d16a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#2ba216) on a green-tinted background (#050b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#050b04black
Foreground
#061104black
#fcfdfcwhite
Card
#fcfcfcsnow
#070f06black
Card foreground
#040d03black
#ffffffwhite
Popover
#fcfcfcsnow
#070f06black
Popover foreground
#040d03black
#ffffffwhite
Primary
#2ba216forestgreen
#2ba216forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8d16a2darkmagenta
#8d16a2darkmagenta
Secondary foreground
#faedfdlavenderblush
#faedfdlavenderblush
Muted
#f4f0f5whitesmoke
#0f0a0fblack
Muted foreground
#423c44darkslategray
#c2bbc3silver
Accent
#8d16a2darkmagenta
#8d16a2darkmagenta
Accent foreground
#faedfdlavenderblush
#faedfdlavenderblush
Destructive
#851405maroon
#e22208red
Destructive foreground
#fdc6bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2ba216forestgreen
#2ba216forestgreen

Contrast

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

Light mode
Text on background19.27:1AAA
Text on card19.31:1AAA
Primary button3.35:1AA Large
Secondary button6.73:1AA
Muted text9.47:1AAA
Accent6.73:1AA
Destructive6.68:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.48:1AAA
Primary button3.35:1AA Large
Secondary button6.73:1AA
Muted text10.45:1AAA
Accent6.73:1AA
Destructive4.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.035 139.437);
  --muted: oklch(0.959 0.009 321.085);
  --muted-foreground: oklch(0.365 0.016 321.157);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.143 0.03 139.134);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.143 0.03 139.134);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.622 0.197 141.284);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.473 0.212 320.701);
  --secondary-foreground: oklch(0.961 0.025 321.121);
  --accent: oklch(0.473 0.212 320.701);
  --accent-foreground: oklch(0.961 0.025 321.121);
  --destructive: oklch(0.397 0.149 31.109);
  --destructive-foreground: oklch(0.874 0.063 27.094);
  --ring: oklch(0.622 0.197 141.284);
  --chart-1: oklch(0.622 0.197 141.284);
  --chart-2: oklch(0.473 0.212 320.701);
  --chart-3: oklch(0.473 0.212 320.701);
  --chart-4: oklch(0.501 0.225 320.674);
  --chart-5: oklch(0.629 0.201 141.353);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.02 139.747);
  --foreground: oklch(0.993 0.002 141.06);
  --muted: oklch(0.154 0.013 321.244);
  --muted-foreground: oklch(0.801 0.013 321.1);
  --popover: oklch(0.155 0.023 139.996);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.023 139.996);
  --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.622 0.197 141.284);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.473 0.212 320.701);
  --secondary-foreground: oklch(0.961 0.025 321.121);
  --accent: oklch(0.473 0.212 320.701);
  --accent-foreground: oklch(0.961 0.025 321.121);
  --destructive: oklch(0.585 0.225 30.734);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.622 0.197 141.284);
  --chart-1: oklch(0.622 0.197 141.284);
  --chart-2: oklch(0.473 0.212 320.701);
  --chart-3: oklch(0.473 0.212 320.701);
  --chart-4: oklch(0.501 0.225 320.674);
  --chart-5: oklch(0.629 0.201 141.353);
}