Bass is a shadcn/ui theme built around a light teal primary color (#ecf8f3) with muted light teal accents (#cbd8d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#ecf8f3) on a teal-tinted background (#040b08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b08black |
| Foreground | #03110bblack | #f6f9f8whitesmoke |
| Card | #fcfcfcsnow | #060f0bblack |
| Card foreground | #030d08black | #f9fbfamintcream |
| Popover | #ffffffwhite | #040b08black |
| Popover foreground | #03110bblack | #f6f9f8whitesmoke |
| Primary | #ecf8f3honeydew | #ecf8f3honeydew |
| Primary foreground | #143929darkslategray | #143929darkslategray |
| Secondary | #dee3e1gainsboro | #141a17black |
| Secondary foreground | #424d48darkslategray | #a6bab2darkgray |
| Muted | #ebf4f0whitesmoke | #0b1410black |
| Muted foreground | #394741darkslategray | #b8c6c0silver |
| Accent | #cbd8d2lightgrey | #26362fdarkslategray |
| Accent foreground | #304039darkslategray | #bdd1c9silver |
| Destructive | #8f1305darkred | #f6250eorangered |
| Destructive foreground | #fdcec9pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecf8f3honeydew | #ecf8f3honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.28:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 11.75:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 8.71:1 | AAA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 11.75:1 | AAA |
| Secondary button | 8.64:1 | AAA |
| Muted text | 10.61:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Bass in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.025 166.973);
--muted: oklch(0.96 0.01 169.367);
--muted-foreground: oklch(0.383 0.021 168.051);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.162 0.025 166.973);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.144 0.021 169.291);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.97 0.015 169.232);
--primary-foreground: oklch(0.312 0.052 163.291);
--secondary: oklch(0.911 0.006 169.486);
--secondary-foreground: oklch(0.409 0.017 168.469);
--accent: oklch(0.869 0.016 169.152);
--accent-foreground: oklch(0.355 0.023 167.66);
--destructive: oklch(0.417 0.159 30.609);
--destructive-foreground: oklch(0.891 0.054 25.598);
--ring: oklch(0.97 0.015 169.232);
--chart-1: oklch(0.97 0.015 169.232);
--chart-2: oklch(0.911 0.006 169.486);
--chart-3: oklch(0.869 0.016 169.152);
--chart-4: oklch(0.933 0.004 169.536);
--chart-5: oklch(0.97 0.016 169.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.014 169.763);
--foreground: oklch(0.979 0.004 169.565);
--muted: oklch(0.179 0.015 167.05);
--muted-foreground: oklch(0.815 0.017 169.056);
--popover: oklch(0.14 0.014 169.763);
--popover-foreground: oklch(0.979 0.004 169.565);
--card: oklch(0.156 0.016 167.842);
--card-foreground: oklch(0.986 0.002 169.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.97 0.015 169.232);
--primary-foreground: oklch(0.312 0.052 163.291);
--secondary: oklch(0.21 0.01 168.221);
--secondary-foreground: oklch(0.771 0.026 168.698);
--accent: oklch(0.317 0.025 167.197);
--accent-foreground: oklch(0.843 0.025 168.818);
--destructive: oklch(0.623 0.24 30.428);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.97 0.015 169.232);
--chart-1: oklch(0.97 0.015 169.232);
--chart-2: oklch(0.21 0.01 168.221);
--chart-3: oklch(0.317 0.025 167.197);
--chart-4: oklch(0.245 0.013 168.069);
--chart-5: oklch(0.97 0.016 169.205);
}