Exemplary is a shadcn/ui theme built around a vivid light purple primary color (#f49aef) with muted light purple accents (#dbc7da). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the vivid light purple primary (#f49aef) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fcsnow | #0a050ablack |
| Foreground | #080208black | #f9f5f9whitesmoke |
| Card | #fcf7fcsnow | #0a050ablack |
| Card foreground | #080208black | #f9f5f9whitesmoke |
| Popover | #fcf7fcsnow | #0a050ablack |
| Popover foreground | #080208black | #f9f5f9whitesmoke |
| Primary | #f49aefviolet | #f49aefviolet |
| Primary foreground | #53094findigo | #53094findigo |
| Secondary | #eee8edlavender | #212121black |
| Secondary foreground | #5e455ddimgray | #bababasilver |
| Muted | #f2eef2whitesmoke | #110d0dblack |
| Muted foreground | #503f4fdarkslategray | #c0afafsilver |
| Accent | #dbc7dathistle | #3d3333darkslategray |
| Accent foreground | #442c43darkslategray | #d5cdcdlightgrey |
| Destructive | #d52a0bfirebrick | #f34020orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f49aefviolet | #f49aefviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 8.41:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 5.04:1 | AA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 9.17:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Exemplary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.008 327.113);
--foreground: oklch(0.108 0.026 328.507);
--muted: oklch(0.952 0.007 327.107);
--muted-foreground: oklch(0.391 0.035 327.834);
--popover: oklch(0.983 0.008 327.113);
--popover-foreground: oklch(0.108 0.026 328.507);
--card: oklch(0.983 0.008 327.113);
--card-foreground: oklch(0.108 0.026 328.507);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.805 0.151 328.632);
--primary-foreground: oklch(0.313 0.131 330.512);
--secondary: oklch(0.936 0.01 327.138);
--secondary-foreground: oklch(0.427 0.049 328.044);
--accent: oklch(0.852 0.033 327.386);
--accent-foreground: oklch(0.332 0.05 328.336);
--destructive: oklch(0.565 0.209 31.791);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.805 0.151 328.632);
--chart-1: oklch(0.805 0.151 328.632);
--chart-2: oklch(0.936 0.01 327.138);
--chart-3: oklch(0.852 0.033 327.386);
--chart-4: oklch(0.96 0.006 327.099);
--chart-5: oklch(0.804 0.157 328.685);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 327.824);
--foreground: oklch(0.975 0.007 327.1);
--muted: oklch(0.165 0.007 17.919);
--muted-foreground: oklch(0.769 0.02 17.59);
--popover: oklch(0.128 0.015 327.824);
--popover-foreground: oklch(0.975 0.007 327.1);
--card: oklch(0.128 0.015 327.824);
--card-foreground: oklch(0.975 0.007 327.1);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.805 0.151 328.632);
--primary-foreground: oklch(0.313 0.131 330.512);
--secondary: oklch(0.248 0 173.29);
--secondary-foreground: oklch(0.789 0 171.254);
--accent: oklch(0.332 0.015 17.907);
--accent-foreground: oklch(0.855 0.009 17.336);
--destructive: oklch(0.637 0.22 32.272);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.805 0.151 328.632);
--chart-1: oklch(0.805 0.151 328.632);
--chart-2: oklch(0.248 0 173.29);
--chart-3: oklch(0.332 0.015 17.907);
--chart-4: oklch(0.28 0 180);
--chart-5: oklch(0.804 0.157 328.685);
}