Skyline for shadcn/ui

Skyline is a shadcn/ui theme built around a vivid green primary color (#b4ce1c) with vivid indigo accents (#371cce). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid green primary (#b4ce1c) on a green-tinted background (#0d0f06).

Color palette

TokenLightDark
Background
#fefefbwhite
#0d0f06black
Foreground
#030401black
#f8f9f6whitesmoke
Card
#fefefbwhite
#0d0f06black
Card foreground
#030401black
#f8f9f6whitesmoke
Popover
#fefefbwhite
#0d0f06black
Popover foreground
#030401black
#f8f9f6whitesmoke
Primary
#b4ce1cyellowgreen
#b4ce1cyellowgreen
Primary foreground
#171b04black
#171b04black
Secondary
#371ccemediumblue
#371ccemediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8d5ecgainsboro
#17132ablack
Muted foreground
#48484cdarkslategray
#b3b3b7darkgray
Accent
#371ccemediumblue
#371ccemediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a21e07firebrick
#eb2c0aorangered
Destructive foreground
#fee2ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b4ce1cyellowgreen
#b4ce1cyellowgreen

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button9.89:1AAA
Secondary button9.43:1AAA
Muted text6.35:1AA
Accent9.43:1AAA
Destructive6.31:1AA
Dark mode
Text on background18.28:1AAA
Text on card18.28:1AAA
Primary button9.89:1AAA
Secondary button9.43:1AAA
Muted text8.63:1AAA
Accent9.43:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 113.394);
  --foreground: oklch(0.102 0.013 114.177);
  --muted: oklch(0.883 0.031 292.64);
  --muted-foreground: oklch(0.403 0.007 292.961);
  --popover: oklch(0.996 0.005 113.394);
  --popover-foreground: oklch(0.102 0.013 114.177);
  --card: oklch(0.996 0.005 113.394);
  --card-foreground: oklch(0.102 0.013 114.177);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.805 0.183 118.875);
  --primary-foreground: oklch(0.212 0.041 116.824);
  --secondary: oklch(0.422 0.245 274.805);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.422 0.245 274.805);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.461 0.17 31.905);
  --destructive-foreground: oklch(0.933 0.032 29.622);
  --ring: oklch(0.805 0.183 118.875);
  --chart-1: oklch(0.805 0.183 118.875);
  --chart-2: oklch(0.422 0.245 274.805);
  --chart-3: oklch(0.422 0.245 274.805);
  --chart-4: oklch(0.442 0.257 274.643);
  --chart-5: oklch(0.815 0.187 119.031);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.019 115.017);
  --foreground: oklch(0.981 0.004 113.383);
  --muted: oklch(0.205 0.044 288.768);
  --muted-foreground: oklch(0.768 0.006 293.152);
  --popover: oklch(0.162 0.019 115.017);
  --popover-foreground: oklch(0.981 0.004 113.383);
  --card: oklch(0.162 0.019 115.017);
  --card-foreground: oklch(0.981 0.004 113.383);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.805 0.183 118.875);
  --primary-foreground: oklch(0.212 0.041 116.824);
  --secondary: oklch(0.422 0.245 274.805);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.422 0.245 274.805);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.606 0.227 31.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.183 118.875);
  --chart-1: oklch(0.805 0.183 118.875);
  --chart-2: oklch(0.422 0.245 274.805);
  --chart-3: oklch(0.422 0.245 274.805);
  --chart-4: oklch(0.442 0.257 274.643);
  --chart-5: oklch(0.815 0.187 119.031);
}