Boring is a shadcn/ui theme built around a muted purple primary color (#857387) with muted teal accents (#738785). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the muted purple primary (#857387) on a neutral background (#070308).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #070308black |
| Foreground | #140416black | #f9f5faghostwhite |
| Card | #fbf3fcghostwhite | #0b040bblack |
| Card foreground | #100312black | #fbf8fcghostwhite |
| Popover | #fbf3fcghostwhite | #0b040bblack |
| Popover foreground | #100312black | #fbf8fcghostwhite |
| Primary | #857387gray | #857387gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #878573gray | #878573gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f5f4f0whitesmoke | #0f0f0ablack |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #738785slategray | #738785slategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #a32d05firebrick | #f96534tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #857387gray | #857387gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.74:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 4.38:1 | AA Large |
| Secondary button | 5.61:1 | AA |
| Muted text | 7.10:1 | AAA |
| Accent | 5.52:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 4.38:1 | AA Large |
| Secondary button | 5.61:1 | AA |
| Muted text | 8.56:1 | AAA |
| Accent | 5.52:1 | AA |
| Destructive | 6.94:1 | AA |
Paste this into your globals.css to use Boring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.01 322.148);
--foreground: oklch(0.147 0.048 323.339);
--muted: oklch(0.967 0.006 100.425);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.972 0.015 322.166);
--popover-foreground: oklch(0.134 0.043 323.608);
--card: oklch(0.972 0.015 322.166);
--card-foreground: oklch(0.134 0.043 323.608);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.579 0.037 322.323);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.612 0.026 100.942);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.607 0.023 187.975);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.477 0.161 35.817);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.579 0.037 322.323);
--chart-1: oklch(0.579 0.037 322.323);
--chart-2: oklch(0.612 0.026 100.942);
--chart-3: oklch(0.607 0.023 187.975);
--chart-4: oklch(0.637 0.025 100.904);
--chart-5: oklch(0.575 0.05 322.399);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.021 323.661);
--foreground: oklch(0.974 0.008 322.142);
--muted: oklch(0.166 0.009 101.101);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.124 0.024 323.5);
--popover-foreground: oklch(0.983 0.006 322.132);
--card: oklch(0.124 0.024 323.5);
--card-foreground: oklch(0.983 0.006 322.132);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.579 0.037 322.323);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.612 0.026 100.942);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.607 0.023 187.975);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.688 0.191 38.089);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.579 0.037 322.323);
--chart-1: oklch(0.579 0.037 322.323);
--chart-2: oklch(0.612 0.026 100.942);
--chart-3: oklch(0.607 0.023 187.975);
--chart-4: oklch(0.637 0.025 100.904);
--chart-5: oklch(0.575 0.05 322.399);
}