High-rise for shadcn/ui

High-rise is a shadcn/ui theme built around a light purple primary color (#cbafd5) with light green accents (#b8d5af). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the light purple primary (#cbafd5) on a purple-tinted background (#09050a).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#09050ablack
Foreground
#0e0311black
#faf9fbghostwhite
Card
#f9f5faghostwhite
#0c060eblack
Card foreground
#0a020dblack
#fdfcfdwhite
Popover
#fbf8fcghostwhite
#09050ablack
Popover foreground
#0e0311black
#faf9fbghostwhite
Primary
#cbafd5thistle
#cbafd5thistle
Primary foreground
#2f1c35darkslategray
#2f1c35darkslategray
Secondary
#b8d5afsilver
#b8d5afsilver
Secondary foreground
#22351cdarkslategray
#22351cdarkslategray
Muted
#e6ede3beige
#151c12black
Muted foreground
#42513ddarkslategray
#b3c2aesilver
Accent
#b8d5afsilver
#b8d5afsilver
Accent foreground
#22351cdarkslategray
#22351cdarkslategray
Destructive
#8d0907darkred
#e50e0bred
Destructive foreground
#fccac9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbafd5thistle
#cbafd5thistle

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card18.89:1AAA
Primary button7.93:1AAA
Secondary button8.25:1AAA
Muted text7.09:1AAA
Accent8.25:1AAA
Destructive6.62:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.54:1AAA
Primary button7.93:1AAA
Secondary button8.25:1AAA
Muted text9.34:1AAA
Accent8.25:1AAA
Destructive4.77:1AA

CSS variables

Paste this into your globals.css to use High-rise in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 317.754);
  --foreground: oklch(0.131 0.041 318.614);
  --muted: oklch(0.938 0.015 137.79);
  --muted-foreground: oklch(0.417 0.038 137.938);
  --popover: oklch(0.982 0.006 317.754);
  --popover-foreground: oklch(0.131 0.041 318.614);
  --card: oklch(0.974 0.008 317.749);
  --card-foreground: oklch(0.117 0.035 319.666);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.79 0.061 317.635);
  --primary-foreground: oklch(0.263 0.052 317.368);
  --secondary: oklch(0.841 0.06 137.896);
  --secondary-foreground: oklch(0.307 0.05 138.171);
  --accent: oklch(0.841 0.06 137.896);
  --accent-foreground: oklch(0.307 0.05 138.171);
  --destructive: oklch(0.409 0.162 28.897);
  --destructive-foreground: oklch(0.883 0.057 19.428);
  --ring: oklch(0.79 0.061 317.635);
  --chart-1: oklch(0.79 0.061 317.635);
  --chart-2: oklch(0.841 0.06 137.896);
  --chart-3: oklch(0.841 0.06 137.896);
  --chart-4: oklch(0.861 0.052 137.873);
  --chart-5: oklch(0.788 0.067 317.622);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.017 318.979);
  --foreground: oklch(0.984 0.002 317.759);
  --muted: oklch(0.215 0.021 137.961);
  --muted-foreground: oklch(0.796 0.032 137.834);
  --popover: oklch(0.125 0.017 318.979);
  --popover-foreground: oklch(0.984 0.002 317.759);
  --card: oklch(0.138 0.02 318.081);
  --card-foreground: oklch(0.992 0.001 317.761);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.79 0.061 317.635);
  --primary-foreground: oklch(0.263 0.052 317.368);
  --secondary: oklch(0.841 0.06 137.896);
  --secondary-foreground: oklch(0.307 0.05 138.171);
  --accent: oklch(0.841 0.06 137.896);
  --accent-foreground: oklch(0.307 0.05 138.171);
  --destructive: oklch(0.582 0.234 29.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.79 0.061 317.635);
  --chart-1: oklch(0.79 0.061 317.635);
  --chart-2: oklch(0.841 0.06 137.896);
  --chart-3: oklch(0.841 0.06 137.896);
  --chart-4: oklch(0.861 0.052 137.873);
  --chart-5: oklch(0.788 0.067 317.622);
}