Exemplary is a shadcn/ui theme built around a near-black primary color (#040802) with near-black accents (#080204). The light mode uses a neutral background (#f9fcf7). Dark mode keeps the near-black primary (#040802) on a green-tinted background (#070b05).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf7mintcream | #070b05black |
| Foreground | #060c03black | #ffffffwhite |
| Card | #f6fbf4whitesmoke | #090e06black |
| Card foreground | #040802black | #ffffffwhite |
| Popover | #f6fbf4whitesmoke | #090e06black |
| Popover foreground | #040802black | #ffffffwhite |
| Primary | #040802black | #040802black |
| Primary foreground | #58a531olivedrab | #58a531olivedrab |
| Secondary | #020408black | #020408black |
| Secondary foreground | #6a8dd2cornflowerblue | #6a8dd2cornflowerblue |
| Muted | #e6e7ealavender | #151619black |
| Muted foreground | #55585edimgray | #a1a4aadarkgray |
| Accent | #080204black | #080204black |
| Accent foreground | #d26a8dpalevioletred | #d26a8dpalevioletred |
| Destructive | #c62e10firebrick | #ed4321orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040802black | #040802black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 6.20:1 | AA |
| Muted text | 5.78:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 5.51:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 6.20:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Exemplary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 134.864);
--foreground: oklch(0.144 0.026 133.303);
--muted: oklch(0.929 0.004 264.539);
--muted-foreground: oklch(0.459 0.01 264.466);
--popover: oklch(0.982 0.011 134.882);
--popover-foreground: oklch(0.126 0.022 133.138);
--card: oklch(0.982 0.011 134.882);
--card-foreground: oklch(0.126 0.022 133.138);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.125 0.02 133.297);
--primary-foreground: oklch(0.648 0.168 137.117);
--secondary: oklch(0.107 0.013 256.911);
--secondary-foreground: oklch(0.646 0.112 263.339);
--accent: oklch(0.106 0.018 354.249);
--accent-foreground: oklch(0.655 0.136 0.421);
--destructive: oklch(0.542 0.192 32.662);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.125 0.02 133.297);
--chart-1: oklch(0.125 0.02 133.297);
--chart-2: oklch(0.107 0.013 256.911);
--chart-3: oklch(0.106 0.018 354.249);
--chart-4: oklch(0.147 0.022 261.23);
--chart-5: oklch(0.125 0.021 133.217);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 133.74);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.005 264.45);
--muted-foreground: oklch(0.719 0.009 264.507);
--popover: oklch(0.155 0.019 134.377);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.019 134.377);
--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.125 0.02 133.297);
--primary-foreground: oklch(0.648 0.168 137.117);
--secondary: oklch(0.107 0.013 256.911);
--secondary-foreground: oklch(0.646 0.112 263.339);
--accent: oklch(0.106 0.018 354.249);
--accent-foreground: oklch(0.655 0.136 0.421);
--destructive: oklch(0.629 0.211 33.009);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.125 0.02 133.297);
--chart-1: oklch(0.125 0.02 133.297);
--chart-2: oklch(0.107 0.013 256.911);
--chart-3: oklch(0.106 0.018 354.249);
--chart-4: oklch(0.147 0.022 261.23);
--chart-5: oklch(0.125 0.021 133.217);
}