Average for shadcn/ui

Average is a shadcn/ui theme built around a vivid light teal primary color (#8dfcf3) with vivid light red accents (#fc8d96). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light teal primary (#8dfcf3) on a teal-tinted background (#030c0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c0bblack
Foreground
#010404black
#ffffffwhite
Card
#fcfcfcsnow
#04100fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#04100fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#8dfcf3aquamarine
#8dfcf3aquamarine
Primary foreground
#02554edarkslategray
#02554edarkslategray
Secondary
#fc8d96lightcoral
#fc8d96lightcoral
Secondary foreground
#550209maroon
#550209maroon
Muted
#e7dadbgainsboro
#251819black
Muted foreground
#473e3edarkslategray
#c1b8b9silver
Accent
#fc8d96lightcoral
#fc8d96lightcoral
Accent foreground
#550209maroon
#550209maroon
Destructive
#6b0e0bmaroon
#e9221ccrimson
Destructive foreground
#f7b2b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8dfcf3aquamarine
#8dfcf3aquamarine

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button7.19:1AAA
Secondary button6.69:1AA
Muted text7.61:1AAA
Accent6.69:1AA
Destructive7.07:1AAA
Dark mode
Text on background19.75:1AAA
Text on card19.29:1AAA
Primary button7.19:1AAA
Secondary button6.69:1AA
Muted text8.83:1AAA
Accent6.69:1AA
Destructive4.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.014 190.145);
  --muted: oklch(0.899 0.014 11.596);
  --muted-foreground: oklch(0.372 0.013 12.012);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.922 0.104 188.539);
  --primary-foreground: oklch(0.403 0.07 185.344);
  --secondary: oklch(0.765 0.135 15.471);
  --secondary-foreground: oklch(0.284 0.112 24.756);
  --accent: oklch(0.765 0.135 15.471);
  --accent-foreground: oklch(0.284 0.112 24.756);
  --destructive: oklch(0.34 0.126 28.42);
  --destructive-foreground: oklch(0.829 0.081 21.175);
  --ring: oklch(0.922 0.104 188.539);
  --chart-1: oklch(0.922 0.104 188.539);
  --chart-2: oklch(0.765 0.135 15.471);
  --chart-3: oklch(0.765 0.135 15.471);
  --chart-4: oklch(0.792 0.116 14.659);
  --chart-5: oklch(0.926 0.106 188.468);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 189.84);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.021 13.305);
  --muted-foreground: oklch(0.791 0.011 11.542);
  --popover: oklch(0.162 0.019 189.089);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.019 189.089);
  --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.922 0.104 188.539);
  --primary-foreground: oklch(0.403 0.07 185.344);
  --secondary: oklch(0.765 0.135 15.471);
  --secondary-foreground: oklch(0.284 0.112 24.756);
  --accent: oklch(0.765 0.135 15.471);
  --accent-foreground: oklch(0.284 0.112 24.756);
  --destructive: oklch(0.597 0.229 28.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.104 188.539);
  --chart-1: oklch(0.922 0.104 188.539);
  --chart-2: oklch(0.765 0.135 15.471);
  --chart-3: oklch(0.765 0.135 15.471);
  --chart-4: oklch(0.792 0.116 14.659);
  --chart-5: oklch(0.926 0.106 188.468);
}