Striped for shadcn/ui

Striped is a shadcn/ui theme built around a muted deep green primary color (#2a351d) with muted deep green accents (#1e351d). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#2a351d) on a green-tinted background (#0a0e06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0e06black
Foreground
#000000black
#fdfdfcwhite
Card
#ffffffwhite
#0a0e06black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#0a0e06black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#2a351ddarkslategray
#2a351ddarkslategray
Primary foreground
#c3d4b0silver
#c3d4b0silver
Secondary
#35341ddarkslategray
#35341ddarkslategray
Secondary foreground
#d4d2b0silver
#d4d2b0silver
Muted
#ecece9linen
#161613black
Muted foreground
#5d5d56dimgray
#a9a9a2darkgray
Accent
#1e351ddarkslategray
#1e351ddarkslategray
Accent foreground
#b1d4b0silver
#b1d4b0silver
Destructive
#af2004firebrick
#fb4f2dtomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a351ddarkslategray
#2a351ddarkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.26:1AAA
Secondary button8.24:1AAA
Muted text5.60:1AA
Accent8.20:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button8.26:1AAA
Secondary button8.24:1AAA
Muted text7.68:1AAA
Accent8.20:1AAA
Destructive3.35: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 0 0);
  --muted: oklch(0.942 0.004 104.876);
  --muted-foreground: oklch(0.475 0.011 105.201);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.31 0.043 128.994);
  --primary-foreground: oklch(0.847 0.051 127.877);
  --secondary: oklch(0.319 0.037 106.633);
  --secondary-foreground: oklch(0.857 0.046 105.703);
  --accent: oklch(0.301 0.051 143.459);
  --accent-foreground: oklch(0.834 0.061 144.134);
  --destructive: oklch(0.488 0.181 32.248);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.043 128.994);
  --chart-1: oklch(0.31 0.043 128.994);
  --chart-2: oklch(0.319 0.037 106.633);
  --chart-3: oklch(0.301 0.051 143.459);
  --chart-4: oklch(0.356 0.043 106.681);
  --chart-5: oklch(0.314 0.047 129.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.02 127.579);
  --foreground: oklch(0.994 0.003 127.144);
  --muted: oklch(0.198 0.005 105.275);
  --muted-foreground: oklch(0.733 0.01 105.039);
  --popover: oklch(0.158 0.02 127.579);
  --popover-foreground: oklch(0.994 0.003 127.144);
  --card: oklch(0.158 0.02 127.579);
  --card-foreground: oklch(0.994 0.003 127.144);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.31 0.043 128.994);
  --primary-foreground: oklch(0.847 0.051 127.877);
  --secondary: oklch(0.319 0.037 106.633);
  --secondary-foreground: oklch(0.857 0.046 105.703);
  --accent: oklch(0.301 0.051 143.459);
  --accent-foreground: oklch(0.834 0.061 144.134);
  --destructive: oklch(0.665 0.213 33.153);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.043 128.994);
  --chart-1: oklch(0.31 0.043 128.994);
  --chart-2: oklch(0.319 0.037 106.633);
  --chart-3: oklch(0.301 0.051 143.459);
  --chart-4: oklch(0.356 0.043 106.681);
  --chart-5: oklch(0.314 0.047 129.183);
}