Base Test is a shadcn/ui theme built around a green primary color (#86e489) with muted light green accents (#b1d3b2). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the green primary (#86e489) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #000000black |
| Foreground | #061406black | #ffffffwhite |
| Card | #f8fcf8mintcream | #030303black |
| Card foreground | #051005black | #ffffffwhite |
| Popover | #fbfdfcwhite | #000000black |
| Popover foreground | #061406black | #ffffffwhite |
| Primary | #86e489lightgreen | #86e489lightgreen |
| Primary foreground | #0a2e0bblack | #0a2e0bblack |
| Secondary | #cbdccclightgrey | #2e382fdarkslategray |
| Secondary foreground | #304630darkslategray | #c7d1c8lightgrey |
| Muted | #d8e9d8gainsboro | #162716black |
| Muted foreground | #455445darkslategray | #abbaabdarkgray |
| Accent | #b1d3b2silver | #3b4f3bdarkslategray |
| Accent foreground | #1d341edarkslategray | #d9e3d9gainsboro |
| Destructive | #691802maroon | #fc592ctomato |
| Destructive foreground | #feb4a0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #86e489lightgreen | #86e489lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.57:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 9.59:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.59:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Base Test in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 146.513);
--foreground: oklch(0.172 0.034 144.757);
--muted: oklch(0.917 0.03 146.254);
--muted-foreground: oklch(0.429 0.031 145.891);
--popover: oklch(0.993 0.003 146.513);
--popover-foreground: oklch(0.172 0.034 144.757);
--card: oklch(0.987 0.006 146.485);
--card-foreground: oklch(0.156 0.03 144.928);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.839 0.154 144.749);
--primary-foreground: oklch(0.266 0.072 143.71);
--secondary: oklch(0.877 0.028 146.26);
--secondary-foreground: oklch(0.368 0.046 145.374);
--accent: oklch(0.833 0.058 145.907);
--accent-foreground: oklch(0.3 0.049 144.982);
--destructive: oklch(0.346 0.118 35.328);
--destructive-foreground: oklch(0.834 0.091 36.083);
--ring: oklch(0.839 0.154 144.749);
--chart-1: oklch(0.839 0.154 144.749);
--chart-2: oklch(0.877 0.028 146.26);
--chart-3: oklch(0.833 0.058 145.907);
--chart-4: oklch(0.899 0.023 146.317);
--chart-5: oklch(0.843 0.161 144.675);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.04 145.048);
--muted-foreground: oklch(0.773 0.027 146.235);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.839 0.154 144.749);
--primary-foreground: oklch(0.266 0.072 143.71);
--secondary: oklch(0.327 0.02 145.998);
--secondary-foreground: oklch(0.85 0.016 146.379);
--accent: oklch(0.405 0.042 145.587);
--accent-foreground: oklch(0.905 0.017 146.379);
--destructive: oklch(0.677 0.206 35.72);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.839 0.154 144.749);
--chart-1: oklch(0.839 0.154 144.749);
--chart-2: oklch(0.327 0.02 145.998);
--chart-3: oklch(0.405 0.042 145.587);
--chart-4: oklch(0.358 0.022 145.982);
--chart-5: oklch(0.843 0.161 144.675);
}