Designer for shadcn/ui

Designer is a shadcn/ui theme built around a deep pink primary color (#451633) with deep green accents (#164529). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#451633) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#ffffffwhite
#040103black
Foreground
#0c0408black
#faf5f8whitesmoke
Card
#fcfcfcsnow
#080206black
Card foreground
#080206black
#fcf8fasnow
Popover
#ffffffwhite
#040103black
Popover foreground
#0c0408black
#faf5f8whitesmoke
Primary
#451633darkslategray
#451633darkslategray
Primary foreground
#e4aacdplum
#e4aacdplum
Secondary
#164529darkslategray
#164529darkslategray
Secondary foreground
#aae4c1powderblue
#aae4c1powderblue
Muted
#eef2efwhitesmoke
#0d110fblack
Muted foreground
#4f6457dimgray
#9bb0a4darkgray
Accent
#164529darkslategray
#164529darkslategray
Accent foreground
#aae4c1powderblue
#aae4c1powderblue
Destructive
#792306maroon
#ed450corangered
Destructive foreground
#fbc8b6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#451633darkslategray
#451633darkslategray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.11:1AAA
Primary button7.69:1AAA
Secondary button7.56:1AAA
Muted text5.62:1AA
Accent7.56:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.25:1AAA
Text on card19.49:1AAA
Primary button7.69:1AAA
Secondary button7.56:1AAA
Muted text8.26:1AAA
Accent7.56:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.023 340.623);
  --muted: oklch(0.956 0.005 160.116);
  --muted-foreground: oklch(0.481 0.033 158.552);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.023 340.623);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.107 0.02 340.369);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.287 0.081 346.363);
  --primary-foreground: oklch(0.802 0.08 342.375);
  --secondary: oklch(0.351 0.071 153.986);
  --secondary-foreground: oklch(0.869 0.075 158.053);
  --accent: oklch(0.351 0.071 153.986);
  --accent-foreground: oklch(0.869 0.075 158.053);
  --destructive: oklch(0.389 0.125 36.726);
  --destructive-foreground: oklch(0.872 0.064 39.241);
  --ring: oklch(0.287 0.081 346.363);
  --chart-1: oklch(0.287 0.081 346.363);
  --chart-2: oklch(0.351 0.071 153.986);
  --chart-3: oklch(0.351 0.071 153.986);
  --chart-4: oklch(0.389 0.08 153.782);
  --chart-5: oklch(0.287 0.085 346.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.016 340.366);
  --foreground: oklch(0.974 0.006 340.384);
  --muted: oklch(0.173 0.007 159.22);
  --muted-foreground: oklch(0.738 0.03 159.269);
  --popover: oklch(0.085 0.016 340.366);
  --popover-foreground: oklch(0.974 0.006 340.384);
  --card: oklch(0.107 0.02 340.366);
  --card-foreground: oklch(0.983 0.004 340.333);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.287 0.081 346.363);
  --primary-foreground: oklch(0.802 0.08 342.375);
  --secondary: oklch(0.351 0.071 153.986);
  --secondary-foreground: oklch(0.869 0.075 158.053);
  --accent: oklch(0.351 0.071 153.986);
  --accent-foreground: oklch(0.869 0.075 158.053);
  --destructive: oklch(0.631 0.213 35.668);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.287 0.081 346.363);
  --chart-1: oklch(0.287 0.081 346.363);
  --chart-2: oklch(0.351 0.071 153.986);
  --chart-3: oklch(0.351 0.071 153.986);
  --chart-4: oklch(0.389 0.08 153.782);
  --chart-5: oklch(0.287 0.085 346.722);
}