Fitting for shadcn/ui

Fitting is a shadcn/ui theme built around a vivid light red primary color (#febec8) with muted light red accents (#e6d6d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#febec8) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffffffwhite
#040102black
Foreground
#000000black
#fdfcfcsnow
Card
#ffffffwhite
#040102black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#040102black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#febec8pink
#febec8pink
Primary foreground
#880218darkred
#880218darkred
Secondary
#eee7e8linen
#382e30darkslategray
Secondary foreground
#5f4549darkolivegreen
#d1c7c9lightgrey
Muted
#f2e8ealinen
#170d0fblack
Muted foreground
#585152dimgray
#aea7a9darkgray
Accent
#e6d6d9gainsboro
#4f363adarkslategray
Accent foreground
#55343adarkslategray
#e2d5d7gainsboro
Destructive
#bb3311firebrick
#ea481forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#febec8pink
#febec8pink

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.47:1AA
Secondary button7.09:1AAA
Muted text6.46:1AA
Accent7.71:1AAA
Destructive5.84:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button6.47:1AA
Secondary button7.95:1AAA
Muted text8.09:1AAA
Accent7.69:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.011 5.741);
  --muted-foreground: oklch(0.441 0.009 5.976);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.862 0.075 7.672);
  --primary-foreground: oklch(0.396 0.158 23.088);
  --secondary: oklch(0.934 0.007 5.648);
  --secondary-foreground: oklch(0.419 0.037 7.675);
  --accent: oklch(0.889 0.018 5.967);
  --accent-foreground: oklch(0.368 0.048 8.832);
  --destructive: oklch(0.526 0.177 34.207);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.862 0.075 7.672);
  --chart-1: oklch(0.862 0.075 7.672);
  --chart-2: oklch(0.934 0.007 5.648);
  --chart-3: oklch(0.889 0.018 5.967);
  --chart-4: oklch(0.959 0.004 5.57);
  --chart-5: oklch(0.861 0.078 7.746);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 5.932);
  --foreground: oklch(0.991 0.002 5.498);
  --muted: oklch(0.173 0.017 7.937);
  --muted-foreground: oklch(0.736 0.008 5.726);
  --popover: oklch(0.084 0.012 5.932);
  --popover-foreground: oklch(0.991 0.002 5.498);
  --card: oklch(0.084 0.012 5.932);
  --card-foreground: oklch(0.991 0.002 5.498);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.862 0.075 7.672);
  --primary-foreground: oklch(0.396 0.158 23.088);
  --secondary: oklch(0.313 0.015 6.684);
  --secondary-foreground: oklch(0.838 0.012 5.806);
  --accent: oklch(0.362 0.037 8.038);
  --accent-foreground: oklch(0.883 0.015 5.895);
  --destructive: oklch(0.629 0.205 34.491);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.862 0.075 7.672);
  --chart-1: oklch(0.862 0.075 7.672);
  --chart-2: oklch(0.313 0.015 6.684);
  --chart-3: oklch(0.362 0.037 8.038);
  --chart-4: oklch(0.341 0.017 6.722);
  --chart-5: oklch(0.861 0.078 7.746);
}