Striped for shadcn/ui

Striped is a shadcn/ui theme built around a deep green primary color (#072716) with deep teal accents (#072726). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#072716) on a green-tinted background (#050a07).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a07black
Foreground
#06140cblack
#f6f9f7whitesmoke
Card
#fcfcfcsnow
#060e0ablack
Card foreground
#05100ablack
#f9fbfamintcream
Popover
#fcfcfcsnow
#060e0ablack
Popover foreground
#05100ablack
#f9fbfamintcream
Primary
#072716black
#072716black
Primary foreground
#28d277mediumseagreen
#28d277mediumseagreen
Secondary
#082707black
#082707black
Secondary foreground
#2ed228limegreen
#2ed228limegreen
Muted
#e7f3e7honeydew
#0c180cblack
Muted foreground
#474d47darkslategray
#b2b8b2darkgray
Accent
#072726black
#072726black
Accent foreground
#28d2ccturquoise
#28d2ccturquoise
Destructive
#690302maroon
#fb1713red
Destructive foreground
#fea1a0lightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#072716black
#072716black

Contrast

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

Light mode
Text on background18.86:1AAA
Text on card18.93:1AAA
Primary button8.10:1AAA
Secondary button7.98:1AAA
Muted text7.60:1AAA
Accent8.46:1AAA
Destructive6.67:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.79:1AAA
Primary button8.10:1AAA
Secondary button7.98:1AAA
Muted text9.02:1AAA
Accent8.46:1AAA
Destructive4.00: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.174 0.025 159.924);
  --muted: oklch(0.953 0.02 144.48);
  --muted-foreground: oklch(0.413 0.012 144.427);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.158 0.022 161.568);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.158 0.022 161.568);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.242 0.049 156.409);
  --primary-foreground: oklch(0.761 0.184 153.418);
  --secondary: oklch(0.24 0.065 142.643);
  --secondary-foreground: oklch(0.753 0.239 142.442);
  --accent: oklch(0.248 0.036 191.952);
  --accent-foreground: oklch(0.783 0.128 191.262);
  --destructive: oklch(0.33 0.132 29.33);
  --destructive-foreground: oklch(0.802 0.11 20.857);
  --ring: oklch(0.242 0.049 156.409);
  --chart-1: oklch(0.242 0.049 156.409);
  --chart-2: oklch(0.24 0.065 142.643);
  --chart-3: oklch(0.248 0.036 191.952);
  --chart-4: oklch(0.284 0.081 142.627);
  --chart-5: oklch(0.244 0.05 156.167);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.013 163.477);
  --foreground: oklch(0.979 0.004 163.334);
  --muted: oklch(0.193 0.029 143.581);
  --muted-foreground: oklch(0.776 0.01 144.532);
  --popover: oklch(0.154 0.015 162.118);
  --popover-foreground: oklch(0.986 0.003 163.372);
  --card: oklch(0.154 0.015 162.118);
  --card-foreground: oklch(0.986 0.003 163.372);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.242 0.049 156.409);
  --primary-foreground: oklch(0.761 0.184 153.418);
  --secondary: oklch(0.24 0.065 142.643);
  --secondary-foreground: oklch(0.753 0.239 142.442);
  --accent: oklch(0.248 0.036 191.952);
  --accent-foreground: oklch(0.783 0.128 191.262);
  --destructive: oklch(0.627 0.249 28.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.242 0.049 156.409);
  --chart-1: oklch(0.242 0.049 156.409);
  --chart-2: oklch(0.24 0.065 142.643);
  --chart-3: oklch(0.248 0.036 191.952);
  --chart-4: oklch(0.284 0.081 142.627);
  --chart-5: oklch(0.244 0.05 156.167);
}