High for shadcn/ui

High is a shadcn/ui theme built around a vivid purple primary color (#8a05a8) with vivid purple accents (#a80575). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the vivid purple primary (#8a05a8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#000000black
Foreground
#040104black
#f9f4fawhitesmoke
Card
#fcf7fdghostwhite
#000000black
Card foreground
#040104black
#f9f4fawhitesmoke
Popover
#fcf7fdghostwhite
#000000black
Popover foreground
#040104black
#f9f4fawhitesmoke
Primary
#8a05a8darkmagenta
#8a05a8darkmagenta
Primary foreground
#f9e1felavenderblush
#f9e1felavenderblush
Secondary
#3905a8indigo
#3905a8indigo
Secondary foreground
#eae1felavender
#eae1felavender
Muted
#d6d2dfgainsboro
#24202ddarkslategray
Muted foreground
#4e4d51darkslategray
#afaeb2darkgray
Accent
#a80575darkmagenta
#a80575darkmagenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#640702maroon
#fb2e23orangered
Destructive foreground
#fda09blightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a05a8darkmagenta
#8a05a8darkmagenta

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button6.43:1AA
Secondary button9.47:1AAA
Muted text5.66:1AA
Accent7.12:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button6.43:1AA
Secondary button9.47:1AAA
Muted text7.23:1AAA
Accent7.12:1AAA
Destructive3.82: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.981 0.01 320.001);
  --foreground: oklch(0.082 0.025 322.475);
  --muted: oklch(0.872 0.018 300.423);
  --muted-foreground: oklch(0.422 0.008 300.457);
  --popover: oklch(0.981 0.01 320.001);
  --popover-foreground: oklch(0.082 0.025 322.475);
  --card: oklch(0.981 0.01 320.001);
  --card-foreground: oklch(0.082 0.025 322.475);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.468 0.224 318.044);
  --primary-foreground: oklch(0.938 0.046 320.035);
  --secondary: oklch(0.364 0.214 281.482);
  --secondary-foreground: oklch(0.927 0.04 300.059);
  --accent: oklch(0.487 0.203 347.306);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.321 0.125 30.03);
  --destructive-foreground: oklch(0.798 0.112 23.136);
  --ring: oklch(0.468 0.224 318.044);
  --chart-1: oklch(0.468 0.224 318.044);
  --chart-2: oklch(0.364 0.214 281.482);
  --chart-3: oklch(0.487 0.203 347.306);
  --chart-4: oklch(0.387 0.228 281.177);
  --chart-5: oklch(0.472 0.227 317.898);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.009 320);
  --muted: oklch(0.253 0.025 299.125);
  --muted-foreground: oklch(0.752 0.007 300.617);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.009 320);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.009 320);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.468 0.224 318.044);
  --primary-foreground: oklch(0.938 0.046 320.035);
  --secondary: oklch(0.364 0.214 281.482);
  --secondary-foreground: oklch(0.927 0.04 300.059);
  --accent: oklch(0.487 0.203 347.306);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.636 0.238 29.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.224 318.044);
  --chart-1: oklch(0.468 0.224 318.044);
  --chart-2: oklch(0.364 0.214 281.482);
  --chart-3: oklch(0.487 0.203 347.306);
  --chart-4: oklch(0.387 0.228 281.177);
  --chart-5: oklch(0.472 0.227 317.898);
}