Rising Fuchsia Tint for shadcn/ui

Rising Fuchsia Tint is a shadcn/ui theme built around a purple primary color (#c952cb) with pink accents (#cb5291). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c952cb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#140514black
#fcf8fcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#100410black
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#140514black
#fcf8fcsnow
Primary
#c952cbmediumorchid
#c952cbmediumorchid
Primary foreground
#000000black
#000000black
Secondary
#8d52cbdarkorchid
#8d52cbdarkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbd4e3gainsboro
#231c2bblack
Muted foreground
#51475cdarkslategray
#ada3b8darkgray
Accent
#cb5291palevioletred
#cb5291palevioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#791f0bmaroon
#ea401aorangered
Destructive foreground
#f9c9bepink
#ffffffwhite
Border
#e9e2e9lavender
#261c26black
Input
#e9e2e9lavender
#261c26black
Ring
#c952cbmediumorchid
#c952cbmediumorchid

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.62:1AAA
Primary button5.57:1AA
Secondary button4.99:1AA
Muted text6.03:1AA
Accent4.06:1AA Large
Destructive6.98:1AA
Dark mode
Text on background19.97:1AAA
Text on card20.20:1AAA
Primary button5.57:1AA
Secondary button4.99:1AA
Muted text6.82:1AA
Accent4.06:1AA Large
Destructive4.00:1AA Large

CSS variables

Paste this into your globals.css to use Rising Fuchsia Tint in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.04 326.759);
  --muted: oklch(0.88 0.022 307.5);
  --muted-foreground: oklch(0.416 0.037 306.75);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.04 326.759);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.138 0.035 326.732);
  --border: oklch(0.92 0.013 325.198);
  --input: oklch(0.92 0.013 325.198);
  --primary: oklch(0.638 0.207 327.008);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.564 0.183 303.306);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.615 0.167 351.015);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.386 0.128 33.748);
  --destructive-foreground: oklch(0.874 0.057 32.83);
  --ring: oklch(0.638 0.207 327.008);
  --chart-1: oklch(0.638 0.207 327.008);
  --chart-2: oklch(0.564 0.183 303.306);
  --chart-3: oklch(0.615 0.167 351.015);
  --chart-4: oklch(0.592 0.171 303.956);
  --chart-5: oklch(0.641 0.216 327.069);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.006 325.144);
  --muted: oklch(0.243 0.03 306.341);
  --muted-foreground: oklch(0.73 0.032 307.274);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.006 325.144);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.003 325.122);
  --border: oklch(0.243 0.024 325.743);
  --input: oklch(0.243 0.024 325.743);
  --primary: oklch(0.638 0.207 327.008);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.564 0.183 303.306);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.615 0.167 351.015);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.621 0.211 33.54);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.207 327.008);
  --chart-1: oklch(0.638 0.207 327.008);
  --chart-2: oklch(0.564 0.183 303.306);
  --chart-3: oklch(0.615 0.167 351.015);
  --chart-4: oklch(0.592 0.171 303.956);
  --chart-5: oklch(0.641 0.216 327.069);
}