sern.dev colors for shadcn/ui

sern.dev colors is a shadcn/ui theme built around a pink primary color (#cf446e) with pink accents (#b33e61). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#cf446e) on a red-tinted background (#0e0c0c).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0e0c0cblack
Foreground
#0d0205black
#ffffffwhite
Card
#fefbfcsnow
#291219black
Card foreground
#0d0205black
#fdfbfcsnow
Popover
#fefbfcsnow
#1d0d12black
Popover foreground
#0d0205black
#fdfbfcsnow
Primary
#cf446eindianred
#cf446eindianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0c3478midnightblue
#0c3478midnightblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eee2eclavender
#1d111bblack
Muted foreground
#665c64dimgray
#a399a1darkgray
Accent
#b33e61indianred
#722a40brown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d21616firebrick
#a91e1efirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e4e2e2gainsboro
#1b1819black
Input
#e4e2e2gainsboro
#1b1819black
Ring
#cf446eindianred
#cf446eindianred

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button4.45:1AA Large
Secondary button11.81:1AAA
Muted text5.09:1AA
Accent5.57:1AA
Destructive5.43:1AA
Dark mode
Text on background19.55:1AAA
Text on card17.00:1AAA
Primary button4.45:1AA Large
Secondary button11.81:1AAA
Muted text6.65:1AA
Accent9.92:1AAA
Destructive7.27:1AAA

CSS variables

Paste this into your globals.css to use sern.dev colors in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 356.747);
  --foreground: oklch(0.117 0.03 356.785);
  --muted: oklch(0.925 0.019 332.315);
  --muted-foreground: oklch(0.487 0.017 332.522);
  --popover: oklch(0.991 0.003 356.747);
  --popover-foreground: oklch(0.117 0.03 356.785);
  --card: oklch(0.991 0.003 356.747);
  --card-foreground: oklch(0.117 0.03 356.785);
  --border: oklch(0.914 0.003 356.76);
  --input: oklch(0.914 0.003 356.76);
  --primary: oklch(0.593 0.176 6.015);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.344 0.125 260.585);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.537 0.154 5.135);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.549 0.215 28.275);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.593 0.176 6.015);
  --chart-1: oklch(0.593 0.176 6.015);
  --chart-2: oklch(0.344 0.125 260.585);
  --chart-3: oklch(0.537 0.154 5.135);
  --chart-4: oklch(0.37 0.136 260.63);
  --chart-5: oklch(0.595 0.183 6.592);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.004 17.562);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0.028 334.004);
  --muted-foreground: oklch(0.694 0.016 332.339);
  --popover: oklch(0.185 0.029 0.736);
  --popover-foreground: oklch(0.991 0.002 356.722);
  --card: oklch(0.22 0.039 1.564);
  --card-foreground: oklch(0.991 0.002 356.722);
  --border: oklch(0.213 0.004 357.228);
  --input: oklch(0.213 0.004 357.228);
  --primary: oklch(0.593 0.176 6.015);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.344 0.125 260.585);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.395 0.103 4.317);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.476 0.174 26.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.593 0.176 6.015);
  --chart-1: oklch(0.593 0.176 6.015);
  --chart-2: oklch(0.344 0.125 260.585);
  --chart-3: oklch(0.395 0.103 4.317);
  --chart-4: oklch(0.37 0.136 260.63);
  --chart-5: oklch(0.595 0.183 6.592);
}