Bulb is a shadcn/ui theme built around a neutral gray primary color (#625e64) with muted light violet accents (#e1d6e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#625e64) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #0a020dblack | #f8f7f8whitesmoke |
| Card | #ffffffwhite | #060307black |
| Card foreground | #0a020dblack | #f8f7f8whitesmoke |
| Popover | #ffffffwhite | #060307black |
| Popover foreground | #0a020dblack | #f8f7f8whitesmoke |
| Primary | #625e64dimgray | #625e64dimgray |
| Primary foreground | #fafafasnow | #fafafasnow |
| Secondary | #ece7eelavender | #261d2adarkslategray |
| Secondary foreground | #57455fdimgray | #c2b1c9silver |
| Muted | #dad6dbgainsboro | #272429darkslategray |
| Muted foreground | #646264dimgray | #9c9b9ddarkgray |
| Accent | #e1d6e6gainsboro | #412d49darkslategray |
| Accent foreground | #4c3455darkslategray | #d8c9dethistle |
| Destructive | #783107saddlebrown | #f37e39coral |
| Destructive foreground | #fbd0b7peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #625e64dimgray | #625e64dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 4.22:1 | AA Large |
| Accent | 7.75:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 7.85:1 | AAA |
Paste this into your globals.css to use Bulb in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.034 318.5);
--muted: oklch(0.881 0.007 316.585);
--muted-foreground: oklch(0.5 0.004 316.588);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.034 318.5);
--card: oklch(1 0 180);
--card-foreground: oklch(0.117 0.034 318.5);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.488 0.011 316.546);
--primary-foreground: oklch(0.985 0 316.608);
--secondary: oklch(0.934 0.01 316.577);
--secondary-foreground: oklch(0.419 0.049 316.262);
--accent: oklch(0.89 0.025 316.527);
--accent-foreground: oklch(0.367 0.063 316.071);
--destructive: oklch(0.407 0.112 44.688);
--destructive-foreground: oklch(0.887 0.059 51.731);
--ring: oklch(0.488 0.011 316.546);
--chart-1: oklch(0.488 0.011 316.546);
--chart-2: oklch(0.934 0.01 316.577);
--chart-3: oklch(0.89 0.025 316.527);
--chart-4: oklch(0.959 0.006 316.59);
--chart-5: oklch(0.483 0.021 316.482);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.018 318.056);
--foreground: oklch(0.976 0.003 316.601);
--muted: oklch(0.266 0.01 316.503);
--muted-foreground: oklch(0.69 0.003 316.595);
--popover: oklch(0.108 0.018 318.056);
--popover-foreground: oklch(0.976 0.003 316.601);
--card: oklch(0.108 0.018 318.056);
--card-foreground: oklch(0.976 0.003 316.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.488 0.011 316.546);
--primary-foreground: oklch(0.985 0 316.608);
--secondary: oklch(0.249 0.027 316.283);
--secondary-foreground: oklch(0.782 0.038 316.466);
--accent: oklch(0.331 0.055 316.09);
--accent-foreground: oklch(0.855 0.033 316.497);
--destructive: oklch(0.715 0.165 47.666);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.488 0.011 316.546);
--chart-1: oklch(0.488 0.011 316.546);
--chart-2: oklch(0.249 0.027 316.283);
--chart-3: oklch(0.331 0.055 316.09);
--chart-4: oklch(0.278 0.032 316.264);
--chart-5: oklch(0.483 0.021 316.482);
}