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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 13.99:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 5.74:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 13.99:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 7.02:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.92:1 | AA Large |
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);
}