Testy is a shadcn/ui theme built around a purple primary color (#bc71d1) with muted purple accents (#c0b7c2). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the purple primary (#bc71d1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #070208black | #fbf8fcghostwhite |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #070208black | #fbf8fcghostwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #070208black | #fbf8fcghostwhite |
| Primary | #bc71d1mediumorchid | #bc71d1mediumorchid |
| Primary foreground | #0a040cblack | #0a040cblack |
| Secondary | #d2d0d2lightgrey | #1e191fblack |
| Secondary foreground | #39363adarkslategray | #b9aebcsilver |
| Muted | #e3d5e7gainsboro | #26182ablack |
| Muted foreground | #464248darkslategray | #bcb7bdsilver |
| Accent | #c0b7c2silver | #38293ddarkslategray |
| Accent foreground | #252127darkslategray | #d1c2d6thistle |
| Destructive | #932906saddlebrown | #f55019orangered |
| Destructive foreground | #fddacebisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bc71d1mediumorchid | #bc71d1mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 3.46:1 | AA Large |
Paste this into your globals.css to use Testy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 318.889);
--foreground: oklch(0.105 0.026 320.974);
--muted: oklch(0.889 0.028 318.879);
--muted-foreground: oklch(0.386 0.011 318.881);
--popover: oklch(0.99 0.005 318.889);
--popover-foreground: oklch(0.105 0.026 320.974);
--card: oklch(0.99 0.005 318.889);
--card-foreground: oklch(0.105 0.026 320.974);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.665 0.158 318.674);
--primary-foreground: oklch(0.122 0.025 320.399);
--secondary: oklch(0.859 0.004 318.889);
--secondary-foreground: oklch(0.338 0.007 318.883);
--accent: oklch(0.791 0.017 318.883);
--accent-foreground: oklch(0.254 0.012 318.873);
--destructive: oklch(0.444 0.147 36.183);
--destructive-foreground: oklch(0.914 0.043 39.294);
--ring: oklch(0.665 0.158 318.674);
--chart-1: oklch(0.665 0.158 318.674);
--chart-2: oklch(0.859 0.004 318.889);
--chart-3: oklch(0.791 0.017 318.883);
--chart-4: oklch(0.883 0.004 318.889);
--chart-5: oklch(0.664 0.166 318.642);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.006 318.888);
--muted: oklch(0.236 0.039 318.793);
--muted-foreground: oklch(0.786 0.009 318.886);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.006 318.888);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.006 318.888);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.665 0.158 318.674);
--primary-foreground: oklch(0.122 0.025 320.399);
--secondary: oklch(0.222 0.013 318.87);
--secondary-foreground: oklch(0.764 0.024 318.879);
--accent: oklch(0.308 0.04 318.828);
--accent-foreground: oklch(0.833 0.031 318.877);
--destructive: oklch(0.656 0.21 36.605);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.665 0.158 318.674);
--chart-1: oklch(0.665 0.158 318.674);
--chart-2: oklch(0.222 0.013 318.87);
--chart-3: oklch(0.308 0.04 318.828);
--chart-4: oklch(0.253 0.016 318.868);
--chart-5: oklch(0.664 0.166 318.642);
}