Tricky for shadcn/ui

Tricky is a shadcn/ui theme built around a muted pink primary color (#57474f) with near-white accents (#e9e8e8). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted pink primary (#57474f) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fefbfcsnow
#070305black
Foreground
#15040dblack
#fcf8fasnow
Card
#fefbfcsnow
#070305black
Card foreground
#15040dblack
#fcf8fasnow
Popover
#fefbfcsnow
#070305black
Popover foreground
#15040dblack
#fcf8fasnow
Primary
#57474fdarkslategray
#57474fdarkslategray
Primary foreground
#eae6e8lavender
#eae6e8lavender
Secondary
#e9e8e8lavender
#32252bdarkslategray
Secondary foreground
#514d4fdarkslategray
#cdbcc4silver
Muted
#e1dbdegainsboro
#241e21black
Muted foreground
#695961dimgray
#a6969edarkgray
Accent
#e9e8e8lavender
#32252bdarkslategray
Accent foreground
#514d4fdarkslategray
#cdbcc4silver
Destructive
#da3001orangered
#fe4410orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#57474fdarkslategray
#57474fdarkslategray

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button7.00:1AAA
Secondary button6.77:1AA
Muted text4.79:1AA
Accent6.77:1AA
Destructive4.75:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.00:1AAA
Secondary button8.08:1AAA
Muted text5.81:1AA
Accent8.08:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 345.261);
  --foreground: oklch(0.147 0.036 349.084);
  --muted: oklch(0.897 0.008 345.365);
  --muted-foreground: oklch(0.482 0.023 346.364);
  --popover: oklch(0.99 0.004 345.261);
  --popover-foreground: oklch(0.147 0.036 349.084);
  --card: oklch(0.99 0.004 345.261);
  --card-foreground: oklch(0.147 0.036 349.084);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.418 0.025 346.626);
  --primary-foreground: oklch(0.928 0.006 345.307);
  --secondary: oklch(0.931 0.001 345.177);
  --secondary-foreground: oklch(0.426 0.005 345.441);
  --accent: oklch(0.931 0.001 345.177);
  --accent-foreground: oklch(0.426 0.005 345.441);
  --destructive: oklch(0.579 0.21 33.491);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.025 346.626);
  --chart-1: oklch(0.418 0.025 346.626);
  --chart-2: oklch(0.931 0.001 345.177);
  --chart-3: oklch(0.931 0.001 345.177);
  --chart-4: oklch(0.954 0.001 345.165);
  --chart-5: oklch(0.415 0.032 347.07);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.011 345.043);
  --foreground: oklch(0.982 0.005 345.279);
  --muted: oklch(0.244 0.011 346.248);
  --muted-foreground: oklch(0.69 0.021 345.93);
  --popover: oklch(0.111 0.011 345.043);
  --popover-foreground: oklch(0.982 0.005 345.279);
  --card: oklch(0.111 0.011 345.043);
  --card-foreground: oklch(0.982 0.005 345.279);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.418 0.025 346.626);
  --primary-foreground: oklch(0.928 0.006 345.307);
  --secondary: oklch(0.282 0.022 347.121);
  --secondary-foreground: oklch(0.811 0.023 345.874);
  --accent: oklch(0.282 0.022 347.121);
  --accent-foreground: oklch(0.811 0.023 345.874);
  --destructive: oklch(0.658 0.228 34.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.025 346.626);
  --chart-1: oklch(0.418 0.025 346.626);
  --chart-2: oklch(0.282 0.022 347.121);
  --chart-3: oklch(0.282 0.022 347.121);
  --chart-4: oklch(0.311 0.026 347.197);
  --chart-5: oklch(0.415 0.032 347.07);
}