3 is a shadcn/ui theme built around a vivid yellow primary color (#efba0b) with muted light yellow accents (#d8d6cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#efba0b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #100d04black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #100d04black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #100d04black | #ffffffwhite |
| Primary | #efba0borange | #efba0borange |
| Primary foreground | #2c2202black | #2c2202black |
| Secondary | #e3e3e3gainsboro | #33322edarkslategray |
| Secondary foreground | #4b4a49darkslategray | #cdcbc6lightgrey |
| Muted | #f3f3f1whitesmoke | #0e0d0cblack |
| Muted foreground | #68655adimgray | #a5a297darkgray |
| Accent | #d8d6cflightgrey | #514d3ddarkolivegreen |
| Accent foreground | #413e35darkslategray | #e5e3dcgainsboro |
| Destructive | #d7120ffirebrick | #db130fred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eeece8linen | #1d1c16black |
| Input | #eeece8linen | #1d1c16black |
| Ring | #efba0borange | #efba0borange |
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 | 8.71:1 | AAA |
| Secondary button | 6.89:1 | AA |
| Muted text | 5.25:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 5.28:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 6.60:1 | AA |
| Destructive | 5.09:1 | AA |
Paste this into your globals.css to use 3 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.161 0.021 95.12);
--muted: oklch(0.964 0.002 92.682);
--muted-foreground: oklch(0.505 0.017 92.945);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.161 0.021 95.12);
--card: oklch(1 0 180);
--card-foreground: oklch(0.161 0.021 95.12);
--border: oklch(0.944 0.006 92.724);
--input: oklch(0.944 0.006 92.724);
--primary: oklch(0.813 0.165 87.541);
--primary-foreground: oklch(0.257 0.05 91.903);
--secondary: oklch(0.916 0.001 92.663);
--secondary-foreground: oklch(0.41 0.002 92.703);
--accent: oklch(0.876 0.009 92.759);
--accent-foreground: oklch(0.363 0.015 93.013);
--destructive: oklch(0.556 0.221 28.892);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.813 0.165 87.541);
--chart-1: oklch(0.813 0.165 87.541);
--chart-2: oklch(0.916 0.001 92.663);
--chart-3: oklch(0.876 0.009 92.759);
--chart-4: oklch(0.939 0 92.661);
--chart-5: oklch(0.821 0.167 87.131);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.161 0.004 92.871);
--muted-foreground: oklch(0.711 0.015 92.855);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.224 0.011 93.059);
--input: oklch(0.224 0.011 93.059);
--primary: oklch(0.813 0.165 87.541);
--primary-foreground: oklch(0.257 0.05 91.903);
--secondary: oklch(0.317 0.008 92.886);
--secondary-foreground: oklch(0.842 0.007 92.737);
--accent: oklch(0.419 0.025 93.107);
--accent-foreground: oklch(0.915 0.009 92.753);
--destructive: oklch(0.565 0.225 28.901);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.813 0.165 87.541);
--chart-1: oklch(0.813 0.165 87.541);
--chart-2: oklch(0.317 0.008 92.886);
--chart-3: oklch(0.419 0.025 93.107);
--chart-4: oklch(0.348 0.009 92.893);
--chart-5: oklch(0.821 0.167 87.131);
}