Present for shadcn/ui

Present is a shadcn/ui theme built around a vivid pink primary color (#fb84c1) with muted pink accents (#c9b1bd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid pink primary (#fb84c1) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0508black
Foreground
#13060dblack
#fbf8fasnow
Card
#fcfcfcsnow
#0d070ablack
Card foreground
#0f050ablack
#fdfcfcsnow
Popover
#ffffffwhite
#0a0508black
Popover foreground
#13060dblack
#fbf8fasnow
Primary
#fb84c1hotpink
#fb84c1hotpink
Primary foreground
#4a0327maroon
#4a0327maroon
Secondary
#d5cdd1lightgrey
#1b1317black
Secondary foreground
#3d3338darkslategray
#bda3b0darkgray
Muted
#ecd4e1gainsboro
#2b131fblack
Muted foreground
#493740darkslategray
#c8b6c0silver
Accent
#c9b1bdsilver
#322029darkslategray
Accent foreground
#2a1d24black
#cfb4c2silver
Destructive
#bd3005firebrick
#f95624tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fb84c1hotpink
#fb84c1hotpink

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.63:1AAA
Primary button6.86:1AA
Secondary button7.80:1AAA
Muted text7.94:1AAA
Accent8.06:1AAA
Destructive5.85:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.47:1AAA
Primary button6.86:1AA
Secondary button7.83:1AAA
Muted text9.00:1AAA
Accent7.99:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.028 347.672);
  --muted: oklch(0.895 0.031 345.151);
  --muted-foreground: oklch(0.359 0.029 346.265);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.028 347.672);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.136 0.024 346.114);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.762 0.159 349.278);
  --primary-foreground: oklch(0.269 0.106 356.36);
  --secondary: oklch(0.856 0.011 344.606);
  --secondary-foreground: oklch(0.334 0.017 345.529);
  --accent: oklch(0.784 0.032 345.303);
  --accent-foreground: oklch(0.25 0.023 346.514);
  --destructive: oklch(0.526 0.183 34.69);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.762 0.159 349.278);
  --chart-1: oklch(0.762 0.159 349.278);
  --chart-2: oklch(0.856 0.011 344.606);
  --chart-3: oklch(0.784 0.032 345.303);
  --chart-4: oklch(0.88 0.009 344.544);
  --chart-5: oklch(0.762 0.164 349.442);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.012 344.214);
  --foreground: oklch(0.983 0.004 344.383);
  --muted: oklch(0.225 0.044 348.904);
  --muted-foreground: oklch(0.795 0.024 345.037);
  --popover: oklch(0.127 0.012 344.214);
  --popover-foreground: oklch(0.983 0.004 344.383);
  --card: oklch(0.14 0.014 345.49);
  --card-foreground: oklch(0.992 0.002 344.334);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.762 0.159 349.278);
  --primary-foreground: oklch(0.269 0.106 356.36);
  --secondary: oklch(0.199 0.015 346.106);
  --secondary-foreground: oklch(0.742 0.037 345.507);
  --accent: oklch(0.269 0.032 347.108);
  --accent-foreground: oklch(0.798 0.036 345.405);
  --destructive: oklch(0.669 0.208 36.344);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.762 0.159 349.278);
  --chart-1: oklch(0.762 0.159 349.278);
  --chart-2: oklch(0.199 0.015 346.106);
  --chart-3: oklch(0.269 0.032 347.108);
  --chart-4: oklch(0.23 0.019 346.296);
  --chart-5: oklch(0.762 0.164 349.442);
}