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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 7.29:1 | AAA |
| Destructive | 4.82:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 8.15:1 | AAA |
| Destructive | 3.39:1 | AA Large |
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);
}