This is a shadcn/ui theme built around a deep violet primary color (#120718) with muted light violet accents (#c9c1cd). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#120718) on a violet-tinted background (#0c060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0c060fblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdfbfewhite | #0c060fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfbfewhite | #0c060fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #120718black | #120718black |
| Primary foreground | #ba77daorchid | #ba77daorchid |
| Secondary | #d9d8dagainsboro | #201b22black |
| Secondary foreground | #403e42darkslategray | #bbafc0silver |
| Muted | #e4d8e9gainsboro | #221627black |
| Muted foreground | #5e4c67dimgray | #ab98b3darkgray |
| Accent | #c9c1cdsilver | #392b40darkslategray |
| Accent foreground | #302933darkslategray | #d2c5d8thistle |
| Destructive | #6b120amaroon | #e92716orangered |
| Destructive foreground | #f8b6b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #120718black | #120718black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.50:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.39:1 | AA Large |
Paste this into your globals.css to use This in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 315.411);
--foreground: oklch(0 0 0);
--muted: oklch(0.896 0.027 315.299);
--muted-foreground: oklch(0.445 0.049 314.963);
--popover: oklch(0.991 0.004 315.411);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.004 315.411);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.155 0.04 314.478);
--primary-foreground: oklch(0.677 0.156 314.329);
--secondary: oklch(0.883 0.004 315.411);
--secondary-foreground: oklch(0.367 0.007 315.343);
--accent: oklch(0.821 0.019 315.328);
--accent-foreground: oklch(0.292 0.02 315.133);
--destructive: oklch(0.345 0.124 29.892);
--destructive-foreground: oklch(0.835 0.078 24.735);
--ring: oklch(0.155 0.04 314.478);
--chart-1: oklch(0.155 0.04 314.478);
--chart-2: oklch(0.883 0.004 315.411);
--chart-3: oklch(0.821 0.019 315.328);
--chart-4: oklch(0.907 0.003 315.415);
--chart-5: oklch(0.155 0.043 314.462);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.024 315.637);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.038 314.677);
--muted-foreground: oklch(0.706 0.044 315.168);
--popover: oklch(0.135 0.024 315.637);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.024 315.637);
--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.155 0.04 314.478);
--primary-foreground: oklch(0.677 0.156 314.329);
--secondary: oklch(0.231 0.016 315.14);
--secondary-foreground: oklch(0.769 0.027 315.278);
--accent: oklch(0.314 0.042 314.849);
--accent-foreground: oklch(0.84 0.03 315.276);
--destructive: oklch(0.601 0.228 30.083);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.155 0.04 314.478);
--chart-1: oklch(0.155 0.04 314.478);
--chart-2: oklch(0.231 0.016 315.14);
--chart-3: oklch(0.314 0.042 314.849);
--chart-4: oklch(0.261 0.019 315.12);
--chart-5: oklch(0.155 0.043 314.462);
}