Charred Brown Snake is a shadcn/ui theme built around a vivid deep red primary color (#3c0206) with vivid deep teal accents (#023c37). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the vivid deep red primary (#3c0206) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #040102black |
| Foreground | #090102black | #ffffffwhite |
| Card | #fcf2f3lavenderblush | #070303black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fcf2f3lavenderblush | #070303black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #3c0206black | #3c0206black |
| Primary foreground | #fb747flightcoral | #fb747flightcoral |
| Secondary | #023c37darkslategray | #023c37darkslategray |
| Secondary foreground | #10f9e5aqua | #10f9e5aqua |
| Muted | #d4e8e6gainsboro | #172b2adarkslategray |
| Muted foreground | #415856darkslategray | #a7bebcsilver |
| Accent | #023c37darkslategray | #023c37darkslategray |
| Accent foreground | #10f9e5aqua | #10f9e5aqua |
| Destructive | #c82314firebrick | #e32816crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e9e7e7linen | #262222black |
| Input | #e9e7e7linen | #262222black |
| Ring | #3c0206black | #3c0206black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.59:1 | AA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 9.25:1 | AAA |
| Destructive | 5.68:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 6.59:1 | AA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 9.25:1 | AAA |
| Destructive | 4.57:1 | AA |
Paste this into your globals.css to use Charred Brown Snake in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 11.409);
--foreground: oklch(0.1 0.024 13.839);
--muted: oklch(0.916 0.022 190.724);
--muted-foreground: oklch(0.441 0.028 189.82);
--popover: oklch(0.97 0.011 11.492);
--popover-foreground: oklch(0.08 0.019 13.839);
--card: oklch(0.97 0.011 11.492);
--card-foreground: oklch(0.08 0.019 13.839);
--border: oklch(0.929 0.003 11.32);
--input: oklch(0.929 0.003 11.32);
--primary: oklch(0.226 0.088 23.066);
--primary-foreground: oklch(0.722 0.166 17.09);
--secondary: oklch(0.32 0.055 185.831);
--secondary-foreground: oklch(0.883 0.155 184.827);
--accent: oklch(0.32 0.055 185.831);
--accent-foreground: oklch(0.883 0.155 184.827);
--destructive: oklch(0.536 0.201 30.056);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.226 0.088 23.066);
--chart-1: oklch(0.226 0.088 23.066);
--chart-2: oklch(0.32 0.055 185.831);
--chart-3: oklch(0.32 0.055 185.831);
--chart-4: oklch(0.37 0.064 185.505);
--chart-5: oklch(0.227 0.09 23.407);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.012 12.592);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.027 188.95);
--muted-foreground: oklch(0.784 0.025 190.541);
--popover: oklch(0.106 0.015 12.592);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.106 0.015 12.592);
--card-foreground: oklch(1 0 180);
--border: oklch(0.255 0.007 11.81);
--input: oklch(0.255 0.007 11.81);
--primary: oklch(0.226 0.088 23.066);
--primary-foreground: oklch(0.722 0.166 17.09);
--secondary: oklch(0.32 0.055 185.831);
--secondary-foreground: oklch(0.883 0.155 184.827);
--accent: oklch(0.32 0.055 185.831);
--accent-foreground: oklch(0.883 0.155 184.827);
--destructive: oklch(0.59 0.222 30.071);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.226 0.088 23.066);
--chart-1: oklch(0.226 0.088 23.066);
--chart-2: oklch(0.32 0.055 185.831);
--chart-3: oklch(0.32 0.055 185.831);
--chart-4: oklch(0.37 0.064 185.505);
--chart-5: oklch(0.227 0.09 23.407);
}