Superior for shadcn/ui

Superior is a shadcn/ui theme built around a neutral gray primary color (#928187) with neutral gray accents (#81928d). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#928187) on a pink-tinted background (#0d0709).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0709black
Foreground
#0d0206black
#fdfcfcsnow
Card
#ffffffwhite
#0d0709black
Card foreground
#0d0206black
#fdfcfcsnow
Popover
#ffffffwhite
#0d0709black
Popover foreground
#0d0206black
#fdfcfcsnow
Primary
#928187gray
#928187gray
Primary foreground
#000000black
#000000black
Secondary
#81928dlightslategray
#81928dlightslategray
Secondary foreground
#000000black
#000000black
Muted
#dcefe9lavender
#10231dblack
Muted foreground
#5e6865dimgray
#97a19ddarkgray
Accent
#81928dlightslategray
#81928dlightslategray
Accent foreground
#000000black
#000000black
Destructive
#83100cmaroon
#ee4a44tomato
Destructive foreground
#fac9c7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#928187gray
#928187gray

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button5.73:1AA
Secondary button6.43:1AA
Muted text4.81:1AA
Accent6.43:1AA
Destructive6.98:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button5.73:1AA
Secondary button6.43:1AA
Muted text6.18:1AA
Accent6.43:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.031 355.719);
  --muted: oklch(0.936 0.021 174.951);
  --muted-foreground: oklch(0.509 0.013 174.844);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.117 0.031 355.719);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.117 0.031 355.719);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.621 0.021 356.584);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.645 0.02 174.664);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.645 0.02 174.664);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.391 0.148 28.682);
  --destructive-foreground: oklch(0.877 0.056 20.585);
  --ring: oklch(0.621 0.021 356.584);
  --chart-1: oklch(0.621 0.021 356.584);
  --chart-2: oklch(0.645 0.02 174.664);
  --chart-3: oklch(0.645 0.02 174.664);
  --chart-4: oklch(0.669 0.019 174.768);
  --chart-5: oklch(0.617 0.031 357.006);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.013 356.469);
  --foreground: oklch(0.992 0.001 355.643);
  --muted: oklch(0.237 0.027 171.602);
  --muted-foreground: oklch(0.699 0.012 175.098);
  --popover: oklch(0.139 0.013 356.469);
  --popover-foreground: oklch(0.992 0.001 355.643);
  --card: oklch(0.139 0.013 356.469);
  --card-foreground: oklch(0.992 0.001 355.643);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.621 0.021 356.584);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.645 0.02 174.664);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.645 0.02 174.664);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.64 0.201 26.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.621 0.021 356.584);
  --chart-1: oklch(0.621 0.021 356.584);
  --chart-2: oklch(0.645 0.02 174.664);
  --chart-3: oklch(0.645 0.02 174.664);
  --chart-4: oklch(0.669 0.019 174.768);
  --chart-5: oklch(0.617 0.031 357.006);
}