Bassoon is a shadcn/ui theme built around a deep purple primary color (#230b1c) with deep red accents (#230b10). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the deep purple primary (#230b1c) on a purple-tinted background (#0f050c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #0f050cblack |
| Foreground | #080206black | #ffffffwhite |
| Card | #fdf7fbsnow | #0f050cblack |
| Card foreground | #080206black | #ffffffwhite |
| Popover | #fdf7fbsnow | #0f050cblack |
| Popover foreground | #080206black | #ffffffwhite |
| Primary | #230b1cblack | #230b1cblack |
| Primary foreground | #da86c1orchid | #da86c1orchid |
| Secondary | #1e0b23black | #1e0b23black |
| Secondary foreground | #c986daorchid | #c986daorchid |
| Muted | #ece8eelavender | #161117black |
| Muted foreground | #4a424cdarkslategray | #bbb3bdsilver |
| Accent | #230b10black | #230b10black |
| Accent foreground | #da8697palevioletred | #da8697palevioletred |
| Destructive | #c51d07firebrick | #f73f26orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #230b1cblack | #230b1cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 5.91:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 9.11:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Bassoon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 336.011);
--foreground: oklch(0.107 0.024 336.428);
--muted: oklch(0.935 0.01 319.447);
--muted-foreground: oklch(0.392 0.02 319.458);
--popover: oklch(0.982 0.007 336.011);
--popover-foreground: oklch(0.107 0.024 336.428);
--card: oklch(0.982 0.007 336.011);
--card-foreground: oklch(0.107 0.024 336.428);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.196 0.049 340.294);
--primary-foreground: oklch(0.726 0.126 338.895);
--secondary: oklch(0.192 0.054 319.291);
--secondary-foreground: oklch(0.718 0.138 319.431);
--accent: oklch(0.19 0.042 9.403);
--accent-foreground: oklch(0.712 0.104 7.097);
--destructive: oklch(0.527 0.202 30.805);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.196 0.049 340.294);
--chart-1: oklch(0.196 0.049 340.294);
--chart-2: oklch(0.192 0.054 319.291);
--chart-3: oklch(0.19 0.042 9.403);
--chart-4: oklch(0.223 0.068 319.218);
--chart-5: oklch(0.196 0.052 340.529);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.025 337.816);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.014 319.463);
--muted-foreground: oklch(0.775 0.017 319.45);
--popover: oklch(0.138 0.025 337.816);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.025 337.816);
--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.196 0.049 340.294);
--primary-foreground: oklch(0.726 0.126 338.895);
--secondary: oklch(0.192 0.054 319.291);
--secondary-foreground: oklch(0.718 0.138 319.431);
--accent: oklch(0.19 0.042 9.403);
--accent-foreground: oklch(0.712 0.104 7.097);
--destructive: oklch(0.643 0.223 31.022);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.196 0.049 340.294);
--chart-1: oklch(0.196 0.049 340.294);
--chart-2: oklch(0.192 0.054 319.291);
--chart-3: oklch(0.19 0.042 9.403);
--chart-4: oklch(0.223 0.068 319.218);
--chart-5: oklch(0.196 0.052 340.529);
}