duobudget is a shadcn/ui theme built around a vivid blue primary color (#1d5af9) with vivid blue accents (#007aff). The light mode uses a neutral background (#f9f9f9). Dark mode switches to a blue primary (#7289da) on a blue-tinted background (#282b30).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f9f9ghostwhite | #282b30darkslategray |
| Foreground | #040102black | #fcf8fasnow |
| Card | #ffffffwhite | #1e2124black |
| Card foreground | #232323black | #fcf8fasnow |
| Popover | #ffffffwhite | #1e2124black |
| Popover foreground | #1a1a1ablack | #fcf8fasnow |
| Primary | #1d5af9royalblue | #7289dacornflowerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dadadagainsboro | #424549darkslategray |
| Secondary foreground | #1a1a1ablack | #ffffffwhite |
| Muted | #efefefwhitesmoke | #1e2124black |
| Muted foreground | #818181gray | #9b9b9bdarkgray |
| Accent | #007affdodgerblue | #282b30darkslategray |
| Accent foreground | #ffffffwhite | #7289dacornflowerblue |
| Destructive | #ff3b30tomato | #da373ccrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #cececelightgrey | #2f2f2fdarkslategray |
| Input | #cececelightgrey | #424549darkslategray |
| Ring | #999999darkgray | #282b30darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 15.71:1 | AAA |
| Primary button | 5.40:1 | AA |
| Secondary button | 12.44:1 | AAA |
| Muted text | 3.39:1 | AA Large |
| Accent | 4.01:1 | AA Large |
| Destructive | 3.54:1 | AA Large |
| Text on background | 13.49:1 | AAA |
| Text on card | 15.36:1 | AAA |
| Primary button | 3.32:1 | AA Large |
| Secondary button | 9.63:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 4.26:1 | AA Large |
| Destructive | 4.57:1 | AA |
Paste this into your globals.css to use duobudget in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0 180);
--foreground: oklch(0.084 0.015 348.404);
--muted: oklch(0.953 0 198.435);
--muted-foreground: oklch(0.605 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.218 0 180);
--card: oklch(1 0 180);
--card-foreground: oklch(0.256 0 180);
--border: oklch(0.851 0 180);
--input: oklch(0.851 0 180);
--primary: oklch(0.54 0.244 263.823);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.888 0 172.405);
--secondary-foreground: oklch(0.216 0 180);
--accent: oklch(0.603 0.218 257.42);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.654 0.232 28.66);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0 180);
--chart-1: oklch(0.54 0.244 263.823);
--chart-2: oklch(0.888 0 172.405);
--chart-3: oklch(0.603 0.218 257.42);
--chart-4: oklch(0.912 0 190.305);
--chart-5: oklch(0.54 0.251 263.752);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.288 0.01 260.707);
--foreground: oklch(0.983 0.004 348.851);
--muted: oklch(0.246 0.007 248.122);
--muted-foreground: oklch(0.689 0 164.055);
--popover: oklch(0.246 0.007 248.122);
--popover-foreground: oklch(0.983 0.004 348.851);
--card: oklch(0.246 0.007 248.122);
--card-foreground: oklch(0.983 0.004 348.851);
--border: oklch(0.305 0 171.87);
--input: oklch(0.389 0.008 255.543);
--primary: oklch(0.647 0.124 270.623);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.389 0.008 255.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.288 0.01 260.707);
--accent-foreground: oklch(0.647 0.124 270.623);
--destructive: oklch(0.588 0.199 24.393);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.288 0.01 260.707);
--chart-1: oklch(0.647 0.124 270.623);
--chart-2: oklch(0.389 0.008 255.543);
--chart-3: oklch(0.288 0.01 260.707);
--chart-4: oklch(0.417 0.009 255.544);
--chart-5: oklch(0.644 0.131 270.422);
}