Striped for shadcn/ui

Striped is a shadcn/ui theme built around a light green primary color (#deedd9) with light purple accents (#e8d9ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#deedd9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#061203black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#061203black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#061203black
#fcfdfcwhite
Primary
#deedd9gainsboro
#deedd9gainsboro
Primary foreground
#131f0fblack
#131f0fblack
Secondary
#e8d9edlavender
#e8d9edlavender
Secondary foreground
#572f65darkslateblue
#572f65darkslateblue
Muted
#f4eef7whitesmoke
#0f0811black
Muted foreground
#645a68dimgray
#a197a5darkgray
Accent
#e8d9edlavender
#e8d9edlavender
Accent foreground
#572f65darkslateblue
#572f65darkslateblue
Destructive
#8d2f07saddlebrown
#e44d0corangered
Destructive foreground
#fcd9cabisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#deedd9gainsboro
#deedd9gainsboro

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button13.99:1AAA
Secondary button7.78:1AAA
Muted text5.74:1AA
Accent7.78:1AAA
Destructive6.26:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button13.99:1AAA
Secondary button7.78:1AAA
Muted text7.02:1AAA
Accent7.78:1AAA
Destructive3.92: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.164 0.038 136.363);
  --muted: oklch(0.956 0.013 317.74);
  --muted-foreground: oklch(0.483 0.025 317.679);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.038 136.363);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.164 0.038 136.363);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.929 0.031 137.821);
  --primary-foreground: oklch(0.223 0.035 138.154);
  --secondary: oklch(0.903 0.032 317.706);
  --secondary-foreground: oklch(0.381 0.098 317.161);
  --accent: oklch(0.903 0.032 317.706);
  --accent-foreground: oklch(0.381 0.098 317.161);
  --destructive: oklch(0.44 0.134 39.338);
  --destructive-foreground: oklch(0.91 0.045 44.553);
  --ring: oklch(0.929 0.031 137.821);
  --chart-1: oklch(0.929 0.031 137.821);
  --chart-2: oklch(0.903 0.032 317.706);
  --chart-3: oklch(0.903 0.032 317.706);
  --chart-4: oklch(0.93 0.023 317.723);
  --chart-5: oklch(0.931 0.034 137.826);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.003 137.768);
  --muted: oklch(0.15 0.021 317.603);
  --muted-foreground: oklch(0.69 0.023 317.709);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.003 137.768);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.003 137.768);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.929 0.031 137.821);
  --primary-foreground: oklch(0.223 0.035 138.154);
  --secondary: oklch(0.903 0.032 317.706);
  --secondary-foreground: oklch(0.381 0.098 317.161);
  --accent: oklch(0.903 0.032 317.706);
  --accent-foreground: oklch(0.381 0.098 317.161);
  --destructive: oklch(0.623 0.197 38.45);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.929 0.031 137.821);
  --chart-1: oklch(0.929 0.031 137.821);
  --chart-2: oklch(0.903 0.032 317.706);
  --chart-3: oklch(0.903 0.032 317.706);
  --chart-4: oklch(0.93 0.023 317.723);
  --chart-5: oklch(0.931 0.034 137.826);
}