02 is a shadcn/ui theme built around a muted yellow primary color (#bfb597) with muted green accents (#b5bf97). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the muted yellow primary (#bfb597) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #070603black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fcfaf3floralwhite | #0a0905black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfcf7snow | #070603black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #bfb597tan | #bfb597tan |
| Primary foreground | #16140eblack | #16140eblack |
| Secondary | #bfa197rosybrown | #bfa197rosybrown |
| Secondary foreground | #16100eblack | #16100eblack |
| Muted | #ede2deantiquewhite | #211612black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #b5bf97darkgray | #b5bf97darkgray |
| Accent foreground | #14160eblack | #14160eblack |
| Destructive | #76310asaddlebrown | #d95b12chocolate |
| Destructive foreground | #f9d0b8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bfb597tan | #bfb597tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 9.44:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 9.44:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use 02 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 91.467);
--foreground: oklch(0 0 0);
--muted: oklch(0.92 0.014 39.418);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.989 0.007 91.467);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.01 91.495);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.773 0.043 91.773);
--primary-foreground: oklch(0.191 0.013 91.804);
--secondary: oklch(0.732 0.039 39.278);
--secondary-foreground: oklch(0.179 0.012 39.253);
--accent: oklch(0.786 0.056 119.107);
--accent-foreground: oklch(0.195 0.017 119.376);
--destructive: oklch(0.404 0.108 45.292);
--destructive-foreground: oklch(0.887 0.057 51.769);
--ring: oklch(0.773 0.043 91.773);
--chart-1: oklch(0.773 0.043 91.773);
--chart-2: oklch(0.732 0.039 39.278);
--chart-3: oklch(0.786 0.056 119.107);
--chart-4: oklch(0.757 0.035 39.296);
--chart-5: oklch(0.778 0.048 91.793);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 94.571);
--foreground: oklch(0.993 0.001 91.419);
--muted: oklch(0.212 0.02 39.219);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.122 0.009 94.571);
--popover-foreground: oklch(0.993 0.001 91.419);
--card: oklch(0.139 0.01 94.571);
--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.773 0.043 91.773);
--primary-foreground: oklch(0.191 0.013 91.804);
--secondary: oklch(0.732 0.039 39.278);
--secondary-foreground: oklch(0.179 0.012 39.253);
--accent: oklch(0.786 0.056 119.107);
--accent-foreground: oklch(0.195 0.017 119.376);
--destructive: oklch(0.623 0.175 43.993);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0.043 91.773);
--chart-1: oklch(0.773 0.043 91.773);
--chart-2: oklch(0.732 0.039 39.278);
--chart-3: oklch(0.786 0.056 119.107);
--chart-4: oklch(0.757 0.035 39.296);
--chart-5: oklch(0.778 0.048 91.793);
}