Billing for shadcn/ui

Billing is a shadcn/ui theme built around a near-white primary color (#f5f8ff) with muted light blue accents (#dbdde1). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f5f8ff) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#030812black
#f5f6fawhitesmoke
Card
#fcfcfcsnow
#030408black
Card foreground
#02060dblack
#f8f9fcghostwhite
Popover
#ffffffwhite
#010204black
Popover foreground
#030812black
#f5f6fawhitesmoke
Primary
#f5f8ffghostwhite
#f5f8ffghostwhite
Primary foreground
#0643bcmediumblue
#0643bcmediumblue
Secondary
#dbdde1gainsboro
#1f2228black
Secondary foreground
#3e434cdarkslategray
#b4bac5silver
Muted
#e3e5e8gainsboro
#17191cblack
Muted foreground
#4e576adimgray
#959fb1darkgray
Accent
#dbdde1gainsboro
#1f2228black
Accent foreground
#3e434cdarkslategray
#b4bac5silver
Destructive
#da2d07orangered
#f8502atomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5f8ffghostwhite
#f5f8ffghostwhite

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card19.86:1AAA
Primary button7.80:1AAA
Secondary button7.29:1AAA
Muted text5.73:1AA
Accent7.29:1AAA
Destructive4.82:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.45:1AAA
Primary button7.80:1AAA
Secondary button8.15:1AAA
Muted text6.61:1AA
Accent8.15:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.026 256.043);
  --muted: oklch(0.921 0.004 264.536);
  --muted-foreground: oklch(0.457 0.032 264.183);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.132 0.026 256.043);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.119 0.022 254.025);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.979 0.009 264.52);
  --primary-foreground: oklch(0.436 0.199 262.37);
  --secondary: oklch(0.896 0.006 264.528);
  --secondary-foreground: oklch(0.38 0.017 264.353);
  --accent: oklch(0.896 0.006 264.528);
  --accent-foreground: oklch(0.38 0.017 264.353);
  --destructive: oklch(0.576 0.211 32.619);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.979 0.009 264.52);
  --chart-1: oklch(0.979 0.009 264.52);
  --chart-2: oklch(0.896 0.006 264.528);
  --chart-3: oklch(0.896 0.006 264.528);
  --chart-4: oklch(0.921 0.005 264.534);
  --chart-5: oklch(0.979 0.009 264.519);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.01 257.732);
  --foreground: oklch(0.974 0.005 264.535);
  --muted: oklch(0.212 0.006 264.428);
  --muted-foreground: oklch(0.7 0.029 264.37);
  --popover: oklch(0.086 0.01 257.732);
  --popover-foreground: oklch(0.974 0.005 264.535);
  --card: oklch(0.108 0.012 257.732);
  --card-foreground: oklch(0.983 0.003 264.541);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.979 0.009 264.52);
  --primary-foreground: oklch(0.436 0.199 262.37);
  --secondary: oklch(0.252 0.013 264.319);
  --secondary-foreground: oklch(0.787 0.017 264.468);
  --accent: oklch(0.252 0.013 264.319);
  --accent-foreground: oklch(0.787 0.017 264.468);
  --destructive: oklch(0.662 0.211 33.929);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.979 0.009 264.52);
  --chart-1: oklch(0.979 0.009 264.52);
  --chart-2: oklch(0.252 0.013 264.319);
  --chart-3: oklch(0.252 0.013 264.319);
  --chart-4: oklch(0.282 0.015 264.303);
  --chart-5: oklch(0.979 0.009 264.519);
}