Expert is a shadcn/ui theme built around a deep orange primary color (#0e0907) with muted light orange accents (#ded7d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#0e0907) on an orange-tinted background (#0c0603).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0603black |
| Foreground | #130b06black | #faf7f5whitesmoke |
| Card | #ffffffwhite | #0c0603black |
| Card foreground | #130b06black | #faf7f5whitesmoke |
| Popover | #ffffffwhite | #0c0603black |
| Popover foreground | #130b06black | #faf7f5whitesmoke |
| Primary | #0e0907black | #0e0907black |
| Primary foreground | #c39883rosybrown | #c39883rosybrown |
| Secondary | #eceae9linen | #1c1917black |
| Secondary foreground | #57504cdarkolivegreen | #bab0abdarkgray |
| Muted | #f1efefwhitesmoke | #100f0eblack |
| Muted foreground | #514b48darkslategray | #b7b1aedarkgray |
| Accent | #ded7d3gainsboro | #2f2722darkslategray |
| Accent foreground | #493d37darkslategray | #ccbfb8silver |
| Destructive | #ac440csaddlebrown | #f17532tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e0907black | #0e0907black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 7.49:1 | AAA |
| Accent | 7.36:1 | AAA |
| Destructive | 5.87:1 | AA |
| Text on background | 18.85:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 7.30:1 | AAA |
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.158 0.018 50.241);
--muted: oklch(0.954 0.002 48.727);
--muted-foreground: oklch(0.418 0.01 48.48);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.158 0.018 50.241);
--card: oklch(1 0 180);
--card-foreground: oklch(0.158 0.018 50.241);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.145 0.01 51.559);
--primary-foreground: oklch(0.716 0.06 47.864);
--secondary: oklch(0.939 0.002 48.719);
--secondary-foreground: oklch(0.436 0.012 48.434);
--accent: oklch(0.884 0.009 48.623);
--accent-foreground: oklch(0.37 0.019 48.171);
--destructive: oklch(0.52 0.149 42.804);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.145 0.01 51.559);
--chart-1: oklch(0.145 0.01 51.559);
--chart-2: oklch(0.939 0.002 48.719);
--chart-3: oklch(0.884 0.009 48.623);
--chart-4: oklch(0.962 0.002 48.732);
--chart-5: oklch(0.145 0.011 51.875);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.016 56.977);
--foreground: oklch(0.977 0.004 48.7);
--muted: oklch(0.17 0.003 48.552);
--muted-foreground: oklch(0.764 0.008 48.62);
--popover: oklch(0.131 0.016 56.977);
--popover-foreground: oklch(0.977 0.004 48.7);
--card: oklch(0.131 0.016 56.977);
--card-foreground: oklch(0.977 0.004 48.7);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.145 0.01 51.559);
--primary-foreground: oklch(0.716 0.06 47.864);
--secondary: oklch(0.215 0.006 48.41);
--secondary-foreground: oklch(0.764 0.014 48.536);
--accent: oklch(0.28 0.015 48.151);
--accent-foreground: oklch(0.812 0.017 48.498);
--destructive: oklch(0.697 0.171 45.667);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.145 0.01 51.559);
--chart-1: oklch(0.145 0.01 51.559);
--chart-2: oklch(0.215 0.006 48.41);
--chart-3: oklch(0.28 0.015 48.151);
--chart-4: oklch(0.248 0.008 48.382);
--chart-5: oklch(0.145 0.011 51.875);
}