High-level for shadcn/ui

High-level is a shadcn/ui theme built around a neutral gray primary color (#d3cfd3) with neutral gray accents (#d3cfd1). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#d3cfd3) on a purple-tinted background (#0d070d).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d070dblack
Foreground
#100410black
#fbf9fbsnow
Card
#ffffffwhite
#0d070dblack
Card foreground
#100410black
#fbf9fbsnow
Popover
#ffffffwhite
#0d070dblack
Popover foreground
#100410black
#fbf9fbsnow
Primary
#d3cfd3lightgrey
#d3cfd3lightgrey
Primary foreground
#3b353bdarkslategray
#3b353bdarkslategray
Secondary
#d1cfd3lightgrey
#d1cfd3lightgrey
Secondary foreground
#38353bdarkslategray
#38353bdarkslategray
Muted
#e2d9edgainsboro
#1b1226black
Muted foreground
#473f50darkslategray
#b7afc0silver
Accent
#d3cfd1lightgrey
#d3cfd1lightgrey
Accent foreground
#3b3538darkslategray
#3b3538darkslategray
Destructive
#720a03maroon
#e01406red
Destructive foreground
#fdb0aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3cfd3lightgrey
#d3cfd3lightgrey

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button7.74:1AAA
Secondary button7.78:1AAA
Muted text7.32:1AAA
Accent7.76:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button7.74:1AAA
Secondary button7.78:1AAA
Muted text8.54:1AAA
Accent7.76:1AAA
Destructive4.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.036 325.667);
  --muted: oklch(0.898 0.03 306.006);
  --muted-foreground: oklch(0.382 0.03 305.411);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.036 325.667);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.137 0.036 325.667);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.859 0.008 324.183);
  --primary-foreground: oklch(0.338 0.012 324.335);
  --secondary: oklch(0.857 0.007 306.329);
  --secondary-foreground: oklch(0.335 0.01 306.036);
  --accent: oklch(0.858 0.006 342.792);
  --accent-foreground: oklch(0.337 0.009 343.292);
  --destructive: oklch(0.353 0.137 30.169);
  --destructive-foreground: oklch(0.829 0.091 23.763);
  --ring: oklch(0.859 0.008 324.183);
  --chart-1: oklch(0.859 0.008 324.183);
  --chart-2: oklch(0.857 0.007 306.329);
  --chart-3: oklch(0.858 0.006 342.792);
  --chart-4: oklch(0.881 0.005 306.349);
  --chart-5: oklch(0.857 0.013 324.215);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.018 324.917);
  --foreground: oklch(0.984 0.004 324.151);
  --muted: oklch(0.204 0.042 303.647);
  --muted-foreground: oklch(0.766 0.026 306.003);
  --popover: oklch(0.141 0.018 324.917);
  --popover-foreground: oklch(0.984 0.004 324.151);
  --card: oklch(0.141 0.018 324.917);
  --card-foreground: oklch(0.984 0.004 324.151);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.859 0.008 324.183);
  --primary-foreground: oklch(0.338 0.012 324.335);
  --secondary: oklch(0.857 0.007 306.329);
  --secondary-foreground: oklch(0.335 0.01 306.036);
  --accent: oklch(0.858 0.006 342.792);
  --accent-foreground: oklch(0.337 0.009 343.292);
  --destructive: oklch(0.574 0.229 29.775);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.859 0.008 324.183);
  --chart-1: oklch(0.859 0.008 324.183);
  --chart-2: oklch(0.857 0.007 306.329);
  --chart-3: oklch(0.858 0.006 342.792);
  --chart-4: oklch(0.881 0.005 306.349);
  --chart-5: oklch(0.857 0.013 324.215);
}