Silky for shadcn/ui

Silky is a shadcn/ui theme built around a pink primary color (#cd2d75) with red accents (#cd352d). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the pink primary (#cd2d75) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#000000black
Foreground
#16040cblack
#fdfcfcsnow
Card
#fcf8fasnow
#030303black
Card foreground
#110309black
#ffffffwhite
Popover
#fdfbfcsnow
#000000black
Popover foreground
#16040cblack
#fdfcfcsnow
Primary
#cd2d75mediumvioletred
#cd2d75mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cd2dc5mediumorchid
#cd2dc5mediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8cae6gainsboro
#351734darkslategray
Muted foreground
#645e64dimgray
#a19ba1darkgray
Accent
#cd352dfirebrick
#cd352dfirebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#db3a00orangered
#ff5314orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cd2d75mediumvioletred
#cd2d75mediumvioletred

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.15:1AAA
Primary button4.97:1AA
Secondary button4.39:1AA Large
Muted text4.20:1AA Large
Accent5.07:1AA
Destructive4.52:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button4.97:1AA
Secondary button4.39:1AA Large
Muted text5.81:1AA
Accent5.07:1AA
Destructive3.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 347.877);
  --foreground: oklch(0.145 0.039 351.927);
  --muted: oklch(0.872 0.05 327.556);
  --muted-foreground: oklch(0.489 0.011 327.25);
  --popover: oklch(0.991 0.002 347.877);
  --popover-foreground: oklch(0.145 0.039 351.927);
  --card: oklch(0.982 0.005 347.944);
  --card-foreground: oklch(0.132 0.035 349.893);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.571 0.202 358.981);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.606 0.247 330.398);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.562 0.19 28.058);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.59 0.204 35.509);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.571 0.202 358.981);
  --chart-1: oklch(0.571 0.202 358.981);
  --chart-2: oklch(0.606 0.247 330.398);
  --chart-3: oklch(0.562 0.19 28.058);
  --chart-4: oklch(0.625 0.245 330.262);
  --chart-5: oklch(0.575 0.208 359.589);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 347.84);
  --muted: oklch(0.262 0.065 329.105);
  --muted-foreground: oklch(0.697 0.01 327.175);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 347.84);
  --card: oklch(0.092 0 180);
  --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.571 0.202 358.981);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.606 0.247 330.398);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.562 0.19 28.058);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.674 0.218 37.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.571 0.202 358.981);
  --chart-1: oklch(0.571 0.202 358.981);
  --chart-2: oklch(0.606 0.247 330.398);
  --chart-3: oklch(0.562 0.19 28.058);
  --chart-4: oklch(0.625 0.245 330.262);
  --chart-5: oklch(0.575 0.208 359.589);
}