Dainty – Nord for shadcn/ui

Dainty – Nord is a shadcn/ui theme built around a cyan primary color (#6ea5b4) with muted blue accents (#4f596d). The light mode uses a blue-tinted background (#2f3541). Dark mode keeps the cyan primary (#6ea5b4) on a blue-tinted background (#2f3541).

Color palette

TokenLightDark
Background
#2f3541darkslategray
#2f3541darkslategray
Foreground
#dedfe3gainsboro
#dedfe3gainsboro
Card
#2b303bdarkslategray
#2b303bdarkslategray
Card foreground
#ecedeewhitesmoke
#ecedeewhitesmoke
Popover
#292e38darkslategray
#292e38darkslategray
Popover foreground
#fafafasnow
#fafafasnow
Primary
#6ea5b4cadetblue
#6ea5b4cadetblue
Primary foreground
#000000black
#000000black
Secondary
#32484edarkslategray
#32484edarkslategray
Secondary foreground
#d0dee1gainsboro
#d0dee1gainsboro
Muted
#3a404adarkslategray
#3a404adarkslategray
Muted foreground
#babfc9silver
#babfc9silver
Accent
#4f596ddimgray
#4f596ddimgray
Accent foreground
#f6f7f9whitesmoke
#f6f7f9whitesmoke
Destructive
#ed5345tomato
#ed5345tomato
Destructive foreground
#000000black
#000000black
Border
#414349darkslategray
#414349darkslategray
Input
#484b51darkslategray
#484b51darkslategray
Ring
#6ea5b4cadetblue
#6ea5b4cadetblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background9.22:1AAA
Text on card11.24:1AAA
Primary button7.72:1AAA
Secondary button7.03:1AAA
Muted text5.67:1AA
Accent6.53:1AA
Destructive5.92:1AA
Dark mode
Text on background9.22:1AAA
Text on card11.24:1AAA
Primary button7.72:1AAA
Secondary button7.03:1AAA
Muted text5.67:1AA
Accent6.53:1AA
Destructive5.92:1AA

CSS variables

Paste this into your globals.css to use Dainty – Nord in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.329 0.023 264.192);
  --foreground: oklch(0.905 0.005 271.363);
  --muted: oklch(0.369 0.02 264.3);
  --muted-foreground: oklch(0.805 0.015 264.485);
  --popover: oklch(0.3 0.02 264.207);
  --popover-foreground: oklch(0.984 0.001 271.402);
  --card: oklch(0.31 0.021 264.201);
  --card-foreground: oklch(0.945 0.003 271.384);
  --border: oklch(0.384 0.01 264.45);
  --input: oklch(0.412 0.011 264.448);
  --primary: oklch(0.69 0.062 217.048);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.385 0.029 216.762);
  --secondary-foreground: oklch(0.89 0.015 216.094);
  --accent: oklch(0.464 0.035 264.146);
  --accent-foreground: oklch(0.976 0.002 264.544);
  --destructive: oklch(0.649 0.191 28.636);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.69 0.062 217.048);
  --chart-1: oklch(0.69 0.062 217.048);
  --chart-2: oklch(0.385 0.029 216.762);
  --chart-3: oklch(0.464 0.035 264.146);
  --chart-4: oklch(0.415 0.032 216.786);
  --chart-5: oklch(0.694 0.067 217.213);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.329 0.023 264.192);
  --foreground: oklch(0.905 0.005 271.363);
  --muted: oklch(0.369 0.02 264.3);
  --muted-foreground: oklch(0.805 0.015 264.485);
  --popover: oklch(0.3 0.02 264.207);
  --popover-foreground: oklch(0.984 0.001 271.402);
  --card: oklch(0.31 0.021 264.201);
  --card-foreground: oklch(0.945 0.003 271.384);
  --border: oklch(0.384 0.01 264.45);
  --input: oklch(0.412 0.011 264.448);
  --primary: oklch(0.69 0.062 217.048);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.385 0.029 216.762);
  --secondary-foreground: oklch(0.89 0.015 216.094);
  --accent: oklch(0.464 0.035 264.146);
  --accent-foreground: oklch(0.976 0.002 264.544);
  --destructive: oklch(0.649 0.191 28.636);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.69 0.062 217.048);
  --chart-1: oklch(0.69 0.062 217.048);
  --chart-2: oklch(0.385 0.029 216.762);
  --chart-3: oklch(0.464 0.035 264.146);
  --chart-4: oklch(0.415 0.032 216.786);
  --chart-5: oklch(0.694 0.067 217.213);
}