Unusual for shadcn/ui

Unusual is a shadcn/ui theme built around a deep green primary color (#214f2d) with deep teal accents (#214f44). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#214f2d) on a green-tinted background (#070d09).

Color palette

TokenLightDark
Background
#fbfefcwhite
#070d09black
Foreground
#000000black
#fcfdfcwhite
Card
#fbfefcwhite
#070d09black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fbfefcwhite
#070d09black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#214f2ddarkslategray
#214f2ddarkslategray
Primary foreground
#bee4c8lightgrey
#bee4c8lightgrey
Secondary
#2c4f21darkslategray
#2c4f21darkslategray
Secondary foreground
#c7e4belightgrey
#c7e4belightgrey
Muted
#d9e0d7gainsboro
#21281fblack
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#214f44darkslategray
#214f44darkslategray
Accent foreground
#bee4dbpowderblue
#bee4dbpowderblue
Destructive
#5c100amaroon
#dc2618crimson
Destructive foreground
#f5a9a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#214f2ddarkslategray
#214f2ddarkslategray

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button6.79:1AA
Secondary button6.78:1AA
Muted text7.45:1AAA
Accent6.74:1AA
Destructive7.24:1AAA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button6.79:1AA
Secondary button6.78:1AA
Muted text8.02:1AAA
Accent6.74:1AA
Destructive4.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 154.438);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.898 0.015 138.347);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.994 0.005 154.438);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.005 154.438);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.386 0.076 150.152);
  --primary-foreground: oklch(0.884 0.055 153.384);
  --secondary: oklch(0.389 0.083 138.85);
  --secondary-foreground: oklch(0.888 0.059 138.408);
  --accent: oklch(0.392 0.054 175.881);
  --accent-foreground: oklch(0.889 0.041 179.594);
  --destructive: oklch(0.311 0.109 29.112);
  --destructive-foreground: oklch(0.806 0.091 23.814);
  --ring: oklch(0.386 0.076 150.152);
  --chart-1: oklch(0.386 0.076 150.152);
  --chart-2: oklch(0.389 0.083 138.85);
  --chart-3: oklch(0.392 0.054 175.881);
  --chart-4: oklch(0.424 0.093 138.873);
  --chart-5: oklch(0.39 0.081 149.852);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.014 153.663);
  --foreground: oklch(0.993 0.002 154.495);
  --muted: oklch(0.268 0.02 138.417);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.152 0.014 153.663);
  --popover-foreground: oklch(0.993 0.002 154.495);
  --card: oklch(0.152 0.014 153.663);
  --card-foreground: oklch(0.993 0.002 154.495);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.386 0.076 150.152);
  --primary-foreground: oklch(0.884 0.055 153.384);
  --secondary: oklch(0.389 0.083 138.85);
  --secondary-foreground: oklch(0.888 0.059 138.408);
  --accent: oklch(0.392 0.054 175.881);
  --accent-foreground: oklch(0.889 0.041 179.594);
  --destructive: oklch(0.576 0.217 29.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.386 0.076 150.152);
  --chart-1: oklch(0.386 0.076 150.152);
  --chart-2: oklch(0.389 0.083 138.85);
  --chart-3: oklch(0.392 0.054 175.881);
  --chart-4: oklch(0.424 0.093 138.873);
  --chart-5: oklch(0.39 0.081 149.852);
}