Second for shadcn/ui

Second is a shadcn/ui theme built around a pink primary color (#ed91bc) with red accents (#ed9491). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#ed91bc) on a pink-tinted background (#0e060a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060ablack
Foreground
#13060cblack
#faf4f7whitesmoke
Card
#ffffffwhite
#0e060ablack
Card foreground
#13060cblack
#faf4f7whitesmoke
Popover
#ffffffwhite
#0e060ablack
Popover foreground
#13060cblack
#faf4f7whitesmoke
Primary
#ed91bcplum
#ed91bcplum
Primary foreground
#420b24maroon
#420b24maroon
Secondary
#ed91eaviolet
#ed91eaviolet
Secondary foreground
#420b40midnightblue
#420b40midnightblue
Muted
#f6eaf5lavenderblush
#150915black
Muted foreground
#6e596edimgray
#a691a6darkgray
Accent
#ed9491darksalmon
#ed9491darksalmon
Accent foreground
#420d0bmaroon
#420d0bmaroon
Destructive
#cb2601firebrick
#e92c01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ed91bcplum
#ed91bcplum

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button7.20:1AAA
Secondary button7.28:1AAA
Muted text5.41:1AA
Accent7.17:1AAA
Destructive5.50:1AA
Dark mode
Text on background18.43:1AAA
Text on card18.43:1AAA
Primary button7.20:1AAA
Secondary button7.28:1AAA
Muted text6.66:1AA
Accent7.17:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.028 350.363);
  --muted: oklch(0.949 0.02 326.726);
  --muted-foreground: oklch(0.492 0.043 327.265);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.028 350.363);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.148 0.028 350.363);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.765 0.122 350.91);
  --primary-foreground: oklch(0.259 0.087 356.83);
  --secondary: oklch(0.782 0.157 328.124);
  --secondary-foreground: oklch(0.274 0.107 329.495);
  --accent: oklch(0.758 0.108 22.051);
  --accent-foreground: oklch(0.254 0.082 26.823);
  --destructive: oklch(0.544 0.203 32.462);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.122 350.91);
  --chart-1: oklch(0.765 0.122 350.91);
  --chart-2: oklch(0.782 0.157 328.124);
  --chart-3: oklch(0.758 0.108 22.051);
  --chart-4: oklch(0.806 0.138 327.909);
  --chart-5: oklch(0.764 0.127 351.08);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.019 348.279);
  --foreground: oklch(0.974 0.007 347.11);
  --muted: oklch(0.165 0.031 328.031);
  --muted-foreground: oklch(0.682 0.04 327.03);
  --popover: oklch(0.138 0.019 348.279);
  --popover-foreground: oklch(0.974 0.007 347.11);
  --card: oklch(0.138 0.019 348.279);
  --card-foreground: oklch(0.974 0.007 347.11);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.765 0.122 350.91);
  --primary-foreground: oklch(0.259 0.087 356.83);
  --secondary: oklch(0.782 0.157 328.124);
  --secondary-foreground: oklch(0.274 0.107 329.495);
  --accent: oklch(0.758 0.108 22.051);
  --accent-foreground: oklch(0.254 0.082 26.823);
  --destructive: oklch(0.603 0.226 32.262);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.122 350.91);
  --chart-1: oklch(0.765 0.122 350.91);
  --chart-2: oklch(0.782 0.157 328.124);
  --chart-3: oklch(0.758 0.108 22.051);
  --chart-4: oklch(0.806 0.138 327.909);
  --chart-5: oklch(0.764 0.127 351.08);
}