Superior for shadcn/ui

Superior is a shadcn/ui theme built around a deep teal primary color (#2d675b) with deep yellow accents (#675b2d). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the deep teal primary (#2d675b) on a teal-tinted background (#030c0a).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#030c0ablack
Foreground
#010404black
#fcfdfdwhite
Card
#f3fbfamintcream
#04100eblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfcmintcream
#030c0ablack
Popover foreground
#010404black
#fcfdfdwhite
Primary
#2d675bdarkslategray
#2d675bdarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5b2d67darkslateblue
#5b2d67darkslateblue
Secondary foreground
#ead8eelavender
#ead8eelavender
Muted
#ebe9eclavender
#151316black
Muted foreground
#615464dimgray
#a89babdarkgray
Accent
#675b2ddarkolivegreen
#675b2ddarkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b30f09firebrick
#f32720crimson
Destructive foreground
#fef1f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d675bdarkslategray
#2d675bdarkslategray

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card20.04:1AAA
Primary button6.57:1AA
Secondary button7.70:1AAA
Muted text5.88:1AA
Accent6.73:1AA
Destructive6.35:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.30:1AAA
Primary button6.57:1AA
Secondary button7.70:1AAA
Muted text6.98:1AA
Accent6.73:1AA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 183.022);
  --foreground: oklch(0.101 0.014 182.994);
  --muted: oklch(0.937 0.005 319.446);
  --muted-foreground: oklch(0.463 0.031 319.461);
  --popover: oklch(0.989 0.006 183.022);
  --popover-foreground: oklch(0.101 0.014 182.994);
  --card: oklch(0.983 0.009 182.939);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.471 0.064 178.425);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.384 0.107 319.293);
  --secondary-foreground: oklch(0.903 0.035 319.455);
  --accent: oklch(0.472 0.067 95.618);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.487 0.193 29.169);
  --destructive-foreground: oklch(0.968 0.014 19.816);
  --ring: oklch(0.471 0.064 178.425);
  --chart-1: oklch(0.471 0.064 178.425);
  --chart-2: oklch(0.384 0.107 319.293);
  --chart-3: oklch(0.472 0.067 95.618);
  --chart-4: oklch(0.41 0.116 319.283);
  --chart-5: oklch(0.476 0.067 178.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 182.272);
  --foreground: oklch(0.993 0.001 183.166);
  --muted: oklch(0.191 0.007 319.454);
  --muted-foreground: oklch(0.706 0.028 319.455);
  --popover: oklch(0.144 0.017 182.272);
  --popover-foreground: oklch(0.993 0.001 183.166);
  --card: oklch(0.161 0.02 180.638);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.471 0.064 178.425);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.384 0.107 319.293);
  --secondary-foreground: oklch(0.903 0.035 319.455);
  --accent: oklch(0.472 0.067 95.618);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.619 0.235 28.697);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.471 0.064 178.425);
  --chart-1: oklch(0.471 0.064 178.425);
  --chart-2: oklch(0.384 0.107 319.293);
  --chart-3: oklch(0.472 0.067 95.618);
  --chart-4: oklch(0.41 0.116 319.283);
  --chart-5: oklch(0.476 0.067 178.083);
}