Exception is a shadcn/ui theme built around a teal primary color (#30a679) with cyan accents (#3098a6). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#30a679) on a teal-tinted background (#04100c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04100cblack |
| Foreground | #020906black | #f9fbfamintcream |
| Card | #ffffffwhite | #04100cblack |
| Card foreground | #020906black | #f9fbfamintcream |
| Popover | #ffffffwhite | #04100cblack |
| Popover foreground | #020906black | #f9fbfamintcream |
| Primary | #30a679mediumseagreen | #30a679mediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #30a63eseagreen | #30a63eseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbe6dcgainsboro | #19241bblack |
| Muted foreground | #424342darkslategray | #bcbdbcsilver |
| Accent | #3098a6lightseagreen | #3098a6lightseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d44808chocolate | #e74f08orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #30a679mediumseagreen | #30a679mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 3.15:1 | AA Large |
| Muted text | 7.72:1 | AAA |
| Accent | 3.39:1 | AA Large |
| Destructive | 4.44:1 | AA Large |
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 3.15:1 | AA Large |
| Muted text | 8.52:1 | AAA |
| Accent | 3.39:1 | AA Large |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Exception in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.018 171.904);
--muted: oklch(0.913 0.017 148.918);
--muted-foreground: oklch(0.381 0.003 149.052);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.018 171.904);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.018 171.904);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.649 0.124 163.063);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.638 0.177 144.847);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.628 0.094 207.787);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.591 0.186 39.141);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.124 163.063);
--chart-1: oklch(0.649 0.124 163.063);
--chart-2: oklch(0.638 0.177 144.847);
--chart-3: oklch(0.628 0.094 207.787);
--chart-4: oklch(0.672 0.187 144.822);
--chart-5: oklch(0.657 0.129 162.623);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.022 169.044);
--foreground: oklch(0.986 0.002 171.543);
--muted: oklch(0.246 0.023 147.982);
--muted-foreground: oklch(0.798 0.002 149.101);
--popover: oklch(0.16 0.022 169.044);
--popover-foreground: oklch(0.986 0.002 171.543);
--card: oklch(0.16 0.022 169.044);
--card-foreground: oklch(0.986 0.002 171.543);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.649 0.124 163.063);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.638 0.177 144.847);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.628 0.094 207.787);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.199 38.98);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.124 163.063);
--chart-1: oklch(0.649 0.124 163.063);
--chart-2: oklch(0.638 0.177 144.847);
--chart-3: oklch(0.628 0.094 207.787);
--chart-4: oklch(0.672 0.187 144.822);
--chart-5: oklch(0.657 0.129 162.623);
}