Exemplary is a shadcn/ui theme built around a near-black primary color (#0a0805) with muted light orange accents (#e0d9d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0805) on an orange-tinted background (#0d0a07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0a07black |
| Foreground | #120a03black | #faf7f5whitesmoke |
| Card | #ffffffwhite | #0d0a07black |
| Card foreground | #120a03black | #faf7f5whitesmoke |
| Popover | #ffffffwhite | #0d0a07black |
| Popover foreground | #120a03black | #faf7f5whitesmoke |
| Primary | #0a0805black | #0a0805black |
| Primary foreground | #bca285rosybrown | #bca285rosybrown |
| Secondary | #edebe8linen | #282420black |
| Secondary foreground | #5b5248darkolivegreen | #c4bdb5silver |
| Muted | #ede3d9antiquewhite | #261c12black |
| Muted foreground | #544d45darkolivegreen | #bab3abdarkgray |
| Accent | #e0d9d1gainsboro | #42382fdarkslategray |
| Accent foreground | #4d4033darkslategray | #d9d1c9lightgrey |
| Destructive | #cf5717chocolate | #ea7d43coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0805black | #0a0805black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 6.41:1 | AA |
| Muted text | 6.58:1 | AA |
| Accent | 7.16:1 | AAA |
| Destructive | 4.18:1 | AA Large |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 7.53:1 | AAA |
Paste this into your globals.css to use Exemplary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.024 75.005);
--muted: oklch(0.922 0.018 69.45);
--muted-foreground: oklch(0.424 0.016 69.233);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.024 75.005);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.024 75.005);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.135 0.008 73.694);
--primary-foreground: oklch(0.727 0.05 68.782);
--secondary: oklch(0.94 0.004 69.606);
--secondary-foreground: oklch(0.444 0.02 69.131);
--accent: oklch(0.889 0.013 69.498);
--accent-foreground: oklch(0.381 0.027 68.73);
--destructive: oklch(0.603 0.167 43.634);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.135 0.008 73.694);
--chart-1: oklch(0.135 0.008 73.694);
--chart-2: oklch(0.94 0.004 69.606);
--chart-3: oklch(0.889 0.013 69.498);
--chart-4: oklch(0.963 0.003 69.623);
--chart-5: oklch(0.135 0.008 74.111);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.009 71.398);
--foreground: oklch(0.978 0.004 69.609);
--muted: oklch(0.237 0.025 68.039);
--muted-foreground: oklch(0.77 0.014 69.466);
--popover: oklch(0.149 0.009 71.398);
--popover-foreground: oklch(0.978 0.004 69.609);
--card: oklch(0.149 0.009 71.398);
--card-foreground: oklch(0.978 0.004 69.609);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.135 0.008 73.694);
--primary-foreground: oklch(0.727 0.05 68.782);
--secondary: oklch(0.262 0.009 69.264);
--secondary-foreground: oklch(0.802 0.013 69.484);
--accent: oklch(0.349 0.021 68.922);
--accent-foreground: oklch(0.866 0.014 69.489);
--destructive: oklch(0.703 0.152 46.97);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.135 0.008 73.694);
--chart-1: oklch(0.135 0.008 73.694);
--chart-2: oklch(0.262 0.009 69.264);
--chart-3: oklch(0.349 0.021 68.922);
--chart-4: oklch(0.294 0.011 69.241);
--chart-5: oklch(0.135 0.008 74.111);
}