Blaring is a shadcn/ui theme built around a green primary color (#4aba62) with purple accents (#ba4aa2). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#4aba62) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #010402black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #f8fcf9mintcream | #010402black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #f8fcf9mintcream | #010402black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #4aba62mediumseagreen | #4aba62mediumseagreen |
| Primary foreground | #0f2915black | #0f2915black |
| Secondary | #ba4aa2mediumorchid | #ba4aa2mediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8e3e7gainsboro | #1c171bblack |
| Muted foreground | #645962dimgray | #a69ba4darkgray |
| Accent | #ba4aa2mediumorchid | #ba4aa2mediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #841406maroon | #f64028orangered |
| Destructive foreground | #fcc6bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4aba62mediumseagreen | #4aba62mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 4.57:1 | AA |
| Muted text | 5.27:1 | AA |
| Accent | 4.57:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 4.57:1 | AA |
| Muted text | 6.59:1 | AA |
| Accent | 4.57:1 | AA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Blaring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 152.529);
--foreground: oklch(0.097 0.015 151.891);
--muted: oklch(0.921 0.006 332.72);
--muted-foreground: oklch(0.477 0.02 333.255);
--popover: oklch(0.987 0.006 152.529);
--popover-foreground: oklch(0.097 0.015 151.891);
--card: oklch(0.987 0.006 152.529);
--card-foreground: oklch(0.097 0.015 151.891);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.704 0.162 147.962);
--primary-foreground: oklch(0.253 0.049 148.964);
--secondary: oklch(0.587 0.177 336.978);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.587 0.177 336.978);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.396 0.148 31.089);
--destructive-foreground: oklch(0.874 0.063 27.084);
--ring: oklch(0.704 0.162 147.962);
--chart-1: oklch(0.704 0.162 147.962);
--chart-2: oklch(0.587 0.177 336.978);
--chart-3: oklch(0.587 0.177 336.978);
--chart-4: oklch(0.609 0.167 336.556);
--chart-5: oklch(0.712 0.171 147.687);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.016 151.794);
--foreground: oklch(0.993 0.001 152.6);
--muted: oklch(0.213 0.009 333.247);
--muted-foreground: oklch(0.702 0.018 333.014);
--popover: oklch(0.098 0.016 151.794);
--popover-foreground: oklch(0.993 0.001 152.6);
--card: oklch(0.098 0.016 151.794);
--card-foreground: oklch(0.993 0.001 152.6);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.704 0.162 147.962);
--primary-foreground: oklch(0.253 0.049 148.964);
--secondary: oklch(0.587 0.177 336.978);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.587 0.177 336.978);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.642 0.222 31.012);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.162 147.962);
--chart-1: oklch(0.704 0.162 147.962);
--chart-2: oklch(0.587 0.177 336.978);
--chart-3: oklch(0.587 0.177 336.978);
--chart-4: oklch(0.609 0.167 336.556);
--chart-5: oklch(0.712 0.171 147.687);
}