Allocation is a shadcn/ui theme built around a vivid orange primary color (#f18a22) with muted light orange accents (#e3ded8). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the vivid orange primary (#f18a22) on an orange-tinted background (#0d0a07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #0d0a07black |
| Foreground | #0c0803black | #fcfaf8snow |
| Card | #fdfaf7snow | #0d0a07black |
| Card foreground | #0c0803black | #fcfaf8snow |
| Popover | #fdfaf7snow | #0d0a07black |
| Popover foreground | #0c0803black | #fcfaf8snow |
| Primary | #f18a22goldenrod | #f18a22goldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #e3ded8gainsboro | #2d2925darkslategray |
| Secondary foreground | #514539darkolivegreen | #c8c2bcsilver |
| Muted | #dfd9d2gainsboro | #2d2620darkslategray |
| Muted foreground | #42403edarkslategray | #c1bfbdsilver |
| Accent | #e3ded8gainsboro | #2d2925darkslategray |
| Accent foreground | #514539darkolivegreen | #c8c2bcsilver |
| Destructive | #d41d0cfirebrick | #f12513orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f18a22goldenrod | #f18a22goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 5.27:1 | AA |
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Allocation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 67.763);
--foreground: oklch(0.137 0.016 75.732);
--muted: oklch(0.888 0.011 67.68);
--muted-foreground: oklch(0.372 0.004 67.698);
--popover: oklch(0.986 0.005 67.763);
--popover-foreground: oklch(0.137 0.016 75.732);
--card: oklch(0.986 0.005 67.763);
--card-foreground: oklch(0.137 0.016 75.732);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.729 0.163 58.603);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.903 0.01 67.702);
--secondary-foreground: oklch(0.398 0.025 67.011);
--accent: oklch(0.903 0.01 67.702);
--accent-foreground: oklch(0.398 0.025 67.011);
--destructive: oklch(0.556 0.215 30.086);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.729 0.163 58.603);
--chart-1: oklch(0.729 0.163 58.603);
--chart-2: oklch(0.903 0.01 67.702);
--chart-3: oklch(0.903 0.01 67.702);
--chart-4: oklch(0.926 0.008 67.732);
--chart-5: oklch(0.734 0.167 58.015);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.009 69.736);
--foreground: oklch(0.986 0.003 67.784);
--muted: oklch(0.275 0.015 67.124);
--muted-foreground: oklch(0.806 0.003 67.775);
--popover: oklch(0.149 0.009 69.736);
--popover-foreground: oklch(0.986 0.003 67.784);
--card: oklch(0.149 0.009 69.736);
--card-foreground: oklch(0.986 0.003 67.784);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.729 0.163 58.603);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.283 0.009 67.43);
--secondary-foreground: oklch(0.817 0.011 67.673);
--accent: oklch(0.283 0.009 67.43);
--accent-foreground: oklch(0.817 0.011 67.673);
--destructive: oklch(0.614 0.235 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.729 0.163 58.603);
--chart-1: oklch(0.729 0.163 58.603);
--chart-2: oklch(0.283 0.009 67.43);
--chart-3: oklch(0.283 0.009 67.43);
--chart-4: oklch(0.314 0.011 67.412);
--chart-5: oklch(0.734 0.167 58.015);
}