Skyscraper for shadcn/ui

Skyscraper is a shadcn/ui theme built around a light purple primary color (#f7edf7) with muted light purple accents (#d5bed5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f7edf7) on a purple-tinted background (#0b040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b040bblack
Foreground
#040104black
#ffffffwhite
Card
#fcfcfcsnow
#0f050fblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0b040bblack
Popover foreground
#040104black
#ffffffwhite
Primary
#f7edf7whitesmoke
#f7edf7whitesmoke
Primary foreground
#7c367crebeccapurple
#7c367crebeccapurple
Secondary
#e2d9e2gainsboro
#222022black
Secondary foreground
#4e3b4edarkslategray
#bdb7bdsilver
Muted
#e7cbe7gainsboro
#341834darkslategray
Muted foreground
#484248darkslategray
#bdb7bdsilver
Accent
#d5bed5thistle
#392d39darkslategray
Accent foreground
#3b263bdarkslategray
#d2c6d2thistle
Destructive
#9e2500firebrick
#ff5724tomato
Destructive foreground
#ffdcd1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7edf7whitesmoke
#f7edf7whitesmoke

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button6.89:1AA
Secondary button7.42:1AAA
Muted text6.54:1AA
Accent7.96:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.99:1AAA
Primary button6.89:1AA
Secondary button8.22:1AAA
Muted text8.02:1AAA
Accent7.93:1AAA
Destructive6.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.085 0.025 327.526);
  --muted: oklch(0.873 0.049 325.989);
  --muted-foreground: oklch(0.387 0.012 325.801);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.085 0.025 327.526);
  --card: oklch(0.992 0 161.565);
  --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.958 0.017 325.708);
  --primary-foreground: oklch(0.455 0.133 327.489);
  --secondary: oklch(0.896 0.016 325.71);
  --secondary-foreground: oklch(0.382 0.041 326.343);
  --accent: oklch(0.828 0.04 325.928);
  --accent-foreground: oklch(0.303 0.045 326.626);
  --destructive: oklch(0.46 0.162 34.788);
  --destructive-foreground: oklch(0.92 0.042 37.603);
  --ring: oklch(0.958 0.017 325.708);
  --chart-1: oklch(0.958 0.017 325.708);
  --chart-2: oklch(0.896 0.016 325.71);
  --chart-3: oklch(0.828 0.04 325.928);
  --chart-4: oklch(0.92 0.012 325.676);
  --chart-5: oklch(0.957 0.018 325.718);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.025 326.949);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.064 327.2);
  --muted-foreground: oklch(0.787 0.01 325.67);
  --popover: oklch(0.126 0.025 326.949);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.029 326.997);
  --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.958 0.017 325.708);
  --primary-foreground: oklch(0.455 0.133 327.489);
  --secondary: oklch(0.247 0.006 325.767);
  --secondary-foreground: oklch(0.787 0.01 325.67);
  --accent: oklch(0.315 0.027 326.202);
  --accent-foreground: oklch(0.84 0.021 325.766);
  --destructive: oklch(0.679 0.213 36.264);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.958 0.017 325.708);
  --chart-1: oklch(0.958 0.017 325.708);
  --chart-2: oklch(0.247 0.006 325.767);
  --chart-3: oklch(0.315 0.027 326.202);
  --chart-4: oklch(0.278 0.008 325.778);
  --chart-5: oklch(0.957 0.018 325.718);
}