Extent is a shadcn/ui theme built around a near-black primary color (#0a0605) with near-black accents (#06050a). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0605) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040201black |
| Foreground | #160803black | #ffffffwhite |
| Card | #ffffffwhite | #040201black |
| Card foreground | #160803black | #ffffffwhite |
| Popover | #ffffffwhite | #040201black |
| Popover foreground | #160803black | #ffffffwhite |
| Primary | #0a0605black | #0a0605black |
| Primary foreground | #be9183rosybrown | #be9183rosybrown |
| Secondary | #050a06black | #050a06black |
| Secondary foreground | #83be91darkseagreen | #83be91darkseagreen |
| Muted | #eaf5edhoneydew | #0a150cblack |
| Muted foreground | #4f6955dimgray | #96b09cdarkseagreen |
| Accent | #06050ablack | #06050ablack |
| Accent foreground | #9183bemediumpurple | #9183bemediumpurple |
| Destructive | #a8220bfirebrick | #e62f0forangered |
| Destructive foreground | #fdeae7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0605black | #0a0605black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 9.24:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 5.98:1 | AA |
| Destructive | 6.24:1 | AA |
| Text on background | 20.71:1 | AAA |
| Text on card | 20.71:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 9.24:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 5.98:1 | AA |
| Destructive | 4.39:1 | AA Large |
Paste this into your globals.css to use Extent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.03 44.084);
--muted: oklch(0.96 0.016 152.964);
--muted-foreground: oklch(0.493 0.044 151.687);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.03 44.084);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.03 44.084);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.13 0.008 41.253);
--primary-foreground: oklch(0.696 0.058 37.6);
--secondary: oklch(0.137 0.013 152.832);
--secondary-foreground: oklch(0.749 0.089 151.101);
--accent: oklch(0.122 0.013 296.822);
--accent-foreground: oklch(0.646 0.087 294.543);
--destructive: oklch(0.476 0.172 32.013);
--destructive-foreground: oklch(0.953 0.021 29.559);
--ring: oklch(0.13 0.008 41.253);
--chart-1: oklch(0.13 0.008 41.253);
--chart-2: oklch(0.137 0.013 152.832);
--chart-3: oklch(0.122 0.013 296.822);
--chart-4: oklch(0.179 0.021 151.173);
--chart-5: oklch(0.13 0.009 41.648);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.008 42.759);
--foreground: oklch(1 0 180);
--muted: oklch(0.181 0.024 150.841);
--muted-foreground: oklch(0.732 0.04 152.314);
--popover: oklch(0.089 0.008 42.759);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.089 0.008 42.759);
--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.13 0.008 41.253);
--primary-foreground: oklch(0.696 0.058 37.6);
--secondary: oklch(0.137 0.013 152.832);
--secondary-foreground: oklch(0.749 0.089 151.101);
--accent: oklch(0.122 0.013 296.822);
--accent-foreground: oklch(0.646 0.087 294.543);
--destructive: oklch(0.6 0.221 31.854);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.13 0.008 41.253);
--chart-1: oklch(0.13 0.008 41.253);
--chart-2: oklch(0.137 0.013 152.832);
--chart-3: oklch(0.122 0.013 296.822);
--chart-4: oklch(0.179 0.021 151.173);
--chart-5: oklch(0.13 0.009 41.648);
}