Mediocre for shadcn/ui

Mediocre is a shadcn/ui theme built around a muted yellow primary color (#7a6e48) with muted blue accents (#48537a). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted yellow primary (#7a6e48) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfbf7snow
#040301black
Foreground
#040401black
#fdfdfcwhite
Card
#fdfbf7snow
#040301black
Card foreground
#040401black
#fdfdfcwhite
Popover
#fdfbf7snow
#040301black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#7a6e48dimgray
#7a6e48dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#48537adarkslateblue
#48537adarkslateblue
Secondary foreground
#f9f9fbghostwhite
#f9f9fbghostwhite
Muted
#dcdee4gainsboro
#1b1c23black
Muted foreground
#565a67dimgray
#989ca9darkgray
Accent
#48537adarkslateblue
#48537adarkslateblue
Accent foreground
#f9f9fbghostwhite
#f9f9fbghostwhite
Destructive
#783107saddlebrown
#f26818chocolate
Destructive foreground
#fbd0b7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a6e48dimgray
#7a6e48dimgray

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button5.04:1AA
Secondary button7.11:1AAA
Muted text5.12:1AA
Accent7.11:1AAA
Destructive6.60:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button5.04:1AA
Secondary button7.11:1AAA
Muted text6.18:1AA
Accent7.11:1AAA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 92.715);
  --foreground: oklch(0.102 0.015 98.304);
  --muted: oklch(0.902 0.009 272.558);
  --muted-foreground: oklch(0.468 0.022 272.124);
  --popover: oklch(0.989 0.006 92.715);
  --popover-foreground: oklch(0.102 0.015 98.304);
  --card: oklch(0.989 0.006 92.715);
  --card-foreground: oklch(0.102 0.015 98.304);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.541 0.057 93.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.065 270.665);
  --secondary-foreground: oklch(0.983 0.003 272.628);
  --accent: oklch(0.451 0.065 270.665);
  --accent-foreground: oklch(0.983 0.003 272.628);
  --destructive: oklch(0.407 0.112 44.688);
  --destructive-foreground: oklch(0.887 0.059 51.731);
  --ring: oklch(0.541 0.057 93.136);
  --chart-1: oklch(0.541 0.057 93.136);
  --chart-2: oklch(0.451 0.065 270.665);
  --chart-3: oklch(0.451 0.065 270.665);
  --chart-4: oklch(0.475 0.07 270.64);
  --chart-5: oklch(0.546 0.063 93.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 96.986);
  --foreground: oklch(0.994 0.002 92.674);
  --muted: oklch(0.229 0.012 272.037);
  --muted-foreground: oklch(0.694 0.02 272.347);
  --popover: oklch(0.099 0.011 96.986);
  --popover-foreground: oklch(0.994 0.002 92.674);
  --card: oklch(0.099 0.011 96.986);
  --card-foreground: oklch(0.994 0.002 92.674);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.541 0.057 93.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.065 270.665);
  --secondary-foreground: oklch(0.983 0.003 272.628);
  --accent: oklch(0.451 0.065 270.665);
  --accent-foreground: oklch(0.983 0.003 272.628);
  --destructive: oklch(0.678 0.188 44.339);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.541 0.057 93.136);
  --chart-1: oklch(0.541 0.057 93.136);
  --chart-2: oklch(0.451 0.065 270.665);
  --chart-3: oklch(0.451 0.065 270.665);
  --chart-4: oklch(0.475 0.07 270.64);
  --chart-5: oklch(0.546 0.063 93.086);
}