Skylight for shadcn/ui

Skylight is a shadcn/ui theme built around a vivid light red primary color (#fec8ce) with vivid light orange accents (#feddc8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fec8ce) on a red-tinted background (#0e0708).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0708black
Foreground
#090102black
#faf5f5whitesmoke
Card
#fcfcfcsnow
#110809black
Card foreground
#040101black
#fcf8f9snow
Popover
#fcfcfcsnow
#110809black
Popover foreground
#040101black
#fcf8f9snow
Primary
#fec8cepink
#fec8cepink
Primary foreground
#920213darkred
#920213darkred
Secondary
#fec8e9mistyrose
#fec8e9mistyrose
Secondary foreground
#92025bpurple
#92025bpurple
Muted
#e2d5ddgainsboro
#2a1d25black
Muted foreground
#61565ddimgray
#a99ea4darkgray
Accent
#feddc8bisque
#feddc8bisque
Accent foreground
#2d1201black
#2d1201black
Destructive
#6d1208maroon
#e42611orangered
Destructive foreground
#f9b6aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fec8cepink
#fec8cepink

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.34:1AAA
Primary button6.40:1AA
Secondary button6.14:1AA
Muted text4.92:1AA
Accent13.64:1AAA
Destructive7.07:1AAA
Dark mode
Text on background18.50:1AAA
Text on card18.72:1AAA
Primary button6.40:1AA
Secondary button6.14:1AA
Muted text6.22:1AA
Accent13.64:1AAA
Destructive4.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.025 10.779);
  --muted: oklch(0.885 0.019 339.928);
  --muted-foreground: oklch(0.467 0.018 340.289);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.079 0.02 10.779);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.079 0.02 10.779);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.882 0.062 10.585);
  --primary-foreground: oklch(0.416 0.167 25.531);
  --secondary: oklch(0.89 0.075 341.238);
  --secondary-foreground: oklch(0.434 0.178 352.04);
  --accent: oklch(0.919 0.047 53.825);
  --accent-foreground: oklch(0.219 0.054 52.755);
  --destructive: oklch(0.349 0.126 30.52);
  --destructive-foreground: oklch(0.836 0.079 26.043);
  --ring: oklch(0.882 0.062 10.585);
  --chart-1: oklch(0.882 0.062 10.585);
  --chart-2: oklch(0.89 0.075 341.238);
  --chart-3: oklch(0.919 0.047 53.825);
  --chart-4: oklch(0.919 0.054 340.72);
  --chart-5: oklch(0.881 0.064 10.642);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 10.042);
  --foreground: oklch(0.974 0.005 9.043);
  --muted: oklch(0.251 0.026 341.601);
  --muted-foreground: oklch(0.71 0.016 339.96);
  --popover: oklch(0.15 0.016 10.97);
  --popover-foreground: oklch(0.982 0.004 8.997);
  --card: oklch(0.15 0.016 10.97);
  --card-foreground: oklch(0.982 0.004 8.997);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.882 0.062 10.585);
  --primary-foreground: oklch(0.416 0.167 25.531);
  --secondary: oklch(0.89 0.075 341.238);
  --secondary-foreground: oklch(0.434 0.178 352.04);
  --accent: oklch(0.919 0.047 53.825);
  --accent-foreground: oklch(0.219 0.054 52.755);
  --destructive: oklch(0.59 0.224 30.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.882 0.062 10.585);
  --chart-1: oklch(0.882 0.062 10.585);
  --chart-2: oklch(0.89 0.075 341.238);
  --chart-3: oklch(0.919 0.047 53.825);
  --chart-4: oklch(0.919 0.054 340.72);
  --chart-5: oklch(0.881 0.064 10.642);
}