Fitting for shadcn/ui

Fitting is a shadcn/ui theme built around a red primary color (#85424d) with teal accents (#42857a). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the red primary (#85424d) on a red-tinted background (#0e0708).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0e0708black
Foreground
#080203black
#ffffffwhite
Card
#faf5f6whitesmoke
#11080ablack
Card foreground
#040102black
#ffffffwhite
Popover
#faf5f6whitesmoke
#11080ablack
Popover foreground
#040102black
#ffffffwhite
Primary
#85424dsienna
#85424dsienna
Primary foreground
#fdfcfcsnow
#fdfcfcsnow
Secondary
#42857aseagreen
#42857aseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#cde9e5gainsboro
#16322ddarkslategray
Muted foreground
#4b5d5adarkslategray
#a2b4b1darkgray
Accent
#42857aseagreen
#42857aseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8f2c04saddlebrown
#f85e20chocolate
Destructive foreground
#fdd8c9bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#85424dsienna
#85424dsienna

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.20:1AAA
Primary button7.12:1AAA
Secondary button4.30:1AA Large
Muted text5.44:1AA
Accent4.30:1AA Large
Destructive6.24:1AA
Dark mode
Text on background19.99:1AAA
Text on card19.72:1AAA
Primary button7.12:1AAA
Secondary button4.30:1AA Large
Muted text6.37:1AA
Accent4.30:1AA Large
Destructive6.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 5.554);
  --foreground: oklch(0.105 0.018 6.015);
  --muted: oklch(0.913 0.03 184.573);
  --muted-foreground: oklch(0.463 0.023 184.086);
  --popover: oklch(0.973 0.006 5.609);
  --popover-foreground: oklch(0.083 0.014 6.015);
  --card: oklch(0.973 0.006 5.609);
  --card-foreground: oklch(0.083 0.014 6.015);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.466 0.093 10.844);
  --primary-foreground: oklch(0.991 0.002 5.498);
  --secondary: oklch(0.57 0.071 181.432);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.57 0.071 181.432);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.44 0.141 37.9);
  --destructive-foreground: oklch(0.909 0.047 42.751);
  --ring: oklch(0.466 0.093 10.844);
  --chart-1: oklch(0.466 0.093 10.844);
  --chart-2: oklch(0.57 0.071 181.432);
  --chart-3: oklch(0.57 0.071 181.432);
  --chart-4: oklch(0.601 0.076 181.399);
  --chart-5: oklch(0.465 0.101 11.422);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.014 6.462);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.292 0.035 181.656);
  --muted-foreground: oklch(0.755 0.021 184.711);
  --popover: oklch(0.15 0.016 7.686);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.15 0.016 7.686);
  --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.466 0.093 10.844);
  --primary-foreground: oklch(0.991 0.002 5.498);
  --secondary: oklch(0.57 0.071 181.432);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.57 0.071 181.432);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.676 0.201 39.123);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.466 0.093 10.844);
  --chart-1: oklch(0.466 0.093 10.844);
  --chart-2: oklch(0.57 0.071 181.432);
  --chart-3: oklch(0.57 0.071 181.432);
  --chart-4: oklch(0.601 0.076 181.399);
  --chart-5: oklch(0.465 0.101 11.422);
}