Behavior is a shadcn/ui theme built around a vivid deep yellow primary color (#4b4301) with vivid deep purple accents (#43014b). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid deep yellow primary (#4b4301) on a yellow-tinted background (#0f0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0f0e06black |
| Foreground | #110f04black | #f9f8f6whitesmoke |
| Card | #fdfcf7snow | #0f0e06black |
| Card foreground | #110f04black | #f9f8f6whitesmoke |
| Popover | #fdfcf7snow | #0f0e06black |
| Popover foreground | #110f04black | #f9f8f6whitesmoke |
| Primary | #4b4301darkolivegreen | #4b4301darkolivegreen |
| Primary foreground | #fce21dgold | #fce21dgold |
| Secondary | #014b43darkslategray | #014b43darkslategray |
| Secondary foreground | #1dfce2aqua | #1dfce2aqua |
| Muted | #e0e6e5gainsboro | #191f1eblack |
| Muted foreground | #465d5adarkslategray | #a2b9b6darkgray |
| Accent | #43014bindigo | #43014bindigo |
| Accent foreground | #ef81fdviolet | #ef81fdviolet |
| Destructive | #742a02saddlebrown | #fb5e09orangered |
| Destructive foreground | #fec7aanavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b4301darkolivegreen | #4b4301darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.67:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.58:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 18.24:1 | AAA |
| Text on card | 18.24:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 6.86:1 | AA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Behavior in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 100.43);
--foreground: oklch(0.166 0.024 102.775);
--muted: oklch(0.92 0.006 188.753);
--muted-foreground: oklch(0.459 0.028 187.403);
--popover: oklch(0.99 0.006 100.43);
--popover-foreground: oklch(0.166 0.024 102.775);
--card: oklch(0.99 0.006 100.43);
--card-foreground: oklch(0.166 0.024 102.775);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.379 0.078 100.897);
--primary-foreground: oklch(0.905 0.184 100.628);
--secondary: oklch(0.372 0.066 181.867);
--secondary-foreground: oklch(0.889 0.157 181.647);
--accent: oklch(0.276 0.129 322.453);
--accent-foreground: oklch(0.769 0.201 322.808);
--destructive: oklch(0.388 0.114 42.79);
--destructive-foreground: oklch(0.871 0.074 49.66);
--ring: oklch(0.379 0.078 100.897);
--chart-1: oklch(0.379 0.078 100.897);
--chart-2: oklch(0.372 0.066 181.867);
--chart-3: oklch(0.276 0.129 322.453);
--chart-4: oklch(0.421 0.075 181.551);
--chart-5: oklch(0.382 0.08 100.827);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.018 102.251);
--foreground: oklch(0.98 0.003 100.384);
--muted: oklch(0.233 0.008 188.041);
--muted-foreground: oklch(0.767 0.025 188.112);
--popover: oklch(0.161 0.018 102.251);
--popover-foreground: oklch(0.98 0.003 100.384);
--card: oklch(0.161 0.018 102.251);
--card-foreground: oklch(0.98 0.003 100.384);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.379 0.078 100.897);
--primary-foreground: oklch(0.905 0.184 100.628);
--secondary: oklch(0.372 0.066 181.867);
--secondary-foreground: oklch(0.889 0.157 181.647);
--accent: oklch(0.276 0.129 322.453);
--accent-foreground: oklch(0.769 0.201 322.808);
--destructive: oklch(0.68 0.207 40.998);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.379 0.078 100.897);
--chart-1: oklch(0.379 0.078 100.897);
--chart-2: oklch(0.372 0.066 181.867);
--chart-3: oklch(0.276 0.129 322.453);
--chart-4: oklch(0.421 0.075 181.551);
--chart-5: oklch(0.382 0.08 100.827);
}