Bright is a shadcn/ui theme built around a vivid deep violet primary color (#160434) with vivid deep green accents (#043416). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#160434) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020104black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #160434black | #160434black |
| Primary foreground | #e3d5fclavender | #e3d5fclavender |
| Secondary | #341604black | #341604black |
| Secondary foreground | #f4a676lightsalmon | #f4a676lightsalmon |
| Muted | #f1ecealinen | #15110eblack |
| Muted foreground | #584d46darkolivegreen | #b9aea7darkgray |
| Accent | #043416darkgreen | #043416darkgreen |
| Accent foreground | #18ec69springgreen | #18ec69springgreen |
| Destructive | #9e3d05saddlebrown | #f86c1bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #160434black | #160434black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 13.77:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 8.78:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 13.77:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.64:1 | AAA |
| Accent | 8.78:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Bright in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.077 0.021 304.874);
--muted: oklch(0.947 0.006 54.418);
--muted-foreground: oklch(0.429 0.018 53.942);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.183 0.087 294.098);
--primary-foreground: oklch(0.896 0.055 302.728);
--secondary: oklch(0.242 0.056 50.449);
--secondary-foreground: oklch(0.791 0.112 52.336);
--accent: oklch(0.286 0.072 151.151);
--accent-foreground: oklch(0.825 0.23 148.801);
--destructive: oklch(0.489 0.142 43.171);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.183 0.087 294.098);
--chart-1: oklch(0.183 0.087 294.098);
--chart-2: oklch(0.242 0.056 50.449);
--chart-3: oklch(0.286 0.072 151.151);
--chart-4: oklch(0.279 0.067 48.94);
--chart-5: oklch(0.182 0.09 293.693);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 303.608);
--muted: oklch(0.182 0.009 53.831);
--muted-foreground: oklch(0.758 0.016 54.226);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.183 0.087 294.098);
--primary-foreground: oklch(0.896 0.055 302.728);
--secondary: oklch(0.242 0.056 50.449);
--secondary-foreground: oklch(0.791 0.112 52.336);
--accent: oklch(0.286 0.072 151.151);
--accent-foreground: oklch(0.825 0.23 148.801);
--destructive: oklch(0.694 0.19 44.679);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.183 0.087 294.098);
--chart-1: oklch(0.183 0.087 294.098);
--chart-2: oklch(0.242 0.056 50.449);
--chart-3: oklch(0.286 0.072 151.151);
--chart-4: oklch(0.279 0.067 48.94);
--chart-5: oklch(0.182 0.09 293.693);
}