Expert is a shadcn/ui theme built around a muted light red primary color (#cec0c2) with muted light teal accents (#c0cecc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#cec0c2) on a red-tinted background (#0f0607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0607black |
| Foreground | #160306black | #fbf8f9snow |
| Card | #ffffffwhite | #0f0607black |
| Card foreground | #160306black | #fbf8f9snow |
| Popover | #ffffffwhite | #0f0607black |
| Popover foreground | #160306black | #fbf8f9snow |
| Primary | #cec0c2silver | #cec0c2silver |
| Primary foreground | #34282adarkslategray | #34282adarkslategray |
| Secondary | #c0ceccsilver | #c0ceccsilver |
| Secondary foreground | #283432darkslategray | #283432darkslategray |
| Muted | #eef6f5whitesmoke | #091110black |
| Muted foreground | #404f4ddarkslategray | #b0bfbdsilver |
| Accent | #c0ceccsilver | #c0ceccsilver |
| Accent foreground | #283432darkslategray | #283432darkslategray |
| Destructive | #90170edarkred | #e93225crimson |
| Destructive foreground | #fbd8d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cec0c2silver | #cec0c2silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 10.04:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Expert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.04 10.693);
--muted: oklch(0.968 0.009 186.357);
--muted-foreground: oklch(0.414 0.02 185.312);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.04 10.693);
--card: oklch(1 0 180);
--card-foreground: oklch(0.142 0.04 10.693);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.819 0.017 7.107);
--primary-foreground: oklch(0.291 0.018 8.144);
--secondary: oklch(0.84 0.016 186.103);
--secondary-foreground: oklch(0.313 0.016 185.211);
--accent: oklch(0.84 0.016 186.103);
--accent-foreground: oklch(0.313 0.016 185.211);
--destructive: oklch(0.422 0.157 29.519);
--destructive-foreground: oklch(0.91 0.039 22.748);
--ring: oklch(0.819 0.017 7.107);
--chart-1: oklch(0.819 0.017 7.107);
--chart-2: oklch(0.84 0.016 186.103);
--chart-3: oklch(0.84 0.016 186.103);
--chart-4: oklch(0.862 0.014 186.183);
--chart-5: oklch(0.817 0.021 7.228);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.018 7.93);
--foreground: oklch(0.983 0.003 6.683);
--muted: oklch(0.168 0.013 184.536);
--muted-foreground: oklch(0.793 0.018 186.026);
--popover: oklch(0.136 0.018 7.93);
--popover-foreground: oklch(0.983 0.003 6.683);
--card: oklch(0.136 0.018 7.93);
--card-foreground: oklch(0.983 0.003 6.683);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.819 0.017 7.107);
--primary-foreground: oklch(0.291 0.018 8.144);
--secondary: oklch(0.84 0.016 186.103);
--secondary-foreground: oklch(0.313 0.016 185.211);
--accent: oklch(0.84 0.016 186.103);
--accent-foreground: oklch(0.313 0.016 185.211);
--destructive: oklch(0.609 0.22 29.323);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.819 0.017 7.107);
--chart-1: oklch(0.819 0.017 7.107);
--chart-2: oklch(0.84 0.016 186.103);
--chart-3: oklch(0.84 0.016 186.103);
--chart-4: oklch(0.862 0.014 186.183);
--chart-5: oklch(0.817 0.021 7.228);
}