Super Violet Bass is a shadcn/ui theme built around a muted violet primary color (#796293) with neutral gray accents (#e6e6e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#796293) on a violet-tinted background (#0a0410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0410black |
| Foreground | #000000black | #faf8fcghostwhite |
| Card | #ffffffwhite | #0a0410black |
| Card foreground | #000000black | #faf8fcghostwhite |
| Popover | #ffffffwhite | #0a0410black |
| Popover foreground | #000000black | #faf8fcghostwhite |
| Primary | #796293slategray | #796293slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e6e6e6gainsboro | #303030darkslategray |
| Secondary foreground | #4d4d4ddarkslategray | #c9c9c9silver |
| Muted | #f1e4e4mistyrose | #1b0e0eblack |
| Muted foreground | #4f4545darkslategray | #bab0b0darkgray |
| Accent | #e6e6e6gainsboro | #303030darkslategray |
| Accent foreground | #4d4d4ddarkslategray | #c9c9c9silver |
| Destructive | #871208darkred | #e7200dred |
| Destructive foreground | #fccac5pink | #ffffffwhite |
| Border | #e8e7e9lavender | #1e1d20black |
| Input | #e8e7e9lavender | #1e1d20black |
| Ring | #796293slategray | #796293slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.28:1 | AA |
| Secondary button | 6.74:1 | AA |
| Muted text | 7.49:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 5.28:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 8.89:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Super Violet Bass in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.93 0.013 17.397);
--muted-foreground: oklch(0.4 0.014 17.758);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.929 0.003 307.069);
--input: oklch(0.929 0.003 307.069);
--primary: oklch(0.537 0.079 305.272);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.923 0 153.435);
--secondary-foreground: oklch(0.418 0 173.29);
--accent: oklch(0.923 0 153.435);
--accent-foreground: oklch(0.418 0 173.29);
--destructive: oklch(0.401 0.151 30.108);
--destructive-foreground: oklch(0.88 0.057 24.336);
--ring: oklch(0.537 0.079 305.272);
--chart-1: oklch(0.537 0.079 305.272);
--chart-2: oklch(0.923 0 153.435);
--chart-3: oklch(0.923 0 153.435);
--chart-4: oklch(0.947 0 180);
--chart-5: oklch(0.532 0.091 304.954);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.032 306.805);
--foreground: oklch(0.981 0.005 307.044);
--muted: oklch(0.182 0.021 19.302);
--muted-foreground: oklch(0.765 0.012 17.416);
--popover: oklch(0.127 0.032 306.805);
--popover-foreground: oklch(0.981 0.005 307.044);
--card: oklch(0.127 0.032 306.805);
--card-foreground: oklch(0.981 0.005 307.044);
--border: oklch(0.234 0.006 306.79);
--input: oklch(0.234 0.006 306.79);
--primary: oklch(0.537 0.079 305.272);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.311 0 180);
--secondary-foreground: oklch(0.837 0 171.254);
--accent: oklch(0.311 0 180);
--accent-foreground: oklch(0.837 0 171.254);
--destructive: oklch(0.593 0.23 30.081);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.537 0.079 305.272);
--chart-1: oklch(0.537 0.079 305.272);
--chart-2: oklch(0.311 0 180);
--chart-3: oklch(0.311 0 180);
--chart-4: oklch(0.341 0 158.199);
--chart-5: oklch(0.532 0.091 304.954);
}