Quality for shadcn/ui

Quality is a shadcn/ui theme built around a light red primary color (#fbf4f5) with muted light red accents (#d9c4c8). The light mode uses a neutral background (#fefbfc). Dark mode keeps the light red primary (#fbf4f5) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fefbfcsnow
#040102black
Foreground
#0c0405black
#fbf8f9snow
Card
#fefbfcsnow
#040102black
Card foreground
#0c0405black
#fbf8f9snow
Popover
#fefbfcsnow
#040102black
Popover foreground
#0c0405black
#fbf8f9snow
Primary
#fbf4f5lavenderblush
#fbf4f5lavenderblush
Primary foreground
#8b3244brown
#8b3244brown
Secondary
#e9e2e4gainsboro
#261c1eblack
Secondary foreground
#564347darkslategray
#c4b0b4silver
Muted
#e5dcdegainsboro
#231a1cblack
Muted foreground
#473e40darkslategray
#c1b8basilver
Accent
#d9c4c8thistle
#382428darkslategray
Accent foreground
#412a2fdarkslategray
#d3bbc0silver
Destructive
#d05011chocolate
#d45211chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbf4f5lavenderblush
#fbf4f5lavenderblush

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button7.32:1AAA
Secondary button7.19:1AAA
Muted text7.68:1AAA
Accent7.95:1AAA
Destructive4.34:1AA Large
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button7.32:1AAA
Secondary button8.04:1AAA
Muted text8.76:1AAA
Accent8.01:1AAA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 3.271);
  --foreground: oklch(0.121 0.02 3.579);
  --muted: oklch(0.902 0.01 3.493);
  --muted-foreground: oklch(0.373 0.013 4.127);
  --popover: oklch(0.99 0.003 3.271);
  --popover-foreground: oklch(0.121 0.02 3.579);
  --card: oklch(0.99 0.003 3.271);
  --card-foreground: oklch(0.121 0.02 3.579);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.972 0.008 3.404);
  --primary-foreground: oklch(0.449 0.121 11.291);
  --secondary: oklch(0.919 0.007 3.402);
  --secondary-foreground: oklch(0.404 0.028 5.021);
  --accent: oklch(0.84 0.024 3.933);
  --accent-foreground: oklch(0.315 0.034 6.05);
  --destructive: oklch(0.595 0.174 41.567);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.972 0.008 3.404);
  --chart-1: oklch(0.972 0.008 3.404);
  --chart-2: oklch(0.919 0.007 3.402);
  --chart-3: oklch(0.84 0.024 3.933);
  --chart-4: oklch(0.943 0.005 3.332);
  --chart-5: oklch(0.972 0.008 3.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.016 3.475);
  --foreground: oklch(0.983 0.003 3.28);
  --muted: oklch(0.23 0.015 4.898);
  --muted-foreground: oklch(0.791 0.011 3.552);
  --popover: oklch(0.082 0.016 3.475);
  --popover-foreground: oklch(0.983 0.003 3.28);
  --card: oklch(0.082 0.016 3.475);
  --card-foreground: oklch(0.983 0.003 3.28);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.972 0.008 3.404);
  --primary-foreground: oklch(0.449 0.121 11.291);
  --secondary: oklch(0.24 0.016 4.943);
  --secondary-foreground: oklch(0.775 0.024 4.023);
  --accent: oklch(0.286 0.03 5.946);
  --accent-foreground: oklch(0.814 0.028 4.086);
  --destructive: oklch(0.605 0.177 41.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.972 0.008 3.404);
  --chart-1: oklch(0.972 0.008 3.404);
  --chart-2: oklch(0.24 0.016 4.943);
  --chart-3: oklch(0.286 0.03 5.946);
  --chart-4: oklch(0.27 0.019 5.053);
  --chart-5: oklch(0.972 0.008 3.418);
}