Strange for shadcn/ui

Strange is a shadcn/ui theme built around a muted green primary color (#a4bca5) with muted teal accents (#a4bcb1). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#a4bca5) on a green-tinted background (#050b05).

Color palette

TokenLightDark
Background
#fbfefbwhite
#050b05black
Foreground
#010501black
#fcfdfcwhite
Card
#fbfefbwhite
#050b05black
Card foreground
#010501black
#fcfdfcwhite
Popover
#fbfefbwhite
#050b05black
Popover foreground
#010501black
#fcfdfcwhite
Primary
#a4bca5darkgray
#a4bca5darkgray
Primary foreground
#141a14black
#141a14black
Secondary
#afbca4darkgray
#afbca4darkgray
Secondary foreground
#171a14black
#171a14black
Muted
#e5ecdfgainsboro
#192013black
Muted foreground
#656d5fdimgray
#98a092darkseagreen
Accent
#a4bcb1darkgray
#a4bcb1darkgray
Accent foreground
#141a17black
#141a17black
Destructive
#dc2209firebrick
#f53319orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a4bca5darkgray
#a4bca5darkgray

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button8.67:1AAA
Secondary button8.81:1AAA
Muted text4.45:1AA Large
Accent8.73:1AAA
Destructive4.90:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button8.67:1AAA
Secondary button8.81:1AAA
Muted text6.18:1AA
Accent8.73:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 146.996);
  --foreground: oklch(0.099 0.026 144.926);
  --muted: oklch(0.934 0.019 130.633);
  --muted-foreground: oklch(0.524 0.024 130.875);
  --popover: oklch(0.994 0.005 146.996);
  --popover-foreground: oklch(0.099 0.026 144.926);
  --card: oklch(0.994 0.005 146.996);
  --card-foreground: oklch(0.099 0.026 144.926);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.77 0.041 146.53);
  --primary-foreground: oklch(0.21 0.016 146.281);
  --secondary: oklch(0.778 0.036 130.881);
  --secondary-foreground: oklch(0.213 0.014 131.096);
  --accent: oklch(0.774 0.03 166.697);
  --accent-foreground: oklch(0.211 0.012 166.149);
  --destructive: oklch(0.574 0.22 30.774);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.77 0.041 146.53);
  --chart-1: oklch(0.77 0.041 146.53);
  --chart-2: oklch(0.778 0.036 130.881);
  --chart-3: oklch(0.774 0.03 166.697);
  --chart-4: oklch(0.8 0.032 130.823);
  --chart-5: oklch(0.773 0.049 146.429);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.018 146.056);
  --foreground: oklch(0.993 0.003 147.01);
  --muted: oklch(0.232 0.027 131.619);
  --muted-foreground: oklch(0.696 0.022 130.743);
  --popover: oklch(0.137 0.018 146.056);
  --popover-foreground: oklch(0.993 0.003 147.01);
  --card: oklch(0.137 0.018 146.056);
  --card-foreground: oklch(0.993 0.003 147.01);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.77 0.041 146.53);
  --primary-foreground: oklch(0.21 0.016 146.281);
  --secondary: oklch(0.778 0.036 130.881);
  --secondary-foreground: oklch(0.213 0.014 131.096);
  --accent: oklch(0.774 0.03 166.697);
  --accent-foreground: oklch(0.211 0.012 166.149);
  --destructive: oklch(0.63 0.231 31.007);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.77 0.041 146.53);
  --chart-1: oklch(0.77 0.041 146.53);
  --chart-2: oklch(0.778 0.036 130.881);
  --chart-3: oklch(0.774 0.03 166.697);
  --chart-4: oklch(0.8 0.032 130.823);
  --chart-5: oklch(0.773 0.049 146.429);
}