Starry for shadcn/ui

Starry is a shadcn/ui theme built around a deep pink primary color (#3b1623) with deep blue accents (#16233b). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the deep pink primary (#3b1623) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f9snow
#000000black
Foreground
#090204black
#f8f6f7whitesmoke
Card
#faf5f7whitesmoke
#030303black
Card foreground
#040102black
#fbf9fasnow
Popover
#fcf8f9snow
#000000black
Popover foreground
#090204black
#f8f6f7whitesmoke
Primary
#3b1623black
#3b1623black
Primary foreground
#dda6baplum
#dda6baplum
Secondary
#233b16darkgreen
#233b16darkgreen
Secondary foreground
#badda6silver
#badda6silver
Muted
#dee9d8gainsboro
#1c2716black
Muted foreground
#424e3bdarkslategray
#b7c4b1silver
Accent
#16233bmidnightblue
#16233bmidnightblue
Accent foreground
#a6baddlightsteelblue
#a6baddlightsteelblue
Destructive
#712504maroon
#f75b18orangered
Destructive foreground
#fcc4abpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b1623black
#3b1623black

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.21:1AAA
Primary button7.69:1AAA
Secondary button8.16:1AAA
Muted text7.02:1AAA
Accent7.96:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.72:1AAA
Primary button7.69:1AAA
Secondary button8.16:1AAA
Muted text8.52:1AAA
Accent7.96:1AAA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 353.699);
  --foreground: oklch(0.103 0.025 353.085);
  --muted: oklch(0.921 0.026 134.378);
  --muted-foreground: oklch(0.409 0.035 134.737);
  --popover: oklch(0.982 0.004 353.699);
  --popover-foreground: oklch(0.103 0.025 353.085);
  --card: oklch(0.974 0.006 353.763);
  --card-foreground: oklch(0.082 0.02 353.085);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.262 0.06 0.044);
  --primary-foreground: oklch(0.783 0.069 356);
  --secondary: oklch(0.323 0.067 135.842);
  --secondary-foreground: oklch(0.859 0.083 134.811);
  --accent: oklch(0.259 0.049 262.014);
  --accent-foreground: oklch(0.785 0.055 262.784);
  --destructive: oklch(0.377 0.115 39.708);
  --destructive-foreground: oklch(0.863 0.073 44.314);
  --ring: oklch(0.262 0.06 0.044);
  --chart-1: oklch(0.262 0.06 0.044);
  --chart-2: oklch(0.323 0.067 135.842);
  --chart-3: oklch(0.259 0.049 262.014);
  --chart-4: oklch(0.361 0.077 135.922);
  --chart-5: oklch(0.262 0.064 0.528);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.002 353.647);
  --muted: oklch(0.257 0.035 135.092);
  --muted-foreground: oklch(0.805 0.03 134.432);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.002 353.647);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 353.622);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.262 0.06 0.044);
  --primary-foreground: oklch(0.783 0.069 356);
  --secondary: oklch(0.323 0.067 135.842);
  --secondary-foreground: oklch(0.859 0.083 134.811);
  --accent: oklch(0.259 0.049 262.014);
  --accent-foreground: oklch(0.785 0.055 262.784);
  --destructive: oklch(0.669 0.203 39.456);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.262 0.06 0.044);
  --chart-1: oklch(0.262 0.06 0.044);
  --chart-2: oklch(0.323 0.067 135.842);
  --chart-3: oklch(0.259 0.049 262.014);
  --chart-4: oklch(0.361 0.077 135.922);
  --chart-5: oklch(0.262 0.064 0.528);
}