Strange for shadcn/ui

Strange is a shadcn/ui theme built around a muted green primary color (#597d5c) with muted teal accents (#597d6e). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the muted green primary (#597d5c) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#030703black
Foreground
#010501black
#ffffffwhite
Card
#f3fcf4honeydew
#040b05black
Card foreground
#000000black
#ffffffwhite
Popover
#f3fcf4honeydew
#040b05black
Popover foreground
#000000black
#ffffffwhite
Primary
#597d5cdimgray
#597d5cdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#687d59dimgray
#687d59dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfe7dagainsboro
#1e2518black
Muted foreground
#626b5bdimgray
#9aa494darkgray
Accent
#597d6edimgray
#597d6edimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a72b0cfirebrick
#e53b10orangered
Destructive foreground
#fdece7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#597d5cdimgray
#597d5cdimgray

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.99:1AAA
Primary button4.63:1AA
Secondary button4.48:1AA Large
Muted text4.38:1AA Large
Accent4.56:1AA
Destructive6.13:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.89:1AAA
Primary button4.63:1AA
Secondary button4.48:1AA Large
Muted text6.10:1AA
Accent4.56:1AA
Destructive4.24: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.988 0.009 147.967);
  --foreground: oklch(0.099 0.025 146.175);
  --muted: oklch(0.918 0.018 131.886);
  --muted-foreground: oklch(0.516 0.027 132.162);
  --popover: oklch(0.981 0.014 147.917);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.014 147.917);
  --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.554 0.066 146.717);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.564 0.06 132.662);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.559 0.048 166.974);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.482 0.165 34.017);
  --destructive-foreground: oklch(0.955 0.02 34.297);
  --ring: oklch(0.554 0.066 146.717);
  --chart-1: oklch(0.554 0.066 146.717);
  --chart-2: oklch(0.564 0.06 132.662);
  --chart-3: oklch(0.559 0.048 166.974);
  --chart-4: oklch(0.592 0.063 132.669);
  --chart-5: oklch(0.559 0.077 146.487);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.018 147.026);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.252 0.025 132.579);
  --muted-foreground: oklch(0.705 0.025 132.018);
  --popover: oklch(0.138 0.02 147.012);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.02 147.012);
  --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.554 0.066 146.717);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.564 0.06 132.662);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.559 0.048 166.974);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.607 0.212 33.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.554 0.066 146.717);
  --chart-1: oklch(0.554 0.066 146.717);
  --chart-2: oklch(0.564 0.06 132.662);
  --chart-3: oklch(0.559 0.048 166.974);
  --chart-4: oklch(0.592 0.063 132.669);
  --chart-5: oklch(0.559 0.077 146.487);
}