Bassoon is a shadcn/ui theme built around a muted purple primary color (#aa6ea5) with muted green accents (#6eaa73). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#aa6ea5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #000000black |
| Foreground | #050104black | #fdfcfdwhite |
| Card | #fdf7fdsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7fdsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #aa6ea5rosybrown | #aa6ea5rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #6eaa73darkseagreen | #6eaa73darkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #eff5f0whitesmoke | #0a100ablack |
| Muted foreground | #4d664fdarkolivegreen | #99b29bdarkseagreen |
| Accent | #6eaa73darkseagreen | #6eaa73darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #921e01darkred | #e83002orangered |
| Destructive foreground | #fed2c7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aa6ea5rosybrown | #aa6ea5rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Bassoon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 328.12);
--foreground: oklch(0.083 0.028 329.93);
--muted: oklch(0.965 0.009 147.961);
--muted-foreground: oklch(0.482 0.047 146.976);
--popover: oklch(0.982 0.011 328.177);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.011 328.177);
--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.621 0.106 329.706);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.683 0.101 146.345);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.683 0.101 146.345);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.432 0.155 33.692);
--destructive-foreground: oklch(0.9 0.052 34.355);
--ring: oklch(0.621 0.106 329.706);
--chart-1: oklch(0.621 0.106 329.706);
--chart-2: oklch(0.683 0.101 146.345);
--chart-3: oklch(0.683 0.101 146.345);
--chart-4: oklch(0.704 0.094 146.529);
--chart-5: oklch(0.621 0.117 329.877);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 328.09);
--muted: oklch(0.163 0.014 147.073);
--muted-foreground: oklch(0.739 0.043 147.437);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.621 0.106 329.706);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.683 0.101 146.345);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.683 0.101 146.345);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.604 0.223 32.863);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.621 0.106 329.706);
--chart-1: oklch(0.621 0.106 329.706);
--chart-2: oklch(0.683 0.101 146.345);
--chart-3: oklch(0.683 0.101 146.345);
--chart-4: oklch(0.704 0.094 146.529);
--chart-5: oklch(0.621 0.117 329.877);
}