9 themes
Themes
Recolour every ndekoui piece at once. A theme sets the primary colour, brand text, the focus ring and the chart colours for light and dark, and this page measures each pair against WCAG AA.
Pick a theme
The preview takes its colours. Each one installs with a single command and changes colour only.
Preview
theme-indigo
Signups
Illustrative| day | Signups |
|---|---|
| Mon | 48 |
| Tue | 52 |
| Wed | 55 |
| Thu | 49 |
| Fri | 51 |
| Sat | 38 |
| Sun | 35 |
Signups: one value per day, from Mon to Sun.
and 3 others
Indigo
The default theme: indigo on cool grey surfaces.
npx shadcn@latest add @ndeko/theme-indigo| Pair | Light | Dark |
|---|---|---|
| Brand text on the page | 5.87:1Passes | 6.38:1Passes |
| Brand text on a card | 6.17:1Passes | 6.00:1Passes |
| Text on the primary fill | 4.40:1Below 4.5:1 | 4.40:1Below 4.5:1 |
| Focus ring on the page | 4.18:1Passes | 3.28:1Passes |
AA asks 4.5:1 for text and 3:1 for the focus ring. Body, muted and status text on the page and cards are measured too: 24 of 26 pairs pass.
:root {
--primary: hsl(239 84% 67%);
--primary-foreground: hsl(0 0% 100%);
--primary-ink: hsl(243 75% 59%);
--ring: hsl(239 84% 67%);
--sidebar-primary: hsl(240 6% 10%);
--sidebar-primary-foreground: hsl(0 0% 98%);
--sidebar-ring: hsl(239 84% 67%);
--chart-1: hsl(239 84% 67%);
--chart-2: hsl(234 89% 74%);
--chart-3: hsl(230 94% 82%);
--chart-4: hsl(228 96% 89%);
--chart-5: hsl(240 5% 65%);
}
.dark {
--primary: hsl(239 84% 67%);
--primary-foreground: hsl(0 0% 100%);
--primary-ink: hsl(234 89% 74%);
--ring: hsl(0 0% 40%);
--sidebar-primary: hsl(239 84% 67%);
--sidebar-primary-foreground: hsl(0 0% 100%);
--sidebar-ring: hsl(0 0% 40%);
}
Make your own
Choose a hue, a neutral family and a radius. A lightness moves only as far as a pair needs to stay readable, and the result is a stylesheet to paste or a link to share.
- Every pair passed at its first lightness.
| Pair | Light | Dark |
|---|---|---|
| Brand text on the page | 7.49:1Passes | 5.45:1Passes |
| Brand text on a card | 7.89:1Passes | 5.11:1Passes |
| Text on the primary fill | 6.54:1Passes | 6.54:1Passes |
| Focus ring on the page | 6.22:1Passes | 3.28:1Passes |
AA asks 4.5:1 for text and 3:1 for the focus ring. Body, muted and status text on the page and cards are measured too: 26 of 26 pairs pass.
:root {
--radius: 0.625rem;
--background: hsl(240 11% 98%);
--foreground: hsl(240 6% 10%);
--card: hsl(0 0% 100%);
--card-foreground: hsl(240 6% 10%);
--popover: hsl(0 0% 100%);
--popover-foreground: hsl(240 6% 10%);
--primary: hsl(262 82% 54%);
--primary-foreground: hsl(0 0% 100%);
--primary-ink: hsl(262 80% 48%);
--secondary: hsl(240 5% 95%);
--secondary-foreground: hsl(240 6% 10%);
--muted: hsl(240 5% 95%);
--muted-foreground: hsl(240 4% 42%);
--accent: hsl(240 5% 95%);
--accent-foreground: hsl(240 6% 10%);
--border: hsl(240 3% 89%);
--input: hsl(240 3% 89%);
--ring: hsl(262 82% 54%);
--sidebar: hsl(240 3% 94%);
--sidebar-foreground: hsl(240 6% 10%);
--sidebar-primary: hsl(240 6% 10%);
--sidebar-primary-foreground: hsl(0 0% 98%);
--sidebar-accent: hsl(240 3% 88%);
--sidebar-accent-foreground: hsl(240 6% 10%);
--sidebar-border: hsl(240 3% 89%);
--sidebar-ring: hsl(262 82% 54%);
--chart-1: hsl(262 82% 54%);
--chart-2: hsl(262 82% 62%);
--chart-3: hsl(262 82% 71%);
--chart-4: hsl(262 82% 81%);
--chart-5: hsl(240 5% 65%);
}
.dark {
--background: hsl(240 5% 7%);
--foreground: hsl(240 5% 90%);
--card: hsl(240 5% 10%);
--card-foreground: hsl(240 5% 90%);
--popover: hsl(240 5% 11%);
--popover-foreground: hsl(240 5% 90%);
--primary: hsl(262 82% 54%);
--primary-foreground: hsl(0 0% 100%);
--primary-ink: hsl(262 90% 70%);
--secondary: hsl(240 4% 13%);
--secondary-foreground: hsl(240 5% 90%);
--muted: hsl(240 4% 13%);
--muted-foreground: hsl(240 5% 62%);
--accent: hsl(240 4% 13%);
--accent-foreground: hsl(0 0% 100%);
--border: hsl(240 4% 16%);
--input: hsl(240 4% 18%);
--ring: hsl(240 6% 42%);
--sidebar: hsl(240 6% 4%);
--sidebar-foreground: hsl(240 5% 90%);
--sidebar-primary: hsl(262 82% 54%);
--sidebar-primary-foreground: hsl(0 0% 100%);
--sidebar-accent: hsl(240 4% 14%);
--sidebar-accent-foreground: hsl(0 0% 100%);
--sidebar-border: hsl(240 4% 16%);
--sidebar-ring: hsl(240 6% 42%);
--chart-1: hsl(262 82% 60%);
--chart-2: hsl(262 82% 67%);
--chart-3: hsl(262 82% 75%);
--chart-4: hsl(262 82% 83%);
}
Paste it after the ndekoui theme in your stylesheet.
https://ui.ndekocode.dev/themes?hue=262&neutral=zinc&radius=0.625rem#generator