Fix for shadcn/ui

Fix is a shadcn/ui theme built around a pink primary color (#c24c70) with blue accents (#4c70c2). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the pink primary (#c24c70) on a pink-tinted background (#0c0306).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0c0306black
Foreground
#0d0205black
#f8f6f7whitesmoke
Card
#faf4f6whitesmoke
#100408black
Card foreground
#090104black
#fbf9fasnow
Popover
#faf4f6whitesmoke
#100408black
Popover foreground
#090104black
#fbf9fasnow
Primary
#c24c70indianred
#c24c70indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#70c24cyellowgreen
#70c24cyellowgreen
Secondary foreground
#1b3111black
#1b3111black
Muted
#d7e5d2gainsboro
#202d1ablack
Muted foreground
#5b6f52dimgray
#98ad90darkseagreen
Accent
#4c70c2steelblue
#4c70c2steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a90c0afirebrick
#f4413etomato
Destructive foreground
#fee7e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c24c70indianred
#c24c70indianred

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.05:1AAA
Primary button4.59:1AA
Secondary button6.35:1AA
Muted text4.17:1AA Large
Accent4.78:1AA
Destructive6.49:1AA
Dark mode
Text on background18.89:1AAA
Text on card19.17:1AAA
Primary button4.59:1AA
Secondary button6.35:1AA
Muted text5.98:1AA
Accent4.78:1AA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 356.791);
  --foreground: oklch(0.116 0.031 356.807);
  --muted: oklch(0.906 0.03 136.143);
  --muted-foreground: oklch(0.518 0.051 136.418);
  --popover: oklch(0.973 0.007 356.859);
  --popover-foreground: oklch(0.101 0.027 356.239);
  --card: oklch(0.973 0.007 356.859);
  --card-foreground: oklch(0.101 0.027 356.239);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.583 0.153 4.516);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.736 0.173 137.477);
  --secondary-foreground: oklch(0.287 0.062 137.244);
  --accent: oklch(0.558 0.134 264.917);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.465 0.185 28.86);
  --destructive-foreground: oklch(0.947 0.024 18.766);
  --ring: oklch(0.583 0.153 4.516);
  --chart-1: oklch(0.583 0.153 4.516);
  --chart-2: oklch(0.736 0.173 137.477);
  --chart-3: oklch(0.558 0.134 264.917);
  --chart-4: oklch(0.752 0.164 137.272);
  --chart-5: oklch(0.583 0.162 5.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.022 356.614);
  --foreground: oklch(0.976 0.002 356.72);
  --muted: oklch(0.28 0.039 136.632);
  --muted-foreground: oklch(0.723 0.047 136.272);
  --popover: oklch(0.134 0.025 358.043);
  --popover-foreground: oklch(0.984 0.001 356.699);
  --card: oklch(0.134 0.025 358.043);
  --card-foreground: oklch(0.984 0.001 356.699);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.583 0.153 4.516);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.736 0.173 137.477);
  --secondary-foreground: oklch(0.287 0.062 137.244);
  --accent: oklch(0.558 0.134 264.917);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.642 0.215 26.469);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.583 0.153 4.516);
  --chart-1: oklch(0.583 0.153 4.516);
  --chart-2: oklch(0.736 0.173 137.477);
  --chart-3: oklch(0.558 0.134 264.917);
  --chart-4: oklch(0.752 0.164 137.272);
  --chart-5: oklch(0.583 0.162 5.086);
}