Financing is a shadcn/ui theme built around a blue primary color (#5479a6) with orange accents (#a68154). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#5479a6) on a blue-tinted background (#050a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a0fblack |
| Foreground | #020509black | #f5f7fawhitesmoke |
| Card | #ffffffwhite | #050a0fblack |
| Card foreground | #020509black | #f5f7fawhitesmoke |
| Popover | #ffffffwhite | #050a0fblack |
| Popover foreground | #020509black | #f5f7fawhitesmoke |
| Primary | #5479a6steelblue | #5479a6steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a68154peru | #a68154peru |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0ebe5linen | #1a150fblack |
| Muted foreground | #68645edimgray | #a19c97darkgray |
| Accent | #a68154peru | #a68154peru |
| Accent foreground | #000000black | #000000black |
| Destructive | #842806saddlebrown | #db420aorangered |
| Destructive foreground | #fcd0c0peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5479a6steelblue | #5479a6steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 5.89:1 | AA |
| Muted text | 4.96:1 | AA |
| Accent | 5.89:1 | AA |
| Destructive | 6.56:1 | AA |
| Text on background | 18.53:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 5.89:1 | AA |
| Muted text | 6.67:1 | AA |
| Accent | 5.89:1 | AA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Financing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.015 243.366);
--muted: oklch(0.943 0.009 73.145);
--muted-foreground: oklch(0.505 0.01 73.059);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.015 243.366);
--card: oklch(1 0 180);
--card-foreground: oklch(0.109 0.015 243.366);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.567 0.082 254.007);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.629 0.077 71.273);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.629 0.077 71.273);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.414 0.132 37.398);
--destructive-foreground: oklch(0.891 0.055 40.962);
--ring: oklch(0.567 0.082 254.007);
--chart-1: oklch(0.567 0.082 254.007);
--chart-2: oklch(0.629 0.077 71.273);
--chart-3: oklch(0.629 0.077 71.273);
--chart-4: oklch(0.653 0.075 71.498);
--chart-5: oklch(0.566 0.09 254.098);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.015 249.376);
--foreground: oklch(0.976 0.004 253.247);
--muted: oklch(0.199 0.014 72.496);
--muted-foreground: oklch(0.695 0.009 73.115);
--popover: oklch(0.141 0.015 249.376);
--popover-foreground: oklch(0.976 0.004 253.247);
--card: oklch(0.141 0.015 249.376);
--card-foreground: oklch(0.976 0.004 253.247);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.567 0.082 254.007);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.629 0.077 71.273);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.629 0.077 71.273);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.597 0.198 36.488);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.082 254.007);
--chart-1: oklch(0.567 0.082 254.007);
--chart-2: oklch(0.629 0.077 71.273);
--chart-3: oklch(0.629 0.077 71.273);
--chart-4: oklch(0.653 0.075 71.498);
--chart-5: oklch(0.566 0.09 254.098);
}