Parameter for shadcn/ui

Parameter is a shadcn/ui theme built around a vivid pink primary color (#b40e69) with vivid blue accents (#0e69b4). The light mode uses a neutral background (#fbf8fa). Dark mode keeps the vivid pink primary (#b40e69) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fbf8fasnow
#070305black
Foreground
#16040eblack
#fbf9fasnow
Card
#faf5f8whitesmoke
#0a0508black
Card foreground
#11030bblack
#fdfcfdwhite
Popover
#fbf8fasnow
#070305black
Popover foreground
#16040eblack
#fbf9fasnow
Primary
#b40e69mediumvioletred
#b40e69mediumvioletred
Primary foreground
#fef6fasnow
#fef6fasnow
Secondary
#69b40eolivedrab
#69b40eolivedrab
Secondary foreground
#000000black
#000000black
Muted
#dee2d9gainsboro
#22261dblack
Muted foreground
#525a49darkolivegreen
#aeb6a5darkgray
Accent
#0e69b4darkcyan
#0e69b4darkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#65130bmaroon
#ea4c3etomato
Destructive foreground
#f6b3aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b40e69mediumvioletred
#b40e69mediumvioletred

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.68:1AAA
Primary button6.15:1AA
Secondary button8.15:1AAA
Muted text5.50:1AA
Accent5.66:1AA
Destructive7.25:1AAA
Dark mode
Text on background19.53:1AAA
Text on card19.76:1AAA
Primary button6.15:1AA
Secondary button8.15:1AAA
Muted text7.38:1AAA
Accent5.66:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 342.719);
  --foreground: oklch(0.146 0.041 346.747);
  --muted: oklch(0.908 0.013 126.616);
  --muted-foreground: oklch(0.455 0.027 127.221);
  --popover: oklch(0.983 0.004 342.719);
  --popover-foreground: oklch(0.146 0.041 346.747);
  --card: oklch(0.974 0.006 342.771);
  --card-foreground: oklch(0.133 0.036 345.143);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.507 0.201 355.774);
  --primary-foreground: oklch(0.98 0.011 342.899);
  --secondary: oklch(0.694 0.193 133.129);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.514 0.141 250.428);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.333 0.117 29.753);
  --destructive-foreground: oklch(0.826 0.08 24.783);
  --ring: oklch(0.507 0.201 355.774);
  --chart-1: oklch(0.507 0.201 355.774);
  --chart-2: oklch(0.694 0.193 133.129);
  --chart-3: oklch(0.514 0.141 250.428);
  --chart-4: oklch(0.735 0.205 133.191);
  --chart-5: oklch(0.511 0.204 356.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.013 342.597);
  --foreground: oklch(0.984 0.003 342.684);
  --muted: oklch(0.26 0.018 127.339);
  --muted-foreground: oklch(0.764 0.024 126.839);
  --popover: oklch(0.11 0.013 342.597);
  --popover-foreground: oklch(0.984 0.003 342.684);
  --card: oklch(0.126 0.015 342.614);
  --card-foreground: oklch(0.992 0.001 342.651);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.507 0.201 355.774);
  --primary-foreground: oklch(0.98 0.011 342.899);
  --secondary: oklch(0.694 0.193 133.129);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.514 0.141 250.428);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.636 0.196 28.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.507 0.201 355.774);
  --chart-1: oklch(0.507 0.201 355.774);
  --chart-2: oklch(0.694 0.193 133.129);
  --chart-3: oklch(0.514 0.141 250.428);
  --chart-4: oklch(0.735 0.205 133.191);
  --chart-5: oklch(0.511 0.204 356.284);
}