Barracks is a shadcn/ui theme built around a deep red primary color (#490e12) with deep indigo accents (#0e1249). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the deep red primary (#490e12) on a red-tinted background (#0c0304).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #0c0304black |
| Foreground | #080203black | #faf4f5whitesmoke |
| Card | #fcf8f8snow | #0c0304black |
| Card foreground | #080203black | #faf4f5whitesmoke |
| Popover | #fcf8f8snow | #0c0304black |
| Popover foreground | #080203black | #faf4f5whitesmoke |
| Primary | #490e12maroon | #490e12maroon |
| Primary foreground | #ec9ca2darksalmon | #ec9ca2darksalmon |
| Secondary | #12490edarkgreen | #12490edarkgreen |
| Secondary foreground | #a2ec9cpalegreen | #a2ec9cpalegreen |
| Muted | #edf3edwhitesmoke | #0d120cblack |
| Muted foreground | #465945darkslategray | #a7baa6darkgray |
| Accent | #0e1249midnightblue | #0e1249midnightblue |
| Accent foreground | #9ca2eclightsteelblue | #9ca2eclightsteelblue |
| Destructive | #c92208firebrick | #f5290aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #490e12maroon | #490e12maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 5.66:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 9.19:1 | AAA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Barracks in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 12.508);
--foreground: oklch(0.105 0.017 14.288);
--muted: oklch(0.957 0.01 143.58);
--muted-foreground: oklch(0.443 0.041 143.139);
--popover: oklch(0.982 0.004 12.508);
--popover-foreground: oklch(0.105 0.017 14.288);
--card: oklch(0.982 0.004 12.508);
--card-foreground: oklch(0.105 0.017 14.288);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.271 0.088 21.911);
--primary-foreground: oklch(0.775 0.096 15.159);
--secondary: oklch(0.356 0.105 142.14);
--secondary-foreground: oklch(0.875 0.131 142.819);
--accent: oklch(0.224 0.1 271.948);
--accent-foreground: oklch(0.736 0.108 280.26);
--destructive: oklch(0.537 0.203 31.248);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.271 0.088 21.911);
--chart-1: oklch(0.271 0.088 21.911);
--chart-2: oklch(0.356 0.105 142.14);
--chart-3: oklch(0.224 0.1 271.948);
--chart-4: oklch(0.397 0.119 142.132);
--chart-5: oklch(0.272 0.091 22.416);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.021 14.536);
--foreground: oklch(0.973 0.006 12.561);
--muted: oklch(0.175 0.015 143.165);
--muted-foreground: oklch(0.769 0.036 143.388);
--popover: oklch(0.119 0.021 14.536);
--popover-foreground: oklch(0.973 0.006 12.561);
--card: oklch(0.119 0.021 14.536);
--card-foreground: oklch(0.973 0.006 12.561);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.271 0.088 21.911);
--primary-foreground: oklch(0.775 0.096 15.159);
--secondary: oklch(0.356 0.105 142.14);
--secondary-foreground: oklch(0.875 0.131 142.819);
--accent: oklch(0.224 0.1 271.948);
--accent-foreground: oklch(0.736 0.108 280.26);
--destructive: oklch(0.623 0.237 31.146);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.271 0.088 21.911);
--chart-1: oklch(0.271 0.088 21.911);
--chart-2: oklch(0.356 0.105 142.14);
--chart-3: oklch(0.224 0.1 271.948);
--chart-4: oklch(0.397 0.119 142.132);
--chart-5: oklch(0.272 0.091 22.416);
}