Dainty – Snazzy Theme for shadcn/ui

Dainty – Snazzy Theme is a shadcn/ui theme built around a cyan primary color (#2aa9df) with muted blue accents (#484b61). The light mode uses a blue-tinted background (#272935). Dark mode keeps the cyan primary (#2aa9df) on a blue-tinted background (#272935).

Color palette

TokenLightDark
Background
#272935darkslategray
#272935darkslategray
Foreground
#dfe0e2gainsboro
#dfe0e2gainsboro
Card
#23252fdarkslategray
#23252fdarkslategray
Card foreground
#ecedeewhitesmoke
#ecedeewhitesmoke
Popover
#21222cdarkslategray
#21222cdarkslategray
Popover foreground
#fafafasnow
#fafafasnow
Primary
#2aa9dfdodgerblue
#2aa9dfdodgerblue
Primary foreground
#000000black
#000000black
Secondary
#2d4753darkslategray
#2d4753darkslategray
Secondary foreground
#cddde4gainsboro
#cddde4gainsboro
Muted
#31333fdarkslategray
#31333fdarkslategray
Muted foreground
#afb2c0silver
#afb2c0silver
Accent
#484b61darkslategray
#484b61darkslategray
Accent foreground
#eaebf0lavender
#eaebf0lavender
Destructive
#ed4331tomato
#ed4331tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#38393edarkslategray
#38393edarkslategray
Input
#3f4046darkslategray
#3f4046darkslategray
Ring
#2aa9dfdodgerblue
#2aa9dfdodgerblue

Contrast

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

Light mode
Text on background10.92:1AAA
Text on card13.07:1AAA
Primary button7.82:1AAA
Secondary button7.01:1AAA
Muted text5.90:1AA
Accent7.17:1AAA
Destructive3.84:1AA Large
Dark mode
Text on background10.92:1AAA
Text on card13.07:1AAA
Primary button7.82:1AAA
Secondary button7.01:1AAA
Muted text5.90:1AA
Accent7.17:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.284 0.022 277.093);
  --foreground: oklch(0.906 0.003 264.541);
  --muted: oklch(0.325 0.02 277.326);
  --muted-foreground: oklch(0.765 0.021 277.909);
  --popover: oklch(0.256 0.019 277.158);
  --popover-foreground: oklch(0.985 0 264.549);
  --card: oklch(0.265 0.02 277.135);
  --card-foreground: oklch(0.946 0.002 264.546);
  --border: oklch(0.344 0.009 277.939);
  --input: oklch(0.373 0.01 277.93);
  --primary: oklch(0.692 0.131 232.523);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.383 0.038 226.861);
  --secondary-foreground: oklch(0.889 0.02 225.25);
  --accent: oklch(0.419 0.036 276.917);
  --accent-foreground: oklch(0.942 0.006 278.223);
  --destructive: oklch(0.631 0.209 30.166);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.131 232.523);
  --chart-1: oklch(0.692 0.131 232.523);
  --chart-2: oklch(0.383 0.038 226.861);
  --chart-3: oklch(0.419 0.036 276.917);
  --chart-4: oklch(0.413 0.042 226.914);
  --chart-5: oklch(0.697 0.135 233);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.284 0.022 277.093);
  --foreground: oklch(0.906 0.003 264.541);
  --muted: oklch(0.325 0.02 277.326);
  --muted-foreground: oklch(0.765 0.021 277.909);
  --popover: oklch(0.256 0.019 277.158);
  --popover-foreground: oklch(0.985 0 264.549);
  --card: oklch(0.265 0.02 277.135);
  --card-foreground: oklch(0.946 0.002 264.546);
  --border: oklch(0.344 0.009 277.939);
  --input: oklch(0.373 0.01 277.93);
  --primary: oklch(0.692 0.131 232.523);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.383 0.038 226.861);
  --secondary-foreground: oklch(0.889 0.02 225.25);
  --accent: oklch(0.419 0.036 276.917);
  --accent-foreground: oklch(0.942 0.006 278.223);
  --destructive: oklch(0.631 0.209 30.166);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.131 232.523);
  --chart-1: oklch(0.692 0.131 232.523);
  --chart-2: oklch(0.383 0.038 226.861);
  --chart-3: oklch(0.419 0.036 276.917);
  --chart-4: oklch(0.413 0.042 226.914);
  --chart-5: oklch(0.697 0.135 233);
}