Exemplary is a shadcn/ui theme built around a near-black primary color (#06000a) with near-black accents (#0a0009). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#06000a) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #060208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #030104black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #06000ablack | #06000ablack |
| Primary foreground | #d7a7fbplum | #d7a7fbplum |
| Secondary | #01000ablack | #01000ablack |
| Secondary foreground | #ada7fblightsteelblue | #ada7fblightsteelblue |
| Muted | #e7e6f4lavender | #0c0b19black |
| Muted foreground | #56565ddimgray | #a3a2a9darkgray |
| Accent | #0a0009black | #0a0009black |
| Accent foreground | #f745eborchid | #f745eborchid |
| Destructive | #db150ared | #db150ared |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #06000ablack | #06000ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 10.66:1 | AAA |
| Secondary button | 9.62:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 6.87:1 | AA |
| Destructive | 5.08:1 | AA |
| Text on background | 20.31:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 10.66:1 | AAA |
| Secondary button | 9.62:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 5.08:1 | AA |
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 0 0);
--muted: oklch(0.931 0.018 289.108);
--muted-foreground: oklch(0.455 0.011 289);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.093 0.04 314.462);
--primary-foreground: oklch(0.801 0.126 309.682);
--secondary: oklch(0.076 0.039 279.751);
--secondary-foreground: oklch(0.765 0.12 286.25);
--accent: oklch(0.103 0.042 329.81);
--accent-foreground: oklch(0.706 0.271 330.951);
--destructive: oklch(0.566 0.224 29.485);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.093 0.04 314.462);
--chart-1: oklch(0.093 0.04 314.462);
--chart-2: oklch(0.076 0.039 279.751);
--chart-3: oklch(0.103 0.042 329.81);
--chart-4: oklch(0.109 0.058 277.317);
--chart-5: oklch(0.092 0.042 314.621);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.019 312.982);
--foreground: oklch(0.991 0.003 311.062);
--muted: oklch(0.159 0.028 285.73);
--muted-foreground: oklch(0.715 0.01 289.209);
--popover: oklch(0.081 0.019 312.982);
--popover-foreground: oklch(0.991 0.003 311.062);
--card: oklch(0.102 0.024 312.982);
--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.093 0.04 314.462);
--primary-foreground: oklch(0.801 0.126 309.682);
--secondary: oklch(0.076 0.039 279.751);
--secondary-foreground: oklch(0.765 0.12 286.25);
--accent: oklch(0.103 0.042 329.81);
--accent-foreground: oklch(0.706 0.271 330.951);
--destructive: oklch(0.566 0.224 29.485);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.093 0.04 314.462);
--chart-1: oklch(0.093 0.04 314.462);
--chart-2: oklch(0.076 0.039 279.751);
--chart-3: oklch(0.103 0.042 329.81);
--chart-4: oklch(0.109 0.058 277.317);
--chart-5: oklch(0.092 0.042 314.621);
}