Unnatural for shadcn/ui

Unnatural is a shadcn/ui theme built around a deep green primary color (#252f18) with deep violet accents (#23182f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#252f18) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#080b04black
Foreground
#080c03black
#ffffffwhite
Card
#ffffffwhite
#080b04black
Card foreground
#080c03black
#ffffffwhite
Popover
#ffffffwhite
#080b04black
Popover foreground
#080c03black
#ffffffwhite
Primary
#252f18darkslategray
#252f18darkslategray
Primary foreground
#bfd3a7silver
#bfd3a7silver
Secondary
#23182fblack
#23182fblack
Secondary foreground
#bba7d3silver
#bba7d3silver
Muted
#e7e1eflavender
#16101eblack
Muted foreground
#4c4b4edarkslategray
#b2b1b4darkgray
Accent
#23182fblack
#23182fblack
Accent foreground
#bba7d3silver
#bba7d3silver
Destructive
#b52303firebrick
#fb3509orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#252f18darkslategray
#252f18darkslategray

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button8.69:1AAA
Secondary button7.71:1AAA
Muted text6.79:1AA
Accent7.71:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button8.69:1AAA
Secondary button7.71:1AAA
Muted text8.71:1AAA
Accent7.71:1AAA
Destructive3.73:1AA Large

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.146 0.022 125.738);
  --muted: oklch(0.92 0.019 306.165);
  --muted-foreground: oklch(0.415 0.005 306.265);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.022 125.738);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.146 0.022 125.738);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.29 0.043 128.556);
  --primary-foreground: oklch(0.839 0.063 127.424);
  --secondary: oklch(0.234 0.046 303.778);
  --secondary-foreground: oklch(0.759 0.065 305.328);
  --accent: oklch(0.234 0.046 303.778);
  --accent-foreground: oklch(0.759 0.065 305.328);
  --destructive: oklch(0.501 0.184 32.712);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.29 0.043 128.556);
  --chart-1: oklch(0.29 0.043 128.556);
  --chart-2: oklch(0.234 0.046 303.778);
  --chart-3: oklch(0.234 0.046 303.778);
  --chart-4: oklch(0.261 0.054 303.611);
  --chart-5: oklch(0.293 0.046 128.743);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.018 125.748);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.189 0.028 304.501);
  --muted-foreground: oklch(0.762 0.005 306.352);
  --popover: oklch(0.143 0.018 125.748);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.018 125.748);
  --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.29 0.043 128.556);
  --primary-foreground: oklch(0.839 0.063 127.424);
  --secondary: oklch(0.234 0.046 303.778);
  --secondary-foreground: oklch(0.759 0.065 305.328);
  --accent: oklch(0.234 0.046 303.778);
  --accent-foreground: oklch(0.759 0.065 305.328);
  --destructive: oklch(0.641 0.236 32.543);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.29 0.043 128.556);
  --chart-1: oklch(0.29 0.043 128.556);
  --chart-2: oklch(0.234 0.046 303.778);
  --chart-3: oklch(0.234 0.046 303.778);
  --chart-4: oklch(0.261 0.054 303.611);
  --chart-5: oklch(0.293 0.046 128.743);
}