Basement is a shadcn/ui theme built around a violet primary color (#793cc3) with purple accents (#bc3cc3). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#793cc3) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #050208black |
| Foreground | #0a050fblack | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #050208black |
| Card foreground | #0a050fblack | #fcfcfdwhite |
| Popover | #faf8fcghostwhite | #050208black |
| Popover foreground | #0a050fblack | #fcfcfdwhite |
| Primary | #793cc3darkorchid | #793cc3darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3c43c3royalblue | #3c43c3royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dedfe8gainsboro | #171821black |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #bc3cc3mediumorchid | #bc3cc3mediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ab2f0dfirebrick | #ee4517orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #793cc3darkorchid | #793cc3darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 7.79:1 | AAA |
| Accent | 4.58:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 9.61:1 | AAA |
| Accent | 4.58:1 | AA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Basement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 306.363);
--foreground: oklch(0.13 0.026 306.078);
--muted: oklch(0.905 0.012 283.734);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.982 0.005 306.363);
--popover-foreground: oklch(0.13 0.026 306.078);
--card: oklch(0.982 0.005 306.363);
--card-foreground: oklch(0.13 0.026 306.078);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.506 0.199 299.813);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.462 0.196 273.437);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.593 0.222 325.796);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.493 0.165 34.831);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.506 0.199 299.813);
--chart-1: oklch(0.506 0.199 299.813);
--chart-2: oklch(0.462 0.196 273.437);
--chart-3: oklch(0.593 0.222 325.796);
--chart-4: oklch(0.492 0.184 275.023);
--chart-5: oklch(0.504 0.208 299.264);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.022 307.815);
--foreground: oklch(0.991 0.002 306.403);
--muted: oklch(0.212 0.018 282.398);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.101 0.022 307.815);
--popover-foreground: oklch(0.991 0.002 306.403);
--card: oklch(0.101 0.022 307.815);
--card-foreground: oklch(0.991 0.002 306.403);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.506 0.199 299.813);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.462 0.196 273.437);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.593 0.222 325.796);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.212 34.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.506 0.199 299.813);
--chart-1: oklch(0.506 0.199 299.813);
--chart-2: oklch(0.462 0.196 273.437);
--chart-3: oklch(0.593 0.222 325.796);
--chart-4: oklch(0.492 0.184 275.023);
--chart-5: oklch(0.504 0.208 299.264);
}