Belated is a shadcn/ui theme built around a neutral gray primary color (#373e3d) with neutral gray accents (#3e3739). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the neutral gray primary (#373e3d) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #030706black |
| Foreground | #000000black | #f5faf9mintcream |
| Card | #f3fcfamintcream | #050a09black |
| Card foreground | #000000black | #f8fcfbmintcream |
| Popover | #f3fcfamintcream | #050a09black |
| Popover foreground | #000000black | #f8fcfbmintcream |
| Primary | #373e3ddarkslategray | #373e3ddarkslategray |
| Primary foreground | #d1d6d5lightgrey | #d1d6d5lightgrey |
| Secondary | #3e3739darkslategray | #3e3739darkslategray |
| Secondary foreground | #d6d1d2lightgrey | #d6d1d2lightgrey |
| Muted | #e6e0e1gainsboro | #1f191ablack |
| Muted foreground | #463e40darkslategray | #c1b9basilver |
| Accent | #3e3739darkslategray | #3e3739darkslategray |
| Accent foreground | #d6d1d2lightgrey | #d6d1d2lightgrey |
| Destructive | #d34c0dchocolate | #e1510echocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #373e3ddarkslategray | #373e3ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.36:1 | AA Large |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 9.00:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Belated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 181.888);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.007 2.276);
--muted-foreground: oklch(0.374 0.011 2.888);
--popover: oklch(0.983 0.01 181.797);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.01 181.797);
--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.357 0.01 181.292);
--primary-foreground: oklch(0.873 0.006 181.88);
--secondary: oklch(0.345 0.01 2.869);
--secondary-foreground: oklch(0.865 0.006 2.255);
--accent: oklch(0.345 0.01 2.869);
--accent-foreground: oklch(0.865 0.006 2.255);
--destructive: oklch(0.595 0.181 39.923);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.357 0.01 181.292);
--chart-1: oklch(0.357 0.01 181.292);
--chart-2: oklch(0.345 0.01 2.869);
--chart-3: oklch(0.345 0.01 2.869);
--chart-4: oklch(0.374 0.011 2.888);
--chart-5: oklch(0.361 0.014 180.913);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.008 182.018);
--foreground: oklch(0.981 0.006 181.905);
--muted: oklch(0.221 0.01 3.295);
--muted-foreground: oklch(0.792 0.009 2.388);
--popover: oklch(0.138 0.01 182.018);
--popover-foreground: oklch(0.987 0.004 181.96);
--card: oklch(0.138 0.01 182.018);
--card-foreground: oklch(0.987 0.004 181.96);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.357 0.01 181.292);
--primary-foreground: oklch(0.873 0.006 181.88);
--secondary: oklch(0.345 0.01 2.869);
--secondary-foreground: oklch(0.865 0.006 2.255);
--accent: oklch(0.345 0.01 2.869);
--accent-foreground: oklch(0.865 0.006 2.255);
--destructive: oklch(0.624 0.191 39.82);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.357 0.01 181.292);
--chart-1: oklch(0.357 0.01 181.292);
--chart-2: oklch(0.345 0.01 2.869);
--chart-3: oklch(0.345 0.01 2.869);
--chart-4: oklch(0.374 0.011 2.888);
--chart-5: oklch(0.361 0.014 180.913);
}