Dazzling for shadcn/ui

Dazzling is a shadcn/ui theme built around a vivid pink primary color (#fa2e7c) with muted pink accents (#cba4b3). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid pink primary (#fa2e7c) on a pink-tinted background (#0e0609).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0e0609black
Foreground
#040102black
#ffffffwhite
Card
#fefbfcsnow
#0e0609black
Card foreground
#040102black
#ffffffwhite
Popover
#fefbfcsnow
#0e0609black
Popover foreground
#040102black
#ffffffwhite
Primary
#fa2e7cdeeppink
#fa2e7cdeeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d7c6cdthistle
#252223black
Secondary foreground
#3f2c33darkslategray
#c0b9bcsilver
Muted
#e3d9ddgainsboro
#261c20black
Muted foreground
#5a444cdarkslategray
#bba5addarkgray
Accent
#cba4b3silver
#372a2fdarkslategray
Accent foreground
#27161dblack
#d1c2c8thistle
Destructive
#892706saddlebrown
#f65723tomato
Destructive foreground
#fdd2c4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fa2e7cdeeppink
#fa2e7cdeeppink

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button3.66:1AA Large
Secondary button7.94:1AAA
Muted text6.42:1AA
Accent7.81:1AAA
Destructive6.45:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button3.66:1AA Large
Secondary button8.18:1AAA
Muted text7.16:1AAA
Accent8.00:1AAA
Destructive6.31:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 351.669);
  --foreground: oklch(0.082 0.02 351.093);
  --muted: oklch(0.894 0.013 351.998);
  --muted-foreground: oklch(0.413 0.033 353.762);
  --popover: oklch(0.991 0.003 351.669);
  --popover-foreground: oklch(0.082 0.02 351.093);
  --card: oklch(0.991 0.003 351.669);
  --card-foreground: oklch(0.082 0.02 351.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.65 0.237 4.785);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.843 0.02 352.267);
  --secondary-foreground: oklch(0.319 0.029 354.057);
  --accent: oklch(0.759 0.049 353.368);
  --accent-foreground: oklch(0.226 0.029 355.007);
  --destructive: oklch(0.423 0.139 36.329);
  --destructive-foreground: oklch(0.897 0.051 39.268);
  --ring: oklch(0.65 0.237 4.785);
  --chart-1: oklch(0.65 0.237 4.785);
  --chart-2: oklch(0.843 0.02 352.267);
  --chart-3: oklch(0.759 0.049 353.368);
  --chart-4: oklch(0.868 0.017 352.141);
  --chart-5: oklch(0.653 0.242 5.289);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 352.728);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.24 0.018 353.642);
  --muted-foreground: oklch(0.743 0.028 352.647);
  --popover: oklch(0.138 0.017 352.728);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.017 352.728);
  --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.65 0.237 4.785);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.256 0.006 352.241);
  --secondary-foreground: oklch(0.793 0.008 351.887);
  --accent: oklch(0.301 0.022 353.571);
  --accent-foreground: oklch(0.828 0.019 352.221);
  --destructive: oklch(0.665 0.203 37.254);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.65 0.237 4.785);
  --chart-1: oklch(0.65 0.237 4.785);
  --chart-2: oklch(0.256 0.006 352.241);
  --chart-3: oklch(0.301 0.022 353.571);
  --chart-4: oklch(0.287 0.007 352.275);
  --chart-5: oklch(0.653 0.242 5.289);
}