Expert is a shadcn/ui theme built around a muted light blue primary color (#edeef2) with muted light yellow accents (#f2f1ed). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#edeef2) on a neutral background (#030308).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030308black |
| Foreground | #030511black | #f9f9fbghostwhite |
| Card | #fbfcfewhite | #030308black |
| Card foreground | #030511black | #f9f9fbghostwhite |
| Popover | #fbfcfewhite | #030308black |
| Popover foreground | #030511black | #f9f9fbghostwhite |
| Primary | #edeef2whitesmoke | #edeef2whitesmoke |
| Primary foreground | #484d65darkslategray | #484d65darkslategray |
| Secondary | #f2f1edwhitesmoke | #f2f1edwhitesmoke |
| Secondary foreground | #2a281edarkslategray | #2a281edarkslategray |
| Muted | #e4e2d8gainsboro | #27251bblack |
| Muted foreground | #716d5bdimgray | #a4a08edarkgray |
| Accent | #f2f1edwhitesmoke | #f2f1edwhitesmoke |
| Accent foreground | #2a281edarkslategray | #2a281edarkslategray |
| Destructive | #cf2617firebrick | #e83c2ccrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edeef2whitesmoke | #edeef2whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 13.12:1 | AAA |
| Muted text | 4.00:1 | AA Large |
| Accent | 13.12:1 | AAA |
| Destructive | 5.33:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 13.12:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 13.12:1 | AAA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Expert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 277.226);
--foreground: oklch(0.122 0.03 268.505);
--muted: oklch(0.912 0.014 97.464);
--muted-foreground: oklch(0.534 0.028 97.891);
--popover: oklch(0.99 0.002 277.226);
--popover-foreground: oklch(0.122 0.03 268.505);
--card: oklch(0.99 0.002 277.226);
--card-foreground: oklch(0.122 0.03 268.505);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.95 0.006 277.174);
--primary-foreground: oklch(0.425 0.041 275.715);
--secondary: oklch(0.959 0.006 97.341);
--secondary-foreground: oklch(0.275 0.018 98.007);
--accent: oklch(0.959 0.006 97.341);
--accent-foreground: oklch(0.275 0.018 98.007);
--destructive: oklch(0.552 0.205 30.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.006 277.174);
--chart-1: oklch(0.95 0.006 277.174);
--chart-2: oklch(0.959 0.006 97.341);
--chart-3: oklch(0.959 0.006 97.341);
--chart-4: oklch(0.98 0.003 97.299);
--chart-5: oklch(0.949 0.007 277.159);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.015 271.705);
--foreground: oklch(0.983 0.002 277.229);
--muted: oklch(0.265 0.019 98.052);
--muted-foreground: oklch(0.705 0.027 97.73);
--popover: oklch(0.103 0.015 271.705);
--popover-foreground: oklch(0.983 0.002 277.229);
--card: oklch(0.103 0.015 271.705);
--card-foreground: oklch(0.983 0.002 277.229);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.95 0.006 277.174);
--primary-foreground: oklch(0.425 0.041 275.715);
--secondary: oklch(0.959 0.006 97.341);
--secondary-foreground: oklch(0.275 0.018 98.007);
--accent: oklch(0.959 0.006 97.341);
--accent-foreground: oklch(0.275 0.018 98.007);
--destructive: oklch(0.614 0.211 29.629);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.006 277.174);
--chart-1: oklch(0.95 0.006 277.174);
--chart-2: oklch(0.959 0.006 97.341);
--chart-3: oklch(0.959 0.006 97.341);
--chart-4: oklch(0.98 0.003 97.299);
--chart-5: oklch(0.949 0.007 277.159);
}