Test2 is a shadcn/ui theme built around a vivid orange primary color (#ff7e45) with vivid light orange accents (#ffb088). The light mode uses a neutral background (#fef9f3). Dark mode switches to a muted deep violet primary (#4a3d57) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fef9f3floralwhite | #08050ablack |
| Foreground | #4a3d3ddarkslategray | #f7f6f9whitesmoke |
| Card | #fef9f3floralwhite | #08050ablack |
| Card foreground | #4a3d3ddarkslategray | #f7f6f9whitesmoke |
| Popover | #fef9f3floralwhite | #08050ablack |
| Popover foreground | #4a3d3ddarkslategray | #f7f6f9whitesmoke |
| Primary | #ff7e45coral | #4a3d57darkslategray |
| Primary foreground | #ffffffwhite | #e3dee8gainsboro |
| Secondary | #d97646peru | #262527darkslategray |
| Secondary foreground | #ffffffwhite | #bfbec1silver |
| Muted | #ffe9d9antiquewhite | #0f0a15black |
| Muted foreground | #4a3d3ddarkslategray | #b3b1b4darkgray |
| Accent | #ffb088lightsalmon | #262527darkslategray |
| Accent foreground | #4a3d3ddarkslategray | #bfbec1silver |
| Destructive | #e11d48crimson | #d34d17chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ddc3afsilver | #26212bdarkslategray |
| Input | #ddc3afsilver | #26212bdarkslategray |
| Ring | #ff7e45coral | #4a3d57darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.90:1 | AAA |
| Text on card | 9.90:1 | AAA |
| Primary button | 2.52:1 | Fail |
| Secondary button | 3.16:1 | AA Large |
| Muted text | 8.83:1 | AAA |
| Accent | 5.83:1 | AA |
| Destructive | 4.69:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 9.17:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Test2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.01 72.669);
--foreground: oklch(0.374 0.018 17.997);
--muted: oklch(0.947 0.032 58.39);
--muted-foreground: oklch(0.374 0.018 17.997);
--popover: oklch(0.984 0.01 72.669);
--popover-foreground: oklch(0.374 0.018 17.997);
--card: oklch(0.984 0.01 72.669);
--card-foreground: oklch(0.374 0.018 17.997);
--border: oklch(0.834 0.04 59.777);
--input: oklch(0.834 0.04 59.777);
--primary: oklch(0.732 0.172 42.942);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.668 0.139 45.301);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.824 0.107 47.638);
--accent-foreground: oklch(0.374 0.018 17.997);
--destructive: oklch(0.586 0.222 17.589);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.732 0.172 42.942);
--chart-1: oklch(0.385 0.045 307.891);
--chart-2: oklch(0.883 0.003 309.086);
--chart-3: oklch(0.883 0.003 309.086);
--chart-4: oklch(0.906 0.003 309.095);
--chart-5: oklch(0.382 0.053 307.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 309.954);
--foreground: oklch(0.975 0.004 309.081);
--muted: oklch(0.158 0.023 307.555);
--muted-foreground: oklch(0.763 0.005 309.062);
--popover: oklch(0.124 0.014 309.954);
--popover-foreground: oklch(0.975 0.004 309.081);
--card: oklch(0.124 0.014 309.954);
--card-foreground: oklch(0.975 0.004 309.081);
--border: oklch(0.259 0.02 308.326);
--input: oklch(0.259 0.02 308.326);
--primary: oklch(0.385 0.045 307.891);
--primary-foreground: oklch(0.908 0.014 308.965);
--secondary: oklch(0.268 0.003 309.007);
--secondary-foreground: oklch(0.803 0.004 309.076);
--accent: oklch(0.268 0.003 309.007);
--accent-foreground: oklch(0.803 0.004 309.076);
--destructive: oklch(0.596 0.18 38.901);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.045 307.891);
--chart-1: oklch(0.385 0.045 307.891);
--chart-2: oklch(0.268 0.003 309.007);
--chart-3: oklch(0.268 0.003 309.007);
--chart-4: oklch(0.299 0.004 309.002);
--chart-5: oklch(0.382 0.053 307.65);
}