Expert is a shadcn/ui theme built around a neutral gray primary color (#a3a2a4) with neutral gray accents (#a4a2a4). The light mode uses a neutral background (#faf8fc). Dark mode keeps the neutral gray primary (#a3a2a4) on a violet-tinted background (#0a050f).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #0a050fblack |
| Foreground | #090212black | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #0a050fblack |
| Card foreground | #090212black | #fcfcfdwhite |
| Popover | #faf8fcghostwhite | #0a050fblack |
| Popover foreground | #090212black | #fcfcfdwhite |
| Primary | #a3a2a4darkgray | #a3a2a4darkgray |
| Primary foreground | #0a0a0ablack | #0a0a0ablack |
| Secondary | #a2a2a4darkgray | #a2a2a4darkgray |
| Secondary foreground | #0a0a0ablack | #0a0a0ablack |
| Muted | #e7e8f3lavender | #0c0d18black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #a4a2a4darkgray | #a4a2a4darkgray |
| Accent foreground | #0a0a0ablack | #0a0a0ablack |
| Destructive | #a5270dfirebrick | #d93312firebrick |
| Destructive foreground | #fdebe7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a3a2a4darkgray | #a3a2a4darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.48:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Expert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 306.363);
--foreground: oklch(0.121 0.041 306.076);
--muted: oklch(0.933 0.015 283.689);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.982 0.005 306.363);
--popover-foreground: oklch(0.121 0.041 306.076);
--card: oklch(0.982 0.005 306.363);
--card-foreground: oklch(0.121 0.041 306.076);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.714 0.003 306.379);
--primary-foreground: oklch(0.145 0 306.448);
--secondary: oklch(0.714 0.003 283.911);
--secondary-foreground: oklch(0.145 0 283.908);
--accent: oklch(0.715 0.003 324.157);
--accent-foreground: oklch(0.146 0.001 324.16);
--destructive: oklch(0.475 0.166 32.763);
--destructive-foreground: oklch(0.954 0.02 31.094);
--ring: oklch(0.714 0.003 306.379);
--chart-1: oklch(0.714 0.003 306.379);
--chart-2: oklch(0.714 0.003 283.911);
--chart-3: oklch(0.715 0.003 324.157);
--chart-4: oklch(0.739 0.002 283.918);
--chart-5: oklch(0.709 0.011 306.227);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.025 306.08);
--foreground: oklch(0.991 0.002 306.403);
--muted: oklch(0.163 0.024 281.115);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.131 0.025 306.08);
--popover-foreground: oklch(0.991 0.002 306.403);
--card: oklch(0.131 0.025 306.08);
--card-foreground: oklch(0.991 0.002 306.403);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.714 0.003 306.379);
--primary-foreground: oklch(0.145 0 306.448);
--secondary: oklch(0.714 0.003 283.911);
--secondary-foreground: oklch(0.145 0 283.908);
--accent: oklch(0.715 0.003 324.157);
--accent-foreground: oklch(0.146 0.001 324.16);
--destructive: oklch(0.579 0.206 32.614);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.714 0.003 306.379);
--chart-1: oklch(0.714 0.003 306.379);
--chart-2: oklch(0.714 0.003 283.911);
--chart-3: oklch(0.715 0.003 324.157);
--chart-4: oklch(0.739 0.002 283.918);
--chart-5: oklch(0.709 0.011 306.227);
}