Blaring is a shadcn/ui theme built around a vivid deep blue primary color (#030d54) with vivid deep yellow accents (#544903). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid deep blue primary (#030d54) on a neutral background (#020308).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020308black |
| Foreground | #05060fblack | #fcfcfdwhite |
| Card | #f8f8fcghostwhite | #03050cblack |
| Card foreground | #04050bblack | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #03050cblack |
| Popover foreground | #04050bblack | #ffffffwhite |
| Primary | #030d54midnightblue | #030d54midnightblue |
| Primary foreground | #8d9cfbcornflowerblue | #8d9cfbcornflowerblue |
| Secondary | #544903darkolivegreen | #544903darkolivegreen |
| Secondary foreground | #f8dd2agold | #f8dd2agold |
| Muted | #f6f5efwhitesmoke | #100f09black |
| Muted foreground | #686550dimgray | #afac97darkgray |
| Accent | #544903darkolivegreen | #544903darkolivegreen |
| Accent foreground | #f8dd2agold | #f8dd2agold |
| Destructive | #682608maroon | #e45411chocolate |
| Destructive foreground | #f9c3aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030d54midnightblue | #030d54midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 6.57:1 | AA |
| Muted text | 5.38:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 7.14:1 | AAA |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 6.57:1 | AA |
| Muted text | 8.36:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Blaring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 279.302);
--foreground: oklch(0.129 0.021 274.357);
--muted: oklch(0.969 0.008 99.462);
--muted-foreground: oklch(0.502 0.032 100.168);
--popover: oklch(0.981 0.005 279.261);
--popover-foreground: oklch(0.117 0.018 273.996);
--card: oklch(0.981 0.005 279.261);
--card-foreground: oklch(0.117 0.018 273.996);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.223 0.125 265.429);
--primary-foreground: oklch(0.721 0.14 275.697);
--secondary: oklch(0.405 0.083 99.327);
--secondary-foreground: oklch(0.893 0.177 99.587);
--accent: oklch(0.405 0.083 99.327);
--accent-foreground: oklch(0.893 0.177 99.587);
--destructive: oklch(0.363 0.103 41.623);
--destructive-foreground: oklch(0.858 0.071 46.087);
--ring: oklch(0.223 0.125 265.429);
--chart-1: oklch(0.223 0.125 265.429);
--chart-2: oklch(0.405 0.083 99.327);
--chart-3: oklch(0.405 0.083 99.327);
--chart-4: oklch(0.453 0.093 99.1);
--chart-5: oklch(0.223 0.128 264.756);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.017 273.175);
--foreground: oklch(0.991 0.002 279.309);
--muted: oklch(0.169 0.012 100.269);
--muted-foreground: oklch(0.741 0.029 99.885);
--popover: oklch(0.115 0.02 273.236);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.02 273.236);
--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.223 0.125 265.429);
--primary-foreground: oklch(0.721 0.14 275.697);
--secondary: oklch(0.405 0.083 99.327);
--secondary-foreground: oklch(0.893 0.177 99.587);
--accent: oklch(0.405 0.083 99.327);
--accent-foreground: oklch(0.893 0.177 99.587);
--destructive: oklch(0.631 0.191 40.119);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.223 0.125 265.429);
--chart-1: oklch(0.223 0.125 265.429);
--chart-2: oklch(0.405 0.083 99.327);
--chart-3: oklch(0.405 0.083 99.327);
--chart-4: oklch(0.453 0.093 99.1);
--chart-5: oklch(0.223 0.128 264.756);
}