Test is a shadcn/ui theme built around an orange primary color (#db6d24) with blue accents (#2492db). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#db6d24) on an orange-tinted background (#0b0705).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0705black |
| Foreground | #140b06black | #fbfaf9snow |
| Card | #ffffffwhite | #0b0705black |
| Card foreground | #140b06black | #fbfaf9snow |
| Popover | #ffffffwhite | #0b0705black |
| Popover foreground | #140b06black | #fbfaf9snow |
| Primary | #db6d24chocolate | #db6d24chocolate |
| Primary foreground | #000000black | #000000black |
| Secondary | #2492dbdodgerblue | #2492dbdodgerblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d7dce0gainsboro | #1f2528darkslategray |
| Muted foreground | #4b565ddarkslategray | #a2adb4darkgray |
| Accent | #2492dbdodgerblue | #2492dbdodgerblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #672809saddlebrown | #d35312chocolate |
| Destructive foreground | #f8c4abpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #db6d24chocolate | #db6d24chocolate |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 3.38:1 | AA Large |
| Muted text | 5.45:1 | AA |
| Accent | 3.38:1 | AA Large |
| Destructive | 7.12:1 | AAA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 3.38:1 | AA Large |
| Muted text | 6.79:1 | AA |
| Accent | 3.38:1 | AA Large |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Test in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.161 0.019 57.721);
--muted: oklch(0.892 0.008 236.563);
--muted-foreground: oklch(0.446 0.019 237.071);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.161 0.019 57.721);
--card: oklch(1 0 180);
--card-foreground: oklch(0.161 0.019 57.721);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.654 0.16 49.196);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.636 0.145 244.134);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.636 0.145 244.134);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.365 0.099 43.1);
--destructive-foreground: oklch(0.86 0.069 47.904);
--ring: oklch(0.654 0.16 49.196);
--chart-1: oklch(0.654 0.16 49.196);
--chart-2: oklch(0.636 0.145 244.134);
--chart-3: oklch(0.636 0.145 244.134);
--chart-4: oklch(0.655 0.138 242.903);
--chart-5: oklch(0.658 0.165 48.627);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.01 62.035);
--foreground: oklch(0.985 0.002 56.404);
--muted: oklch(0.259 0.011 237.064);
--muted-foreground: oklch(0.74 0.016 236.762);
--popover: oklch(0.133 0.01 62.035);
--popover-foreground: oklch(0.985 0.002 56.404);
--card: oklch(0.133 0.01 62.035);
--card-foreground: oklch(0.985 0.002 56.404);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.654 0.16 49.196);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.636 0.145 244.134);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.636 0.145 244.134);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.603 0.176 41.701);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.654 0.16 49.196);
--chart-1: oklch(0.654 0.16 49.196);
--chart-2: oklch(0.636 0.145 244.134);
--chart-3: oklch(0.636 0.145 244.134);
--chart-4: oklch(0.655 0.138 242.903);
--chart-5: oklch(0.658 0.165 48.627);
}