Quality for shadcn/ui

Quality is a shadcn/ui theme built around a teal primary color (#1c9776) with neutral gray accents (#c9cfcd). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#1c9776) on a teal-tinted background (#030c0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c0ablack
Foreground
#020d0ablack
#f6f9f8whitesmoke
Card
#fcfcfcsnow
#04100dblack
Card foreground
#010907black
#f9fbfamintcream
Popover
#fcfcfcsnow
#04100dblack
Popover foreground
#010907black
#f9fbfamintcream
Primary
#1c9776darkcyan
#1c9776darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c9cfcdlightgrey
#323433darkslategray
Secondary foreground
#303634darkslategray
#cbcdcclightgrey
Muted
#eef1f0whitesmoke
#0e1110black
Muted foreground
#5b716bdimgray
#8ea49edarkseagreen
Accent
#c9cfcdlightgrey
#323433darkslategray
Accent foreground
#303634darkslategray
#cbcdcclightgrey
Destructive
#cb180bfirebrick
#f5493dtomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c9776darkcyan
#1c9776darkcyan

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.69:1AAA
Primary button3.66:1AA Large
Secondary button7.78:1AAA
Muted text4.60:1AA
Accent7.78:1AAA
Destructive5.69:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.59:1AAA
Primary button3.66:1AA Large
Secondary button7.84:1AAA
Muted text7.19:1AAA
Accent7.84:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.021 177.803);
  --muted: oklch(0.956 0.003 178.68);
  --muted-foreground: oklch(0.529 0.028 177.159);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.127 0.018 178.903);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.018 178.903);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.114 169.346);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.849 0.006 178.584);
  --secondary-foreground: oklch(0.326 0.007 178.117);
  --accent: oklch(0.849 0.006 178.584);
  --accent-foreground: oklch(0.326 0.007 178.117);
  --destructive: oklch(0.537 0.21 29.754);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.114 169.346);
  --chart-1: oklch(0.604 0.114 169.346);
  --chart-2: oklch(0.849 0.006 178.584);
  --chart-3: oklch(0.849 0.006 178.584);
  --chart-4: oklch(0.872 0.005 178.619);
  --chart-5: oklch(0.611 0.117 168.967);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.017 178.236);
  --foreground: oklch(0.979 0.003 178.693);
  --muted: oklch(0.173 0.005 177.899);
  --muted-foreground: oklch(0.7 0.027 177.649);
  --popover: oklch(0.16 0.02 176.191);
  --popover-foreground: oklch(0.986 0.002 178.724);
  --card: oklch(0.16 0.02 176.191);
  --card-foreground: oklch(0.986 0.002 178.724);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.604 0.114 169.346);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.323 0.003 178.516);
  --secondary-foreground: oklch(0.847 0.002 178.703);
  --accent: oklch(0.323 0.003 178.516);
  --accent-foreground: oklch(0.847 0.002 178.703);
  --destructive: oklch(0.651 0.21 28.414);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.114 169.346);
  --chart-1: oklch(0.604 0.114 169.346);
  --chart-2: oklch(0.323 0.003 178.516);
  --chart-3: oklch(0.323 0.003 178.516);
  --chart-4: oklch(0.353 0.003 178.508);
  --chart-5: oklch(0.611 0.117 168.967);
}