Striped for shadcn/ui

Striped is a shadcn/ui theme built around a muted green primary color (#9ab69a) with muted teal accents (#9ab6a8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#9ab69a) on a green-tinted background (#050b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#050b05black
Foreground
#010401black
#f9fbf9mintcream
Card
#fcfcfcsnow
#060e06black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#050b05black
Popover foreground
#010401black
#f9fbf9mintcream
Primary
#9ab69adarkseagreen
#9ab69adarkseagreen
Primary foreground
#0d120dblack
#0d120dblack
Secondary
#a8b69adarkgray
#a8b69adarkgray
Secondary foreground
#0f120dblack
#0f120dblack
Muted
#e0e8d9gainsboro
#1f2617black
Muted foreground
#546048darkolivegreen
#abb79fdarkgray
Accent
#9ab6a8darkgray
#9ab6a8darkgray
Accent foreground
#0d120fblack
#0d120fblack
Destructive
#d02216firebrick
#e83326crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ab69adarkseagreen
#9ab69adarkseagreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.54:1AAA
Primary button8.61:1AAA
Secondary button8.84:1AAA
Muted text5.31:1AA
Accent8.69:1AAA
Destructive5.36:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.15:1AAA
Primary button8.61:1AAA
Secondary button8.84:1AAA
Muted text7.43:1AAA
Accent8.69:1AAA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.022 143.68);
  --muted: oklch(0.921 0.021 128.718);
  --muted-foreground: oklch(0.472 0.04 129.443);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.022 143.68);
  --card: oklch(0.992 0 161.565);
  --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.748 0.05 145.058);
  --primary-foreground: oklch(0.174 0.013 145.008);
  --secondary: oklch(0.758 0.042 129.089);
  --secondary-foreground: oklch(0.176 0.011 129.149);
  --accent: oklch(0.752 0.036 163.812);
  --accent-foreground: oklch(0.175 0.009 163.682);
  --destructive: oklch(0.551 0.208 29.617);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.05 145.058);
  --chart-1: oklch(0.748 0.05 145.058);
  --chart-2: oklch(0.758 0.042 129.089);
  --chart-3: oklch(0.752 0.036 163.812);
  --chart-4: oklch(0.78 0.038 129.012);
  --chart-5: oklch(0.751 0.059 144.962);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.02 144.383);
  --foreground: oklch(0.986 0.004 145.543);
  --muted: oklch(0.256 0.028 129.799);
  --muted-foreground: oklch(0.762 0.035 128.989);
  --popover: oklch(0.138 0.02 144.383);
  --popover-foreground: oklch(0.986 0.004 145.543);
  --card: oklch(0.153 0.023 144.337);
  --card-foreground: oklch(0.993 0.002 145.56);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.748 0.05 145.058);
  --primary-foreground: oklch(0.174 0.013 145.008);
  --secondary: oklch(0.758 0.042 129.089);
  --secondary-foreground: oklch(0.176 0.011 129.149);
  --accent: oklch(0.752 0.036 163.812);
  --accent-foreground: oklch(0.175 0.009 163.682);
  --destructive: oklch(0.608 0.218 29.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.05 145.058);
  --chart-1: oklch(0.748 0.05 145.058);
  --chart-2: oklch(0.758 0.042 129.089);
  --chart-3: oklch(0.752 0.036 163.812);
  --chart-4: oklch(0.78 0.038 129.012);
  --chart-5: oklch(0.751 0.059 144.962);
}