Bright is a shadcn/ui theme built around a blue primary color (#1a5ca8) with orange accents (#a8661a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#1a5ca8) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #05070ablack |
| Foreground | #020a12black | #ffffffwhite |
| Card | #f8fafcghostwhite | #070a0eblack |
| Card foreground | #02070eblack | #ffffffwhite |
| Popover | #f8fafcghostwhite | #070a0eblack |
| Popover foreground | #02070eblack | #ffffffwhite |
| Primary | #1a5ca8steelblue | #1a5ca8steelblue |
| Primary foreground | #f6fafeghostwhite | #f6fafeghostwhite |
| Secondary | #a8661asienna | #a8661asienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4f2f1whitesmoke | #0e0d0bblack |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #a8661asienna | #a8661asienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8a1e00darkred | #ff5b2etomato |
| Destructive foreground | #ffcbbdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a5ca8steelblue | #1a5ca8steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 4.60:1 | AA |
| Muted text | 6.00:1 | AA |
| Accent | 4.60:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 20.12:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 4.60:1 | AA |
| Muted text | 7.70:1 | AAA |
| Accent | 4.60:1 | AA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use Bright in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 251.466);
--foreground: oklch(0.138 0.024 244.786);
--muted: oklch(0.963 0.002 71.429);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.984 0.004 251.481);
--popover-foreground: oklch(0.125 0.02 241.421);
--card: oklch(0.984 0.004 251.481);
--card-foreground: oklch(0.125 0.02 241.421);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.477 0.137 254.959);
--primary-foreground: oklch(0.983 0.006 251.504);
--secondary: oklch(0.57 0.119 63.389);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.57 0.119 63.389);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.415 0.147 34.482);
--destructive-foreground: oklch(0.884 0.063 35.977);
--ring: oklch(0.477 0.137 254.959);
--chart-1: oklch(0.477 0.137 254.959);
--chart-2: oklch(0.57 0.119 63.389);
--chart-3: oklch(0.57 0.119 63.389);
--chart-4: oklch(0.602 0.127 63.246);
--chart-5: oklch(0.478 0.142 255.237);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.008 246.763);
--foreground: oklch(1 0 180);
--muted: oklch(0.159 0.004 71.228);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.143 0.01 249.165);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.01 249.165);
--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.477 0.137 254.959);
--primary-foreground: oklch(0.983 0.006 251.504);
--secondary: oklch(0.57 0.119 63.389);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.57 0.119 63.389);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.685 0.207 35.76);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.477 0.137 254.959);
--chart-1: oklch(0.477 0.137 254.959);
--chart-2: oklch(0.57 0.119 63.389);
--chart-3: oklch(0.57 0.119 63.389);
--chart-4: oklch(0.602 0.127 63.246);
--chart-5: oklch(0.478 0.142 255.237);
}