Bay is a shadcn/ui theme built around a light purple primary color (#dbb3d2) with light pink accents (#dbb3bd). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#dbb3d2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #000000black | #fbf8fbsnow |
| Card | #fdf7fcsnow | #030303black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdf7fcsnow | #030303black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #dbb3d2thistle | #dbb3d2thistle |
| Primary foreground | #3e1d37darkslategray | #3e1d37darkslategray |
| Secondary | #d0b3dbthistle | #d0b3dbthistle |
| Secondary foreground | #361d3edarkslategray | #361d3edarkslategray |
| Muted | #e3dbe6gainsboro | #211924black |
| Muted foreground | #4f4752darkslategray | #b5adb8darkgray |
| Accent | #dbb3bdthistle | #dbb3bdthistle |
| Accent foreground | #3e1d26darkslategray | #3e1d26darkslategray |
| Destructive | #c44a0echocolate | #ee5b11orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dbb3d2thistle | #dbb3d2thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Bay in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 333.313);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.017 317.146);
--muted-foreground: oklch(0.41 0.02 317.077);
--popover: oklch(0.982 0.009 333.388);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.009 333.388);
--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.811 0.062 334.427);
--primary-foreground: oklch(0.289 0.064 336.545);
--secondary: oklch(0.804 0.065 317.005);
--secondary-foreground: oklch(0.28 0.066 316.521);
--accent: oklch(0.805 0.049 0.455);
--accent-foreground: oklch(0.282 0.053 3.996);
--destructive: oklch(0.567 0.167 41.344);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.811 0.062 334.427);
--chart-1: oklch(0.811 0.062 334.427);
--chart-2: oklch(0.804 0.065 317.005);
--chart-3: oklch(0.805 0.049 0.455);
--chart-4: oklch(0.831 0.055 317.037);
--chart-5: oklch(0.81 0.067 334.524);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.004 333.314);
--muted: oklch(0.229 0.024 316.945);
--muted-foreground: oklch(0.758 0.017 317.137);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.002 333.277);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.002 333.277);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.811 0.062 334.427);
--primary-foreground: oklch(0.289 0.064 336.545);
--secondary: oklch(0.804 0.065 317.005);
--secondary-foreground: oklch(0.28 0.066 316.521);
--accent: oklch(0.805 0.049 0.455);
--accent-foreground: oklch(0.282 0.053 3.996);
--destructive: oklch(0.656 0.196 41.018);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.811 0.062 334.427);
--chart-1: oklch(0.811 0.062 334.427);
--chart-2: oklch(0.804 0.065 317.005);
--chart-3: oklch(0.805 0.049 0.455);
--chart-4: oklch(0.831 0.055 317.037);
--chart-5: oklch(0.81 0.067 334.524);
}