Starry for shadcn/ui

Starry is a shadcn/ui theme built around a light pink primary color (#f0d6dd) with light red accents (#f0dcd6). The light mode uses a neutral background (#fdf6f8). Dark mode keeps the light pink primary (#f0d6dd) on a neutral background (#080204).

Color palette

TokenLightDark
Background
#fdf6f8snow
#080204black
Foreground
#0f0508black
#f8f6f7whitesmoke
Card
#fdf6f8snow
#080204black
Card foreground
#0f0508black
#f8f6f7whitesmoke
Popover
#fdf6f8snow
#080204black
Popover foreground
#0f0508black
#f8f6f7whitesmoke
Primary
#f0d6ddgainsboro
#f0d6ddgainsboro
Primary foreground
#6b293csaddlebrown
#6b293csaddlebrown
Secondary
#f0d6eamistyrose
#f0d6eamistyrose
Secondary foreground
#6b295dpurple
#6b295dpurple
Muted
#e7dfe5gainsboro
#20181eblack
Muted foreground
#665763dimgray
#a899a5darkgray
Accent
#f0dcd6antiquewhite
#f0dcd6antiquewhite
Accent foreground
#6b3729saddlebrown
#6b3729saddlebrown
Destructive
#993a0asaddlebrown
#f16b27chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0d6ddgainsboro
#f0d6ddgainsboro

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button7.66:1AAA
Secondary button7.39:1AAA
Muted text5.18:1AA
Accent7.20:1AAA
Destructive7.08:1AAA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button7.66:1AAA
Secondary button7.39:1AAA
Muted text6.39:1AA
Accent7.20:1AAA
Destructive6.86:1AA

CSS variables

Paste this into your globals.css to use Starry in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 357.94);
  --foreground: oklch(0.135 0.022 358.961);
  --muted: oklch(0.912 0.011 332.803);
  --muted-foreground: oklch(0.475 0.027 333.465);
  --popover: oklch(0.98 0.008 357.94);
  --popover-foreground: oklch(0.135 0.022 358.961);
  --card: oklch(0.98 0.008 357.94);
  --card-foreground: oklch(0.135 0.022 358.961);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.029 358.635);
  --primary-foreground: oklch(0.381 0.097 5.221);
  --secondary: oklch(0.904 0.038 333.256);
  --secondary-foreground: oklch(0.395 0.116 336.86);
  --accent: oklch(0.908 0.023 35.951);
  --accent-foreground: oklch(0.401 0.078 36.368);
  --destructive: oklch(0.476 0.139 41.655);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.029 358.635);
  --chart-1: oklch(0.9 0.029 358.635);
  --chart-2: oklch(0.904 0.038 333.256);
  --chart-3: oklch(0.908 0.023 35.951);
  --chart-4: oklch(0.93 0.028 333.069);
  --chart-5: oklch(0.899 0.031 358.698);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.02 357.465);
  --foreground: oklch(0.976 0.002 357.78);
  --muted: oklch(0.222 0.016 333.669);
  --muted-foreground: oklch(0.7 0.024 333.145);
  --popover: oklch(0.104 0.02 357.465);
  --popover-foreground: oklch(0.976 0.002 357.78);
  --card: oklch(0.104 0.02 357.465);
  --card-foreground: oklch(0.976 0.002 357.78);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0.029 358.635);
  --primary-foreground: oklch(0.381 0.097 5.221);
  --secondary: oklch(0.904 0.038 333.256);
  --secondary-foreground: oklch(0.395 0.116 336.86);
  --accent: oklch(0.908 0.023 35.951);
  --accent-foreground: oklch(0.401 0.078 36.368);
  --destructive: oklch(0.683 0.182 43.384);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.9 0.029 358.635);
  --chart-1: oklch(0.9 0.029 358.635);
  --chart-2: oklch(0.904 0.038 333.256);
  --chart-3: oklch(0.908 0.023 35.951);
  --chart-4: oklch(0.93 0.028 333.069);
  --chart-5: oklch(0.899 0.031 358.698);
}