Fitting for shadcn/ui

Fitting is a shadcn/ui theme built around a vivid light orange primary color (#fef5eb) with vivid light yellow accents (#fefeeb). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid light orange primary (#fef5eb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#fdfcfcsnow
#000000black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdfcfcsnow
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fef5ebseashell
#fef5ebseashell
Primary foreground
#4f2a02maroon
#4f2a02maroon
Secondary
#feeceblinen
#feeceblinen
Secondary foreground
#b20806firebrick
#b20806firebrick
Muted
#eddedegainsboro
#211212black
Muted foreground
#694f4fdimgray
#b09796rosybrown
Accent
#fefeebivory
#fefeebivory
Accent foreground
#4e4f02darkolivegreen
#4e4f02darkolivegreen
Destructive
#83370bsaddlebrown
#ed732cchocolate
Destructive foreground
#fadac7bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fef5ebseashell
#fef5ebseashell

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button11.71:1AAA
Secondary button6.27:1AA
Muted text5.69:1AA
Accent8.44:1AAA
Destructive6.29:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button11.71:1AAA
Secondary button6.27:1AA
Muted text6.64:1AA
Accent8.44:1AAA
Destructive7.05:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.001 69.636);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.913 0.017 18.643);
  --muted-foreground: oklch(0.455 0.034 19.613);
  --popover: oklch(0.993 0.001 69.636);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.001 69.636);
  --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.975 0.016 69.479);
  --primary-foreground: oklch(0.327 0.074 60.796);
  --secondary: oklch(0.957 0.021 18.696);
  --secondary-foreground: oklch(0.482 0.194 29.129);
  --accent: oklch(0.993 0.025 107.623);
  --accent-foreground: oklch(0.413 0.089 110.816);
  --destructive: oklch(0.436 0.117 45.183);
  --destructive-foreground: oklch(0.909 0.044 51.955);
  --ring: oklch(0.975 0.016 69.479);
  --chart-1: oklch(0.975 0.016 69.479);
  --chart-2: oklch(0.957 0.021 18.696);
  --chart-3: oklch(0.993 0.025 107.623);
  --chart-4: oklch(0.989 0.005 18.44);
  --chart-5: oklch(0.975 0.017 69.473);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 69.634);
  --muted: oklch(0.203 0.025 20.571);
  --muted-foreground: oklch(0.698 0.03 19.055);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 69.634);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 69.634);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.975 0.016 69.479);
  --primary-foreground: oklch(0.327 0.074 60.796);
  --secondary: oklch(0.957 0.021 18.696);
  --secondary-foreground: oklch(0.482 0.194 29.129);
  --accent: oklch(0.993 0.025 107.623);
  --accent-foreground: oklch(0.413 0.089 110.816);
  --destructive: oklch(0.688 0.171 46.662);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.975 0.016 69.479);
  --chart-1: oklch(0.975 0.016 69.479);
  --chart-2: oklch(0.957 0.021 18.696);
  --chart-3: oklch(0.993 0.025 107.623);
  --chart-4: oklch(0.989 0.005 18.44);
  --chart-5: oklch(0.975 0.017 69.473);
}