Graceful Twinkle Night for shadcn/ui

Graceful Twinkle Night is a shadcn/ui theme built around a muted blue primary color (#626fa3) with muted green accents (#6fa362). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted blue primary (#626fa3) on a blue-tinted background (#04050b).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#04050bblack
Foreground
#000000black
#f9fafaghostwhite
Card
#f5f6fawhitesmoke
#05070fblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#f8f9fcghostwhite
#04050bblack
Popover foreground
#000000black
#f9fafaghostwhite
Primary
#626fa3slategray
#626fa3slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a3626findianred
#a3626findianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2e3e6mistyrose
#1c0d10black
Muted foreground
#5c5154dimgray
#aea3a5darkgray
Accent
#6fa362gray
#6fa362gray
Accent foreground
#000000black
#000000black
Destructive
#8e3806saddlebrown
#dc5709chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eaeaeblavender
#222325black
Input
#eaeaeblavender
#222325black
Ring
#626fa3slategray
#626fa3slategray

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.40:1AAA
Primary button4.88:1AA
Secondary button4.66:1AA
Muted text6.13:1AA
Accent7.05:1AAA
Destructive7.73:1AAA
Dark mode
Text on background19.43:1AAA
Text on card19.59:1AAA
Primary button4.88:1AA
Secondary button4.66:1AA
Muted text7.70:1AAA
Accent7.05:1AAA
Destructive3.88:1AA Large

CSS variables

Paste this into your globals.css to use Graceful Twinkle Night in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 274.986);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.016 3.66);
  --muted-foreground: oklch(0.448 0.014 4.024);
  --popover: oklch(0.982 0.004 274.986);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.006 274.961);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.938 0.002 275.011);
  --input: oklch(0.938 0.002 275.011);
  --primary: oklch(0.551 0.083 272.703);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.57 0.086 7.196);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.661 0.108 139.492);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.454 0.129 43.779);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.083 272.703);
  --chart-1: oklch(0.551 0.083 272.703);
  --chart-2: oklch(0.57 0.086 7.196);
  --chart-3: oklch(0.661 0.108 139.492);
  --chart-4: oklch(0.597 0.079 6.712);
  --chart-5: oklch(0.546 0.092 272.344);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.016 269.26);
  --foreground: oklch(0.984 0.001 275.019);
  --muted: oklch(0.182 0.026 6.954);
  --muted-foreground: oklch(0.725 0.012 3.644);
  --popover: oklch(0.119 0.016 269.26);
  --popover-foreground: oklch(0.984 0.001 275.019);
  --card: oklch(0.132 0.019 270.018);
  --card-foreground: oklch(0.992 0.001 275.027);
  --border: oklch(0.256 0.004 274.822);
  --input: oklch(0.256 0.004 274.822);
  --primary: oklch(0.551 0.083 272.703);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.57 0.086 7.196);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.661 0.108 139.492);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.623 0.182 42.67);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.083 272.703);
  --chart-1: oklch(0.551 0.083 272.703);
  --chart-2: oklch(0.57 0.086 7.196);
  --chart-3: oklch(0.661 0.108 139.492);
  --chart-4: oklch(0.597 0.079 6.712);
  --chart-5: oklch(0.546 0.092 272.344);
}