Expert is a shadcn/ui theme built around a green primary color (#3ed07b) with pink accents (#d03e93). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the green primary (#3ed07b) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #010402black |
| Foreground | #050f09black | #f9fbfamintcream |
| Card | #fbfdfcwhite | #010402black |
| Card foreground | #050f09black | #f9fbfamintcream |
| Popover | #fbfdfcwhite | #010402black |
| Popover foreground | #050f09black | #f9fbfamintcream |
| Primary | #3ed07bmediumseagreen | #3ed07bmediumseagreen |
| Primary foreground | #0d351edarkgreen | #0d351edarkgreen |
| Secondary | #d03e93mediumvioletred | #d03e93mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1eaeelinen | #150e12black |
| Muted foreground | #555354dimgray | #acaaabdarkgray |
| Accent | #d03e93mediumvioletred | #d03e93mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #641902maroon | #f63c04orangered |
| Destructive foreground | #fdb29bburlywood | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3ed07bmediumseagreen | #3ed07bmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 4.37:1 | AA Large |
| Muted text | 6.42:1 | AA |
| Accent | 4.37:1 | AA Large |
| Destructive | 7.13:1 | AAA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 4.37:1 | AA Large |
| Muted text | 8.21:1 | AAA |
| Accent | 4.37:1 | AA Large |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Expert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 160.953);
--foreground: oklch(0.157 0.021 159.371);
--muted: oklch(0.943 0.009 341.246);
--muted-foreground: oklch(0.445 0.003 341.153);
--popover: oklch(0.994 0.003 160.953);
--popover-foreground: oklch(0.157 0.021 159.371);
--card: oklch(0.994 0.003 160.953);
--card-foreground: oklch(0.157 0.021 159.371);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.762 0.173 153.159);
--primary-foreground: oklch(0.295 0.062 154.074);
--secondary: oklch(0.601 0.199 348.908);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.601 0.199 348.908);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.337 0.113 36.298);
--destructive-foreground: oklch(0.829 0.095 37.638);
--ring: oklch(0.762 0.173 153.159);
--chart-1: oklch(0.762 0.173 153.159);
--chart-2: oklch(0.601 0.199 348.908);
--chart-3: oklch(0.601 0.199 348.908);
--chart-4: oklch(0.621 0.19 348.028);
--chart-5: oklch(0.77 0.179 152.809);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.014 160.942);
--foreground: oklch(0.986 0.004 160.927);
--muted: oklch(0.176 0.014 342.834);
--muted-foreground: oklch(0.74 0.002 341.087);
--popover: oklch(0.098 0.014 160.942);
--popover-foreground: oklch(0.986 0.004 160.927);
--card: oklch(0.098 0.014 160.942);
--card-foreground: oklch(0.986 0.004 160.927);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.762 0.173 153.159);
--primary-foreground: oklch(0.295 0.062 154.074);
--secondary: oklch(0.601 0.199 348.908);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.601 0.199 348.908);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.638 0.227 34.111);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.762 0.173 153.159);
--chart-1: oklch(0.762 0.173 153.159);
--chart-2: oklch(0.601 0.199 348.908);
--chart-3: oklch(0.601 0.199 348.908);
--chart-4: oklch(0.621 0.19 348.028);
--chart-5: oklch(0.77 0.179 152.809);
}