Mediocre for shadcn/ui

Mediocre is a shadcn/ui theme built around a deep cyan primary color (#112d36) with muted light cyan accents (#e1e8ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#112d36) on a cyan-tinted background (#040a0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#040a0bblack
Foreground
#041216black
#ffffffwhite
Card
#ffffffwhite
#040a0bblack
Card foreground
#041216black
#ffffffwhite
Popover
#ffffffwhite
#040a0bblack
Popover foreground
#041216black
#ffffffwhite
Primary
#112d36darkslategray
#112d36darkslategray
Primary foreground
#9bcfdflightblue
#9bcfdflightblue
Secondary
#e1e8ealavender
#131516black
Secondary foreground
#3f535adarkslategray
#a8b0b3darkgray
Muted
#e3eff2lavender
#0d181cblack
Muted foreground
#3d494cdarkslategray
#b3bec2silver
Accent
#e1e8ealavender
#131516black
Accent foreground
#3f535adarkslategray
#a8b0b3darkgray
Destructive
#d5340bfirebrick
#f44e25orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#112d36darkslategray
#112d36darkslategray

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button8.48:1AAA
Secondary button6.51:1AA
Muted text7.91:1AAA
Accent6.51:1AA
Destructive4.85:1AA
Dark mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button8.48:1AAA
Secondary button8.30:1AAA
Muted text9.47:1AAA
Accent8.30:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.169 0.023 218.092);
  --muted: oklch(0.943 0.013 217.827);
  --muted-foreground: oklch(0.396 0.016 218.076);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.169 0.023 218.092);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.169 0.023 218.092);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.281 0.037 220.43);
  --primary-foreground: oklch(0.823 0.058 218.517);
  --secondary: oklch(0.926 0.008 217.791);
  --secondary-foreground: oklch(0.43 0.027 218.365);
  --accent: oklch(0.926 0.008 217.791);
  --accent-foreground: oklch(0.43 0.027 218.365);
  --destructive: oklch(0.573 0.203 33.559);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.281 0.037 220.43);
  --chart-1: oklch(0.281 0.037 220.43);
  --chart-2: oklch(0.926 0.008 217.791);
  --chart-3: oklch(0.926 0.008 217.791);
  --chart-4: oklch(0.948 0.005 217.775);
  --chart-5: oklch(0.283 0.039 220.698);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.012 214.154);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.018 218.868);
  --muted-foreground: oklch(0.794 0.014 217.855);
  --popover: oklch(0.136 0.012 214.154);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.012 214.154);
  --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.281 0.037 220.43);
  --primary-foreground: oklch(0.823 0.058 218.517);
  --secondary: oklch(0.194 0.004 217.868);
  --secondary-foreground: oklch(0.752 0.011 217.83);
  --accent: oklch(0.194 0.004 217.868);
  --accent-foreground: oklch(0.752 0.011 217.83);
  --destructive: oklch(0.651 0.208 34.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.281 0.037 220.43);
  --chart-1: oklch(0.281 0.037 220.43);
  --chart-2: oklch(0.194 0.004 217.868);
  --chart-3: oklch(0.194 0.004 217.868);
  --chart-4: oklch(0.228 0.005 217.886);
  --chart-5: oklch(0.283 0.039 220.698);
}