Mealy for shadcn/ui

Mealy is a shadcn/ui theme built around a cyan primary color (#2d8ea4) with green accents (#8ea42d). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the cyan primary (#2d8ea4) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#fbfdfewhite
#010404black
Foreground
#010404black
#f5f9faghostwhite
Card
#f8fbfcghostwhite
#020708black
Card foreground
#000000black
#f8fbfbghostwhite
Popover
#fbfdfewhite
#010404black
Popover foreground
#010404black
#f5f9faghostwhite
Primary
#2d8ea4steelblue
#2d8ea4steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a42d8emediumvioletred
#a42d8emediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3f1f3whitesmoke
#0e0c0dblack
Muted foreground
#635460dimgray
#ab9ca8darkgray
Accent
#8ea42dolivedrab
#8ea42dolivedrab
Accent foreground
#030401black
#030401black
Destructive
#b51b0dfirebrick
#ef2715orangered
Destructive foreground
#fef6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d8ea4steelblue
#2d8ea4steelblue

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.21:1AAA
Primary button3.79:1AA Large
Secondary button6.27:1AA
Muted text6.30:1AA
Accent7.35:1AAA
Destructive6.30:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.46:1AAA
Primary button3.79:1AA Large
Secondary button6.27:1AA
Muted text7.48:1AAA
Accent7.35:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 212.663);
  --foreground: oklch(0.097 0.012 208.289);
  --muted: oklch(0.961 0.003 331.453);
  --muted-foreground: oklch(0.466 0.027 332.196);
  --popover: oklch(0.993 0.002 212.663);
  --popover-foreground: oklch(0.097 0.012 208.289);
  --card: oklch(0.986 0.004 212.664);
  --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.602 0.093 216.063);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.514 0.187 336.375);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.68 0.143 119.497);
  --accent-foreground: oklch(0.103 0.015 115.513);
  --destructive: oklch(0.496 0.189 30.091);
  --destructive-foreground: oklch(0.98 0.009 23.669);
  --ring: oklch(0.602 0.093 216.063);
  --chart-1: oklch(0.602 0.093 216.063);
  --chart-2: oklch(0.514 0.187 336.375);
  --chart-3: oklch(0.68 0.143 119.497);
  --chart-4: oklch(0.541 0.197 336.408);
  --chart-5: oklch(0.607 0.096 216.396);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 208.703);
  --foreground: oklch(0.979 0.004 212.664);
  --muted: oklch(0.156 0.005 331.843);
  --muted-foreground: oklch(0.709 0.024 331.881);
  --popover: oklch(0.096 0.01 208.703);
  --popover-foreground: oklch(0.979 0.004 212.664);
  --card: oklch(0.121 0.013 208.703);
  --card-foreground: oklch(0.986 0.003 212.663);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.093 216.063);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.514 0.187 336.375);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.68 0.143 119.497);
  --accent-foreground: oklch(0.103 0.015 115.513);
  --destructive: oklch(0.611 0.232 30.088);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.093 216.063);
  --chart-1: oklch(0.602 0.093 216.063);
  --chart-2: oklch(0.514 0.187 336.375);
  --chart-3: oklch(0.68 0.143 119.497);
  --chart-4: oklch(0.541 0.197 336.408);
  --chart-5: oklch(0.607 0.096 216.396);
}