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.

The preview takes its colours. Each one installs with a single command and changes colour only.

IndigoOceanLagoonForestEmberRosePlumGraphiteSand

Preview

theme-indigo

Enter to send

Signups

Illustrative

Signups per day
daySignups
Mon48
Tue52
Wed55
Thu49
Fri51
Sat38
Sun35

Signups: one value per day, from Mon to Sun.

and 3 others

BrandActivePendingInfoFailed

Indigo

The default theme: indigo on cool grey surfaces.

npx shadcn@latest add @ndeko/theme-indigo
Contrast of the colours this theme sets
PairLightDark
Brand text on the page5.87:1Passes6.38:1Passes
Brand text on a card6.17:1Passes6.00:1Passes
Text on the primary fill4.40:1Below 4.5:14.40:1Below 4.5:1
Focus ring on the page4.18:1Passes3.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.

Hue262°
Neutral family
Radius
  • Every pair passed at its first lightness.
Contrast of the colours this theme sets
PairLightDark
Brand text on the page7.49:1Passes5.45:1Passes
Brand text on a card7.89:1Passes5.11:1Passes
Text on the primary fill6.54:1Passes6.54:1Passes
Focus ring on the page6.22:1Passes3.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.

Stylesheet
: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.

Link to this theme
https://ui.ndekocode.dev/themes?hue=262&neutral=zinc&radius=0.625rem#generator