Pay for shadcn/ui

Pay is a shadcn/ui theme built around a blue primary color (#2e42a8) with muted light blue accents (#c5c8d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#2e42a8) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#000000black
#f6f7f8whitesmoke
Card
#ffffffwhite
#010204black
Card foreground
#000000black
#f6f7f8whitesmoke
Popover
#ffffffwhite
#010204black
Popover foreground
#000000black
#f6f7f8whitesmoke
Primary
#2e42a8darkslateblue
#2e42a8darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c5c8d8lightgrey
#28292edarkslategray
Secondary foreground
#2b2f40darkslategray
#c0c2c8silver
Muted
#e6e8eflavender
#101219black
Muted foreground
#5a5c68dimgray
#979aa5darkgray
Accent
#c5c8d8lightgrey
#28292edarkslategray
Accent foreground
#2b2f40darkslategray
#c0c2c8silver
Destructive
#701e00maroon
#ff4805orangered
Destructive foreground
#ffbca3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e42a8darkslateblue
#2e42a8darkslateblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.49:1AAA
Secondary button8.00:1AAA
Muted text5.41:1AA
Accent8.00:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button8.49:1AAA
Secondary button8.11:1AAA
Muted text6.68:1AA
Accent8.11:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.931 0.01 277.114);
  --muted-foreground: oklch(0.478 0.018 276.701);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.43 0.165 269.481);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.836 0.022 276.892);
  --secondary-foreground: oklch(0.309 0.031 275.66);
  --accent: oklch(0.836 0.022 276.892);
  --accent-foreground: oklch(0.309 0.031 275.66);
  --destructive: oklch(0.366 0.121 37.558);
  --destructive-foreground: oklch(0.85 0.085 40.848);
  --ring: oklch(0.43 0.165 269.481);
  --chart-1: oklch(0.43 0.165 269.481);
  --chart-2: oklch(0.836 0.022 276.892);
  --chart-3: oklch(0.836 0.022 276.892);
  --chart-4: oklch(0.863 0.018 276.964);
  --chart-5: oklch(0.427 0.172 268.967);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.012 271.553);
  --foreground: oklch(0.975 0.003 277.223);
  --muted: oklch(0.182 0.015 275.991);
  --muted-foreground: oklch(0.687 0.017 276.914);
  --popover: oklch(0.082 0.012 271.553);
  --popover-foreground: oklch(0.975 0.003 277.223);
  --card: oklch(0.082 0.012 271.553);
  --card-foreground: oklch(0.975 0.003 277.223);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.43 0.165 269.481);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.283 0.009 276.783);
  --secondary-foreground: oklch(0.814 0.01 277.095);
  --accent: oklch(0.283 0.009 276.783);
  --accent-foreground: oklch(0.814 0.01 277.095);
  --destructive: oklch(0.663 0.227 35.643);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.43 0.165 269.481);
  --chart-1: oklch(0.43 0.165 269.481);
  --chart-2: oklch(0.283 0.009 276.783);
  --chart-3: oklch(0.283 0.009 276.783);
  --chart-4: oklch(0.313 0.011 276.764);
  --chart-5: oklch(0.427 0.172 268.967);
}