Controller is a shadcn/ui theme built around an orange primary color (#edc792) with muted light orange accents (#dad0c3). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the orange primary (#edc792) on an orange-tinted background (#0e0b07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #0e0b07black |
| Foreground | #090601black | #fdfdfcwhite |
| Card | #fcf8f3floralwhite | #110d08black |
| Card foreground | #050301black | #ffffffwhite |
| Popover | #fdfaf7snow | #0e0b07black |
| Popover foreground | #090601black | #fdfdfcwhite |
| Primary | #edc792burlywood | #edc792burlywood |
| Primary foreground | #412b0bdarkolivegreen | #412b0bdarkolivegreen |
| Secondary | #e3dfd8gainsboro | #322d24darkslategray |
| Secondary foreground | #514739darkolivegreen | #cec6bbsilver |
| Muted | #f3f2f1whitesmoke | #0e0d0cblack |
| Muted foreground | #67645fdimgray | #a09c98darkgray |
| Accent | #dad0c3lightgrey | #544531darkolivegreen |
| Accent foreground | #423829darkslategray | #e5ddd2gainsboro |
| Destructive | #790f0bmaroon | #eb2f28crimson |
| Destructive foreground | #f9c0belightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edc792burlywood | #edc792burlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 5.28:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 6.86:1 | AA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Controller in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 76.626);
--foreground: oklch(0.123 0.02 86.572);
--muted: oklch(0.963 0.001 76.646);
--muted-foreground: oklch(0.505 0.008 76.569);
--popover: oklch(0.987 0.006 76.626);
--popover-foreground: oklch(0.123 0.02 86.572);
--card: oklch(0.981 0.008 76.612);
--card-foreground: oklch(0.098 0.016 86.572);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.849 0.081 75.646);
--primary-foreground: oklch(0.309 0.056 71.694);
--secondary: oklch(0.905 0.01 76.598);
--secondary-foreground: oklch(0.403 0.026 76.155);
--accent: oklch(0.863 0.02 76.525);
--accent-foreground: oklch(0.346 0.028 75.916);
--destructive: oklch(0.371 0.14 28.616);
--destructive-foreground: oklch(0.858 0.066 20.812);
--ring: oklch(0.849 0.081 75.646);
--chart-1: oklch(0.849 0.081 75.646);
--chart-2: oklch(0.905 0.01 76.598);
--chart-3: oklch(0.863 0.02 76.525);
--chart-4: oklch(0.927 0.008 76.612);
--chart-5: oklch(0.851 0.084 75.573);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.011 78.429);
--foreground: oklch(0.993 0.001 76.649);
--muted: oklch(0.159 0.002 76.586);
--muted-foreground: oklch(0.695 0.008 76.599);
--popover: oklch(0.151 0.011 78.429);
--popover-foreground: oklch(0.993 0.001 76.649);
--card: oklch(0.164 0.012 76.46);
--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.849 0.081 75.646);
--primary-foreground: oklch(0.309 0.056 71.694);
--secondary: oklch(0.299 0.016 76.256);
--secondary-foreground: oklch(0.83 0.017 76.542);
--accent: oklch(0.4 0.037 75.69);
--accent-foreground: oklch(0.9 0.017 76.556);
--destructive: oklch(0.61 0.223 28.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.849 0.081 75.646);
--chart-1: oklch(0.849 0.081 75.646);
--chart-2: oklch(0.299 0.016 76.256);
--chart-3: oklch(0.4 0.037 75.69);
--chart-4: oklch(0.331 0.019 76.234);
--chart-5: oklch(0.851 0.084 75.573);
}