Skylight for shadcn/ui

Skylight is a shadcn/ui theme built around a light green primary color (#bfe3c4) with light red accents (#e3c4bf). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the light green primary (#bfe3c4) on a neutral background (#020803).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#020803black
Foreground
#000000black
#ffffffwhite
Card
#f4faf5whitesmoke
#040c05black
Card foreground
#000000black
#ffffffwhite
Popover
#f4faf5whitesmoke
#040c05black
Popover foreground
#000000black
#ffffffwhite
Primary
#bfe3c4lightgrey
#bfe3c4lightgrey
Primary foreground
#224f28darkslategray
#224f28darkslategray
Secondary
#c4bfe3lightsteelblue
#c4bfe3lightsteelblue
Secondary foreground
#28224fmidnightblue
#28224fmidnightblue
Muted
#eae9f2lavender
#0f0d16black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#e3c4bfthistle
#e3c4bfthistle
Accent foreground
#4f2822darkslategray
#4f2822darkslategray
Destructive
#8b0d04darkred
#f94134tomato
Destructive foreground
#fdc7c4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfe3c4lightgrey
#bfe3c4lightgrey

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card19.90:1AAA
Primary button6.78:1AA
Secondary button8.29:1AAA
Muted text5.80:1AA
Accent7.77:1AAA
Destructive6.57:1AA
Dark mode
Text on background20.23:1AAA
Text on card19.86:1AAA
Primary button6.78:1AA
Secondary button8.29:1AAA
Muted text7.90:1AAA
Accent7.77:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 149.603);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.012 292.302);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.98 0.01 149.561);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.01 149.561);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.882 0.058 148.835);
  --primary-foreground: oklch(0.383 0.082 146.509);
  --secondary: oklch(0.82 0.051 291.337);
  --secondary-foreground: oklch(0.284 0.079 286.264);
  --accent: oklch(0.845 0.037 28.218);
  --accent-foreground: oklch(0.326 0.06 29.852);
  --destructive: oklch(0.405 0.158 29.942);
  --destructive-foreground: oklch(0.877 0.062 23.133);
  --ring: oklch(0.882 0.058 148.835);
  --chart-1: oklch(0.882 0.058 148.835);
  --chart-2: oklch(0.82 0.051 291.337);
  --chart-3: oklch(0.845 0.037 28.218);
  --chart-4: oklch(0.85 0.042 291.59);
  --chart-5: oklch(0.884 0.062 148.772);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.02 148.656);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.167 0.019 290.344);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.14 0.023 148.611);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.023 148.611);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.882 0.058 148.835);
  --primary-foreground: oklch(0.383 0.082 146.509);
  --secondary: oklch(0.82 0.051 291.337);
  --secondary-foreground: oklch(0.284 0.079 286.264);
  --accent: oklch(0.845 0.037 28.218);
  --accent-foreground: oklch(0.326 0.06 29.852);
  --destructive: oklch(0.649 0.221 28.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.882 0.058 148.835);
  --chart-1: oklch(0.882 0.058 148.835);
  --chart-2: oklch(0.82 0.051 291.337);
  --chart-3: oklch(0.845 0.037 28.218);
  --chart-4: oklch(0.85 0.042 291.59);
  --chart-5: oklch(0.884 0.062 148.772);
}