Expert is a shadcn/ui theme built around a deep purple primary color (#540d41) with deep cyan accents (#0d4154). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep purple primary (#540d41) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #080206black | #ffffffwhite |
| Card | #fefbfdsnow | #000000black |
| Card foreground | #080206black | #ffffffwhite |
| Popover | #fefbfdsnow | #000000black |
| Popover foreground | #080206black | #ffffffwhite |
| Primary | #540d41indigo | #540d41indigo |
| Primary foreground | #f1a2dcplum | #f1a2dcplum |
| Secondary | #41540ddarkolivegreen | #41540ddarkolivegreen |
| Secondary foreground | #dcf1a2palegoldenrod | #dcf1a2palegoldenrod |
| Muted | #f1f3edwhitesmoke | #11120cblack |
| Muted foreground | #696d5fdimgray | #9ca092darkgray |
| Accent | #0d4154darkslategray | #0d4154darkslategray |
| Accent foreground | #a2dcf1lightblue | #a2dcf1lightblue |
| Destructive | #7a0c06maroon | #f52e24crimson |
| Destructive foreground | #fcb9b6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #540d41indigo | #540d41indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 4.73:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 7.36:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Expert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 334.581);
--foreground: oklch(0.108 0.02 335.125);
--muted: oklch(0.96 0.008 118.709);
--muted-foreground: oklch(0.528 0.022 119.306);
--popover: oklch(0.991 0.003 334.581);
--popover-foreground: oklch(0.108 0.02 335.125);
--card: oklch(0.991 0.003 334.581);
--card-foreground: oklch(0.108 0.02 335.125);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.31 0.118 341.432);
--primary-foreground: oklch(0.807 0.119 336.928);
--secondary: oklch(0.416 0.096 124.097);
--secondary-foreground: oklch(0.924 0.104 120.612);
--accent: oklch(0.353 0.062 227.625);
--accent-foreground: oklch(0.862 0.066 222.412);
--destructive: oklch(0.37 0.143 29.47);
--destructive-foreground: oklch(0.847 0.077 22.24);
--ring: oklch(0.31 0.118 341.432);
--chart-1: oklch(0.31 0.118 341.432);
--chart-2: oklch(0.416 0.096 124.097);
--chart-3: oklch(0.353 0.062 227.625);
--chart-4: oklch(0.46 0.107 124.249);
--chart-5: oklch(0.312 0.121 341.684);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.179 0.012 119.728);
--muted-foreground: oklch(0.699 0.021 119.087);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.31 0.118 341.432);
--primary-foreground: oklch(0.807 0.119 336.928);
--secondary: oklch(0.416 0.096 124.097);
--secondary-foreground: oklch(0.924 0.104 120.612);
--accent: oklch(0.353 0.062 227.625);
--accent-foreground: oklch(0.862 0.066 222.412);
--destructive: oklch(0.626 0.232 28.969);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.31 0.118 341.432);
--chart-1: oklch(0.31 0.118 341.432);
--chart-2: oklch(0.416 0.096 124.097);
--chart-3: oklch(0.353 0.062 227.625);
--chart-4: oklch(0.46 0.107 124.249);
--chart-5: oklch(0.312 0.121 341.684);
}