Strange for shadcn/ui

Strange is a shadcn/ui theme built around a deep green primary color (#4a4f12) with muted light green accents (#d7d9c4). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep green primary (#4a4f12) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#000000black
Foreground
#070802black
#ffffffwhite
Card
#fcfcf8snow
#030303black
Card foreground
#040401black
#ffffffwhite
Popover
#fcfcf8snow
#030303black
Popover foreground
#040401black
#ffffffwhite
Primary
#4a4f12darkolivegreen
#4a4f12darkolivegreen
Primary foreground
#e6eba8palegoldenrod
#e6eba8palegoldenrod
Secondary
#ebebe5linen
#212121black
Secondary foreground
#1f2018black
#bbbbb9silver
Muted
#dfe0d1gainsboro
#2d2e1fdarkslategray
Muted foreground
#686864dimgray
#9b9b97darkgray
Accent
#d7d9c4lightgrey
#3d3e32darkslategray
Accent foreground
#3f412adarkslategray
#d5d6cdlightgrey
Destructive
#8e2c0bsaddlebrown
#f0693dtomato
Destructive foreground
#fbdbd0bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a4f12darkolivegreen
#4a4f12darkolivegreen

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.92:1AAA
Primary button6.95:1AA
Secondary button13.72:1AAA
Muted text4.20:1AA Large
Accent7.29:1AAA
Destructive6.42:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.95:1AA
Secondary button8.33:1AAA
Muted text4.95:1AA
Accent7.43:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 110.296);
  --foreground: oklch(0.13 0.017 111.695);
  --muted: oklch(0.903 0.021 110.669);
  --muted-foreground: oklch(0.516 0.006 110.475);
  --popover: oklch(0.989 0.005 110.346);
  --popover-foreground: oklch(0.103 0.014 111.695);
  --card: oklch(0.989 0.005 110.346);
  --card-foreground: oklch(0.103 0.014 111.695);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.41 0.082 114.146);
  --primary-foreground: oklch(0.92 0.087 111.972);
  --secondary: oklch(0.938 0.008 110.405);
  --secondary-foreground: oklch(0.239 0.013 111.283);
  --accent: oklch(0.878 0.027 110.826);
  --accent-foreground: oklch(0.366 0.036 112.061);
  --destructive: oklch(0.438 0.139 36.759);
  --destructive-foreground: oklch(0.914 0.04 39.303);
  --ring: oklch(0.41 0.082 114.146);
  --chart-1: oklch(0.41 0.082 114.146);
  --chart-2: oklch(0.938 0.008 110.405);
  --chart-3: oklch(0.878 0.027 110.826);
  --chart-4: oklch(0.959 0.005 110.35);
  --chart-5: oklch(0.415 0.084 114.256);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.295 0.026 111.879);
  --muted-foreground: oklch(0.688 0.006 110.406);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.41 0.082 114.146);
  --primary-foreground: oklch(0.92 0.087 111.972);
  --secondary: oklch(0.249 0.001 110.339);
  --secondary-foreground: oklch(0.791 0.002 110.292);
  --accent: oklch(0.358 0.019 111.21);
  --accent-foreground: oklch(0.872 0.012 110.513);
  --destructive: oklch(0.682 0.177 38.458);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.41 0.082 114.146);
  --chart-1: oklch(0.41 0.082 114.146);
  --chart-2: oklch(0.249 0.001 110.339);
  --chart-3: oklch(0.358 0.019 111.21);
  --chart-4: oklch(0.281 0.001 110.345);
  --chart-5: oklch(0.415 0.084 114.256);
}