Bright is a shadcn/ui theme built around a purple primary color (#de82c5) with green accents (#82de9b). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the purple primary (#de82c5) on a neutral background (#040203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #040203black |
| Foreground | #040103black | #f9f6f8whitesmoke |
| Card | #fdf7fbsnow | #040203black |
| Card foreground | #040103black | #f9f6f8whitesmoke |
| Popover | #fdf7fbsnow | #040203black |
| Popover foreground | #040103black | #f9f6f8whitesmoke |
| Primary | #de82c5orchid | #de82c5orchid |
| Primary foreground | #240a1dblack | #240a1dblack |
| Secondary | #82de9blightgreen | #82de9blightgreen |
| Secondary foreground | #0a2411black | #0a2411black |
| Muted | #e3ede6gainsboro | #121c15black |
| Muted foreground | #5e6e62dimgray | #91a195darkseagreen |
| Accent | #82de9blightgreen | #82de9blightgreen |
| Accent foreground | #0a2411black | #0a2411black |
| Destructive | #5d0909maroon | #eb2828crimson |
| Destructive foreground | #f6a2a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #de82c5orchid | #de82c5orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 4.51:1 | AA |
| Accent | 10.09:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 10.09:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Bright in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.009 334.696);
--foreground: oklch(0.085 0.02 335.25);
--muted: oklch(0.937 0.015 154.251);
--muted-foreground: oklch(0.521 0.027 153.575);
--popover: oklch(0.981 0.009 334.696);
--popover-foreground: oklch(0.085 0.02 335.25);
--card: oklch(0.981 0.009 334.696);
--card-foreground: oklch(0.085 0.02 335.25);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.726 0.14 337.639);
--primary-foreground: oklch(0.196 0.054 339.046);
--secondary: oklch(0.825 0.13 151.27);
--secondary-foreground: oklch(0.234 0.049 149.754);
--accent: oklch(0.825 0.13 151.27);
--accent-foreground: oklch(0.234 0.049 149.754);
--destructive: oklch(0.308 0.116 27.523);
--destructive-foreground: oklch(0.795 0.101 19.55);
--ring: oklch(0.726 0.14 337.639);
--chart-1: oklch(0.726 0.14 337.639);
--chart-2: oklch(0.825 0.13 151.27);
--chart-3: oklch(0.825 0.13 151.27);
--chart-4: oklch(0.841 0.118 151.692);
--chart-5: oklch(0.726 0.147 337.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.013 335.003);
--foreground: oklch(0.976 0.004 334.606);
--muted: oklch(0.214 0.021 152.675);
--muted-foreground: oklch(0.693 0.025 153.867);
--popover: oklch(0.087 0.013 335.003);
--popover-foreground: oklch(0.976 0.004 334.606);
--card: oklch(0.087 0.013 335.003);
--card-foreground: oklch(0.976 0.004 334.606);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.726 0.14 337.639);
--primary-foreground: oklch(0.196 0.054 339.046);
--secondary: oklch(0.825 0.13 151.27);
--secondary-foreground: oklch(0.234 0.049 149.754);
--accent: oklch(0.825 0.13 151.27);
--accent-foreground: oklch(0.234 0.049 149.754);
--destructive: oklch(0.606 0.227 27.396);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.726 0.14 337.639);
--chart-1: oklch(0.726 0.14 337.639);
--chart-2: oklch(0.825 0.13 151.27);
--chart-3: oklch(0.825 0.13 151.27);
--chart-4: oklch(0.841 0.118 151.692);
--chart-5: oklch(0.726 0.147 337.791);
}