My theme is a shadcn/ui theme built around a vivid deep red primary color (#470a06) with vivid deep orange accents (#472b06). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid deep red primary (#470a06) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #040201black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fbf9f8snow | #070303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfcfcsnow | #040201black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #470a06maroon | #470a06maroon |
| Primary foreground | #f59089lightcoral | #f59089lightcoral |
| Secondary | #470622maroon | #470622maroon |
| Secondary foreground | #f589b8hotpink | #f589b8hotpink |
| Muted | #e4d8ddgainsboro | #271b20black |
| Muted foreground | #494647darkslategray | #b9b6b7silver |
| Accent | #472b06maroon | #472b06maroon |
| Accent foreground | #f5c689burlywood | #f5c689burlywood |
| Destructive | #850400maroon | #ff3029orangered |
| Destructive foreground | #ffbab8lightpink | #ffffffwhite |
| Border | #f0efefwhitesmoke | #23201fblack |
| Input | #f0efefwhitesmoke | #23201fblack |
| Ring | #470a06maroon | #470a06maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 6.72:1 | AA |
| Accent | 8.28:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 8.25:1 | AAA |
| Accent | 8.28:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use My theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 22.232);
--foreground: oklch(0.081 0.018 29.732);
--muted: oklch(0.893 0.016 349.213);
--muted-foreground: oklch(0.397 0.004 349.034);
--popover: oklch(0.991 0.002 22.232);
--popover-foreground: oklch(0.081 0.018 29.732);
--card: oklch(0.983 0.003 22.25);
--card-foreground: oklch(0 0 0);
--border: oklch(0.953 0.002 22.233);
--input: oklch(0.953 0.002 22.233);
--primary: oklch(0.261 0.091 29.484);
--primary-foreground: oklch(0.759 0.124 24.734);
--secondary: oklch(0.263 0.097 1.019);
--secondary-foreground: oklch(0.76 0.141 353.577);
--accent: oklch(0.316 0.064 67.895);
--accent-foreground: oklch(0.856 0.095 73.458);
--destructive: oklch(0.388 0.157 29.812);
--destructive-foreground: oklch(0.852 0.08 21.119);
--ring: oklch(0.261 0.091 29.484);
--chart-1: oklch(0.261 0.091 29.484);
--chart-2: oklch(0.263 0.097 1.019);
--chart-3: oklch(0.316 0.064 67.895);
--chart-4: oklch(0.296 0.111 1.807);
--chart-5: oklch(0.262 0.094 29.865);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 25.214);
--foreground: oklch(0.991 0.002 22.235);
--muted: oklch(0.239 0.022 351.146);
--muted-foreground: oklch(0.78 0.004 348.863);
--popover: oklch(0.086 0.009 25.214);
--popover-foreground: oklch(0.991 0.002 22.235);
--card: oklch(0.109 0.012 25.214);
--card-foreground: oklch(1 0 180);
--border: oklch(0.246 0.005 22.439);
--input: oklch(0.246 0.005 22.439);
--primary: oklch(0.261 0.091 29.484);
--primary-foreground: oklch(0.759 0.124 24.734);
--secondary: oklch(0.263 0.097 1.019);
--secondary-foreground: oklch(0.76 0.141 353.577);
--accent: oklch(0.316 0.064 67.895);
--accent-foreground: oklch(0.856 0.095 73.458);
--destructive: oklch(0.646 0.24 28.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.261 0.091 29.484);
--chart-1: oklch(0.261 0.091 29.484);
--chart-2: oklch(0.263 0.097 1.019);
--chart-3: oklch(0.316 0.064 67.895);
--chart-4: oklch(0.296 0.111 1.807);
--chart-5: oklch(0.262 0.094 29.865);
}