Closure is a shadcn/ui theme built around a yellow primary color (#7c632d) with blue accents (#2d467c). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#7c632d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #000000black |
| Foreground | #040301black | #faf8f5whitesmoke |
| Card | #fdfbf7snow | #030303black |
| Card foreground | #000000black | #fcfbf8snow |
| Popover | #fdfbf7snow | #030303black |
| Popover foreground | #000000black | #fcfbf8snow |
| Primary | #7c632dsienna | #7c632dsienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2d467cdarkslateblue | #2d467cdarkslateblue |
| Secondary foreground | #e5eaf6lavender | #e5eaf6lavender |
| Muted | #e1e2e5gainsboro | #1a1b1eblack |
| Muted foreground | #3e3f42darkslategray | #bdbfc1silver |
| Accent | #2d467cdarkslateblue | #2d467cdarkslateblue |
| Accent foreground | #e5eaf6lavender | #e5eaf6lavender |
| Destructive | #e63d00orangered | #f54100orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c632dsienna | #7c632dsienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 4.18:1 | AA Large |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 9.32:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Closure in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 86.017);
--foreground: oklch(0.098 0.011 91.414);
--muted: oklch(0.913 0.004 265.985);
--muted-foreground: oklch(0.368 0.005 265.945);
--popover: oklch(0.988 0.005 86.026);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.005 86.026);
--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.512 0.079 84.39);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.402 0.096 263.859);
--secondary-foreground: oklch(0.937 0.017 265.92);
--accent: oklch(0.402 0.096 263.859);
--accent-foreground: oklch(0.937 0.017 265.92);
--destructive: oklch(0.61 0.212 35.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.512 0.079 84.39);
--chart-1: oklch(0.512 0.079 84.39);
--chart-2: oklch(0.402 0.096 263.859);
--chart-3: oklch(0.402 0.096 263.859);
--chart-4: oklch(0.426 0.104 263.829);
--chart-5: oklch(0.516 0.083 84.099);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.005 86.028);
--muted: oklch(0.223 0.006 265.856);
--muted-foreground: oklch(0.803 0.004 265.985);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.987 0.004 86.021);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.004 86.021);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.512 0.079 84.39);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.402 0.096 263.859);
--secondary-foreground: oklch(0.937 0.017 265.92);
--accent: oklch(0.402 0.096 263.859);
--accent-foreground: oklch(0.937 0.017 265.92);
--destructive: oklch(0.64 0.223 35.294);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.512 0.079 84.39);
--chart-1: oklch(0.512 0.079 84.39);
--chart-2: oklch(0.402 0.096 263.859);
--chart-3: oklch(0.402 0.096 263.859);
--chart-4: oklch(0.426 0.104 263.829);
--chart-5: oklch(0.516 0.083 84.099);
}