Exemplary is a shadcn/ui theme built around a green primary color (#788b2d) with near-white accents (#e9e9e7). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the green primary (#788b2d) on a green-tinted background (#0a0c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf7snow | #0a0c04black |
| Foreground | #000000black | #f8f9f6whitesmoke |
| Card | #fafbf3floralwhite | #0d0f05black |
| Card foreground | #000000black | #fafbf9snow |
| Popover | #fcfdf7snow | #0a0c04black |
| Popover foreground | #000000black | #f8f9f6whitesmoke |
| Primary | #788b2dolivedrab | #788b2dolivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e9e9e7linen | #35372fdarkslategray |
| Secondary foreground | #51524cdarkslategray | #ced0c8lightgrey |
| Muted | #ecefe1beige | #1b1e10black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #e9e9e7linen | #35372fdarkslategray |
| Accent foreground | #51524cdarkslategray | #ced0c8lightgrey |
| Destructive | #c72f05firebrick | #fa5629tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #788b2dolivedrab | #788b2dolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 3.81:1 | AA Large |
| Secondary button | 6.48:1 | AA |
| Muted text | 5.16:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 5.47:1 | AA |
| Text on background | 18.65:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 3.81:1 | AA Large |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Exemplary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 115.714);
--foreground: oklch(0 0 0);
--muted: oklch(0.947 0.02 115.96);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.991 0.007 115.714);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.011 115.783);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.601 0.12 119.868);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.933 0.002 115.627);
--secondary-foreground: oklch(0.436 0.01 116.011);
--accent: oklch(0.933 0.002 115.627);
--accent-foreground: oklch(0.436 0.01 116.011);
--destructive: oklch(0.544 0.193 33.904);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.601 0.12 119.868);
--chart-1: oklch(0.601 0.12 119.868);
--chart-2: oklch(0.933 0.002 115.627);
--chart-3: oklch(0.933 0.002 115.627);
--chart-4: oklch(0.956 0.002 115.61);
--chart-5: oklch(0.609 0.125 120.069);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.019 116.351);
--foreground: oklch(0.98 0.004 115.647);
--muted: oklch(0.228 0.027 117.793);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.147 0.019 116.351);
--popover-foreground: oklch(0.98 0.004 115.647);
--card: oklch(0.164 0.022 117.364);
--card-foreground: oklch(0.987 0.002 115.624);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.601 0.12 119.868);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.331 0.012 116.264);
--secondary-foreground: oklch(0.853 0.01 115.79);
--accent: oklch(0.331 0.012 116.264);
--accent-foreground: oklch(0.853 0.01 115.79);
--destructive: oklch(0.67 0.207 35.636);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.601 0.12 119.868);
--chart-1: oklch(0.601 0.12 119.868);
--chart-2: oklch(0.331 0.012 116.264);
--chart-3: oklch(0.331 0.012 116.264);
--chart-4: oklch(0.362 0.014 116.283);
--chart-5: oklch(0.609 0.125 120.069);
}