High for shadcn/ui

High is a shadcn/ui theme built around a purple primary color (#be50b7) with teal accents (#50b7be). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the purple primary (#be50b7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf7fcsnow
#000000black
Foreground
#090208black
#fbf9fbsnow
Card
#fbf4fbghostwhite
#030303black
Card foreground
#040104black
#fdfcfdwhite
Popover
#fcf7fcsnow
#000000black
Popover foreground
#090208black
#fbf9fbsnow
Primary
#be50b7mediumorchid
#be50b7mediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b7be50darkkhaki
#b7be50darkkhaki
Secondary foreground
#2e3012darkslategray
#2e3012darkslategray
Muted
#eaebdbbeige
#232414black
Muted foreground
#505049darkslategray
#b6b6afdarkgray
Accent
#50b7bemediumturquoise
#50b7bemediumturquoise
Accent foreground
#122e30darkslategray
#122e30darkslategray
Destructive
#66120amaroon
#e82817orangered
Destructive foreground
#f7b2ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#be50b7mediumorchid
#be50b7mediumorchid

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.17:1AAA
Primary button4.17:1AA Large
Secondary button6.79:1AA
Muted text6.73:1AA
Accent6.06:1AA
Destructive7.19:1AAA
Dark mode
Text on background20.04:1AAA
Text on card20.20:1AAA
Primary button4.17:1AA Large
Secondary button6.79:1AA
Muted text7.70:1AAA
Accent6.06:1AA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 327.627);
  --foreground: oklch(0.107 0.03 329.209);
  --muted: oklch(0.935 0.022 109.906);
  --muted-foreground: oklch(0.43 0.012 110.008);
  --popover: oklch(0.982 0.008 327.627);
  --popover-foreground: oklch(0.107 0.03 329.209);
  --card: oklch(0.974 0.012 327.668);
  --card-foreground: oklch(0.085 0.024 329.209);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.61 0.187 330.239);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.775 0.134 112.654);
  --secondary-foreground: oklch(0.301 0.048 112.391);
  --accent: oklch(0.722 0.095 201.705);
  --accent-foreground: oklch(0.282 0.034 201.62);
  --destructive: oklch(0.334 0.119 29.832);
  --destructive-foreground: oklch(0.826 0.082 24.823);
  --ring: oklch(0.61 0.187 330.239);
  --chart-1: oklch(0.61 0.187 330.239);
  --chart-2: oklch(0.775 0.134 112.654);
  --chart-3: oklch(0.722 0.095 201.705);
  --chart-4: oklch(0.789 0.128 112.426);
  --chart-5: oklch(0.612 0.197 330.369);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.004 327.589);
  --muted: oklch(0.255 0.028 111.491);
  --muted-foreground: oklch(0.775 0.011 109.734);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.004 327.589);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.002 327.567);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.61 0.187 330.239);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.775 0.134 112.654);
  --secondary-foreground: oklch(0.301 0.048 112.391);
  --accent: oklch(0.722 0.095 201.705);
  --accent-foreground: oklch(0.282 0.034 201.62);
  --destructive: oklch(0.599 0.226 30.073);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.61 0.187 330.239);
  --chart-1: oklch(0.61 0.187 330.239);
  --chart-2: oklch(0.775 0.134 112.654);
  --chart-3: oklch(0.722 0.095 201.705);
  --chart-4: oklch(0.789 0.128 112.426);
  --chart-5: oklch(0.612 0.197 330.369);
}