Colt is a shadcn/ui theme built around a near-black primary color (#050100) with near-black accents (#010005). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the near-black primary (#050100) on an orange-tinted background (#100705).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f7snow | #100705black |
| Foreground | #040201black | #ffffffwhite |
| Card | #fdf8f7snow | #100705black |
| Card foreground | #040201black | #ffffffwhite |
| Popover | #fdf8f7snow | #100705black |
| Popover foreground | #040201black | #ffffffwhite |
| Primary | #050100black | #050100black |
| Primary foreground | #f07147tomato | #f07147tomato |
| Secondary | #000501black | #000501black |
| Secondary foreground | #10c13climegreen | #10c13climegreen |
| Muted | #e9f2ebhoneydew | #0d1610black |
| Muted foreground | #48614edarkslategray | #9eb7a5darkgray |
| Accent | #010005black | #010005black |
| Accent foreground | #baa5f8lightsteelblue | #baa5f8lightsteelblue |
| Destructive | #841506maroon | #f5452etomato |
| Destructive foreground | #fcc7c0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050100black | #050100black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 9.77:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 9.77:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Colt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 39.471);
--foreground: oklch(0.088 0.013 49.119);
--muted: oklch(0.951 0.013 153.644);
--muted-foreground: oklch(0.466 0.043 152.182);
--popover: oklch(0.983 0.006 39.471);
--popover-foreground: oklch(0.088 0.013 49.119);
--card: oklch(0.983 0.006 39.471);
--card-foreground: oklch(0.088 0.013 49.119);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.087 0.017 52.817);
--primary-foreground: oklch(0.693 0.167 38.727);
--secondary: oklch(0.1 0.023 152.888);
--secondary-foreground: oklch(0.707 0.216 145.406);
--accent: oklch(0.069 0.027 297.142);
--accent-foreground: oklch(0.771 0.117 294.988);
--destructive: oklch(0.395 0.147 31.072);
--destructive-foreground: oklch(0.874 0.062 27.075);
--ring: oklch(0.087 0.017 52.817);
--chart-1: oklch(0.087 0.017 52.817);
--chart-2: oklch(0.1 0.023 152.888);
--chart-3: oklch(0.069 0.027 297.142);
--chart-4: oklch(0.165 0.039 151.539);
--chart-5: oklch(0.087 0.018 53.561);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.017 44.409);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.019 152.032);
--muted-foreground: oklch(0.756 0.039 152.979);
--popover: oklch(0.142 0.017 44.409);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.017 44.409);
--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.087 0.017 52.817);
--primary-foreground: oklch(0.693 0.167 38.727);
--secondary: oklch(0.1 0.023 152.888);
--secondary-foreground: oklch(0.707 0.216 145.406);
--accent: oklch(0.069 0.027 297.142);
--accent-foreground: oklch(0.771 0.117 294.988);
--destructive: oklch(0.645 0.216 30.942);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.087 0.017 52.817);
--chart-1: oklch(0.087 0.017 52.817);
--chart-2: oklch(0.1 0.023 152.888);
--chart-3: oklch(0.069 0.027 297.142);
--chart-4: oklch(0.165 0.039 151.539);
--chart-5: oklch(0.087 0.018 53.561);
}