Mediocre for shadcn/ui

Mediocre is a shadcn/ui theme built around a vivid light green primary color (#faffd2) with vivid light indigo accents (#d6d2ff). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid light green primary (#faffd2) on a green-tinted background (#0a0b04).

Color palette

TokenLightDark
Background
#fcfcf8snow
#0a0b04black
Foreground
#131405black
#fcfcf8snow
Card
#fcfcf8snow
#0a0b04black
Card foreground
#131405black
#fcfcf8snow
Popover
#fcfcf8snow
#0a0b04black
Popover foreground
#131405black
#fcfcf8snow
Primary
#faffd2lightgoldenrodyellow
#faffd2lightgoldenrodyellow
Primary foreground
#323801darkgreen
#323801darkgreen
Secondary
#d6d2fflavender
#d6d2fflavender
Secondary foreground
#11029ddarkblue
#11029ddarkblue
Muted
#e1dfeclavender
#151320black
Muted foreground
#424148darkslategray
#b7b7besilver
Accent
#d6d2fflavender
#d6d2fflavender
Accent foreground
#11029ddarkblue
#11029ddarkblue
Destructive
#bc4215firebrick
#ea6f43tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faffd2lightgoldenrodyellow
#faffd2lightgoldenrodyellow

Contrast

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

Light mode
Text on background18.08:1AAA
Text on card18.08:1AAA
Primary button11.89:1AAA
Secondary button9.52:1AAA
Muted text7.68:1AAA
Accent9.52:1AAA
Destructive5.35:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button11.89:1AAA
Secondary button9.52:1AAA
Muted text9.17:1AAA
Accent9.52:1AAA
Destructive6.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 111.131);
  --foreground: oklch(0.186 0.029 113.653);
  --muted: oklch(0.909 0.017 290.668);
  --muted-foreground: oklch(0.38 0.012 290.431);
  --popover: oklch(0.99 0.006 111.131);
  --popover-foreground: oklch(0.186 0.029 113.653);
  --card: oklch(0.99 0.006 111.131);
  --card-foreground: oklch(0.186 0.029 113.653);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.984 0.058 112.109);
  --primary-foreground: oklch(0.323 0.073 115.762);
  --secondary: oklch(0.88 0.062 289.65);
  --secondary-foreground: oklch(0.32 0.213 267.558);
  --accent: oklch(0.88 0.062 289.65);
  --accent-foreground: oklch(0.32 0.213 267.558);
  --destructive: oklch(0.545 0.166 37.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.984 0.058 112.109);
  --chart-1: oklch(0.984 0.058 112.109);
  --chart-2: oklch(0.88 0.062 289.65);
  --chart-3: oklch(0.88 0.062 289.65);
  --chart-4: oklch(0.92 0.041 290.167);
  --chart-5: oklch(0.986 0.06 112.139);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.016 112.225);
  --foreground: oklch(0.989 0.005 111.116);
  --muted: oklch(0.196 0.024 288.509);
  --muted-foreground: oklch(0.781 0.01 290.78);
  --popover: oklch(0.146 0.016 112.225);
  --popover-foreground: oklch(0.989 0.005 111.116);
  --card: oklch(0.146 0.016 112.225);
  --card-foreground: oklch(0.989 0.005 111.116);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.984 0.058 112.109);
  --primary-foreground: oklch(0.323 0.073 115.762);
  --secondary: oklch(0.88 0.062 289.65);
  --secondary-foreground: oklch(0.32 0.213 267.558);
  --accent: oklch(0.88 0.062 289.65);
  --accent-foreground: oklch(0.32 0.213 267.558);
  --destructive: oklch(0.682 0.163 39.934);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.984 0.058 112.109);
  --chart-1: oklch(0.984 0.058 112.109);
  --chart-2: oklch(0.88 0.062 289.65);
  --chart-3: oklch(0.88 0.062 289.65);
  --chart-4: oklch(0.92 0.041 290.167);
  --chart-5: oklch(0.986 0.06 112.139);
}