4meg for shadcn/ui

4meg is a shadcn/ui theme built around a muted teal primary color (#78aba0) with muted cyan accents (#789cab). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the muted teal primary (#78aba0) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#050a09black
Foreground
#03110eblack
#fcfdfdwhite
Card
#f7fdfcmintcream
#050a09black
Card foreground
#03110eblack
#fcfdfdwhite
Popover
#f7fdfcmintcream
#050a09black
Popover foreground
#03110eblack
#fcfdfdwhite
Primary
#78aba0cadetblue
#78aba0cadetblue
Primary foreground
#000000black
#000000black
Secondary
#78ab86darkseagreen
#78ab86darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#d4e2d8gainsboro
#1d2b21darkslategray
Muted foreground
#49504bdarkslategray
#afb6b1darkgray
Accent
#789cablightslategray
#789cablightslategray
Accent foreground
#000000black
#000000black
Destructive
#dc3a04orangered
#f54105orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ebf0efwhitesmoke
#212c29darkslategray
Input
#ebf0efwhitesmoke
#212c29darkslategray
Ring
#78aba0cadetblue
#78aba0cadetblue

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button8.09:1AAA
Secondary button7.93:1AAA
Muted text6.20:1AA
Accent7.15:1AAA
Destructive4.51:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button8.09:1AAA
Secondary button7.93:1AAA
Muted text7.16:1AAA
Accent7.15:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 181.866);
  --foreground: oklch(0.164 0.023 179.124);
  --muted: oklch(0.9 0.021 154.766);
  --muted-foreground: oklch(0.424 0.013 154.604);
  --popover: oklch(0.989 0.007 181.866);
  --popover-foreground: oklch(0.164 0.023 179.124);
  --card: oklch(0.989 0.007 181.866);
  --card-foreground: oklch(0.164 0.023 179.124);
  --border: oklch(0.95 0.006 181.905);
  --input: oklch(0.95 0.006 181.905);
  --primary: oklch(0.701 0.056 179.609);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.694 0.075 152.985);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.672 0.045 224.106);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.591 0.205 35.099);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.056 179.609);
  --chart-1: oklch(0.701 0.056 179.609);
  --chart-2: oklch(0.694 0.075 152.985);
  --chart-3: oklch(0.672 0.045 224.106);
  --chart-4: oklch(0.716 0.07 153.233);
  --chart-5: oklch(0.707 0.062 179.302);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 181.996);
  --foreground: oklch(0.993 0.002 182.02);
  --muted: oklch(0.272 0.027 153.189);
  --muted-foreground: oklch(0.77 0.011 154.916);
  --popover: oklch(0.139 0.011 181.996);
  --popover-foreground: oklch(0.993 0.002 182.02);
  --card: oklch(0.139 0.011 181.996);
  --card-foreground: oklch(0.993 0.002 182.02);
  --border: oklch(0.281 0.015 180.453);
  --input: oklch(0.281 0.015 180.453);
  --primary: oklch(0.701 0.056 179.609);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.694 0.075 152.985);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.672 0.045 224.106);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.64 0.223 34.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.056 179.609);
  --chart-1: oklch(0.701 0.056 179.609);
  --chart-2: oklch(0.694 0.075 152.985);
  --chart-3: oklch(0.672 0.045 224.106);
  --chart-4: oklch(0.716 0.07 153.233);
  --chart-5: oklch(0.707 0.062 179.302);
}