Those is a shadcn/ui theme built around a yellow primary color (#ece479) with indigo accents (#7981ec). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the yellow primary (#ece479) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbf8snow | #070703black |
| Foreground | #0c0c03black | #ffffffwhite |
| Card | #fbfbf8snow | #070703black |
| Card foreground | #0c0c03black | #ffffffwhite |
| Popover | #fbfbf8snow | #070703black |
| Popover foreground | #0c0c03black | #ffffffwhite |
| Primary | #ece479khaki | #ece479khaki |
| Primary foreground | #2d2a06black | #2d2a06black |
| Secondary | #7981ecmediumslateblue | #7981ecmediumslateblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #e9e9f2lavender | #0d0e16black |
| Muted foreground | #444446darkslategray | #b9babbsilver |
| Accent | #7981ecmediumslateblue | #7981ecmediumslateblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #a30500darkred | #ff352eorangered |
| Destructive foreground | #ffd8d6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ece479khaki | #ece479khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 11.04:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 6.20:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 11.04:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 9.89:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Those in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 103.173);
--foreground: oklch(0.15 0.021 105.83);
--muted: oklch(0.937 0.011 282.902);
--muted-foreground: oklch(0.388 0.002 283.012);
--popover: oklch(0.988 0.004 103.173);
--popover-foreground: oklch(0.15 0.021 105.83);
--card: oklch(0.988 0.004 103.173);
--card-foreground: oklch(0.15 0.021 105.83);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.904 0.13 105.045);
--primary-foreground: oklch(0.28 0.052 105.277);
--secondary: oklch(0.646 0.158 277.916);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.158 277.916);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.452 0.183 29.685);
--destructive-foreground: oklch(0.914 0.044 20.33);
--ring: oklch(0.904 0.13 105.045);
--chart-1: oklch(0.904 0.13 105.045);
--chart-2: oklch(0.646 0.158 277.916);
--chart-3: oklch(0.646 0.158 277.916);
--chart-4: oklch(0.681 0.141 278.844);
--chart-5: oklch(0.909 0.134 105.075);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.014 105.482);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.017 281.153);
--muted-foreground: oklch(0.788 0.002 283.068);
--popover: oklch(0.127 0.014 105.482);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.014 105.482);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.904 0.13 105.045);
--primary-foreground: oklch(0.28 0.052 105.277);
--secondary: oklch(0.646 0.158 277.916);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.158 277.916);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.65 0.236 28.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.13 105.045);
--chart-1: oklch(0.904 0.13 105.045);
--chart-2: oklch(0.646 0.158 277.916);
--chart-3: oklch(0.646 0.158 277.916);
--chart-4: oklch(0.681 0.141 278.844);
--chart-5: oklch(0.909 0.134 105.075);
}