Expert is a shadcn/ui theme built around a deep green primary color (#060e07) with muted light green accents (#e4ece4). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#060e07) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020402black |
| Foreground | #020d03black | #f6f9f6whitesmoke |
| Card | #fcfdfcwhite | #020402black |
| Card foreground | #020d03black | #f6f9f6whitesmoke |
| Popover | #fcfdfcwhite | #020402black |
| Popover foreground | #020d03black | #f6f9f6whitesmoke |
| Primary | #060e07black | #060e07black |
| Primary foreground | #7ec984darkseagreen | #7ec984darkseagreen |
| Secondary | #e4ece4gainsboro | #2a3c2bdarkslategray |
| Secondary foreground | #405e43darkslategray | #c3d5c4silver |
| Muted | #d5e1d6gainsboro | #1e2a1fblack |
| Muted foreground | #444644darkslategray | #b9bbbasilver |
| Accent | #e4ece4gainsboro | #2a3c2bdarkslategray |
| Accent foreground | #405e43darkslategray | #c3d5c4silver |
| Destructive | #7f2006maroon | #f55d32tomato |
| Destructive foreground | #fcc9bbpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060e07black | #060e07black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 9.83:1 | AAA |
| Secondary button | 6.02:1 | AA |
| Muted text | 7.08:1 | AAA |
| Accent | 6.02:1 | AA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 9.83:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Expert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 148.033);
--foreground: oklch(0.143 0.035 146.146);
--muted: oklch(0.899 0.02 147.83);
--muted-foreground: oklch(0.391 0.003 147.989);
--popover: oklch(0.993 0.003 148.033);
--popover-foreground: oklch(0.143 0.035 146.146);
--card: oklch(0.993 0.003 148.033);
--card-foreground: oklch(0.143 0.035 146.146);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.153 0.022 146.879);
--primary-foreground: oklch(0.769 0.123 146.185);
--secondary: oklch(0.936 0.014 147.905);
--secondary-foreground: oklch(0.45 0.057 146.621);
--accent: oklch(0.936 0.014 147.905);
--accent-foreground: oklch(0.45 0.057 146.621);
--destructive: oklch(0.396 0.133 34.896);
--destructive-foreground: oklch(0.877 0.061 35.975);
--ring: oklch(0.153 0.022 146.879);
--chart-1: oklch(0.153 0.022 146.879);
--chart-2: oklch(0.936 0.014 147.905);
--chart-3: oklch(0.936 0.014 147.905);
--chart-4: oklch(0.957 0.009 147.961);
--chart-5: oklch(0.154 0.023 146.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.013 147.121);
--foreground: oklch(0.979 0.005 148.014);
--muted: oklch(0.269 0.026 146.967);
--muted-foreground: oklch(0.79 0.002 148.033);
--popover: oklch(0.096 0.013 147.121);
--popover-foreground: oklch(0.979 0.005 148.014);
--card: oklch(0.096 0.013 147.121);
--card-foreground: oklch(0.979 0.005 148.014);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.153 0.022 146.879);
--primary-foreground: oklch(0.769 0.123 146.185);
--secondary: oklch(0.335 0.038 146.797);
--secondary-foreground: oklch(0.855 0.03 147.685);
--accent: oklch(0.335 0.038 146.797);
--accent-foreground: oklch(0.855 0.03 147.685);
--destructive: oklch(0.672 0.196 35.962);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.153 0.022 146.879);
--chart-1: oklch(0.153 0.022 146.879);
--chart-2: oklch(0.335 0.038 146.797);
--chart-3: oklch(0.335 0.038 146.797);
--chart-4: oklch(0.367 0.042 146.762);
--chart-5: oklch(0.154 0.023 146.791);
}