Spending is a shadcn/ui theme built around a vivid light green primary color (#dffabd) with muted light green accents (#d5dacd). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid light green primary (#dffabd) on a neutral background (#050802).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #050802black |
| Foreground | #050802black | #f8f9f5whitesmoke |
| Card | #fdfefbwhite | #050802black |
| Card foreground | #050802black | #f8f9f5whitesmoke |
| Popover | #fdfefbwhite | #050802black |
| Popover foreground | #050802black | #f8f9f5whitesmoke |
| Primary | #dffabdpalegoldenrod | #dffabdpalegoldenrod |
| Primary foreground | #111c02black | #111c02black |
| Secondary | #e3e6e0gainsboro | #22271cblack |
| Secondary foreground | #4b5143darkslategray | #bcc6aesilver |
| Muted | #e3e7dfgainsboro | #1d2018black |
| Muted foreground | #657156dimgray | #9da98edarkseagreen |
| Accent | #d5dacdlightgrey | #3a442cdarkslategray |
| Accent foreground | #3c4332darkslategray | #d2dbc7lightgrey |
| Destructive | #680f03maroon | #f93d24orangered |
| Destructive foreground | #fdaba1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dffabdpalegoldenrod | #dffabdpalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 15.54:1 | AAA |
| Secondary button | 6.50:1 | AA |
| Muted text | 4.13:1 | AA Large |
| Accent | 7.22:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 15.54:1 | AAA |
| Secondary button | 8.62:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.16:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Spending in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 125.785);
--foreground: oklch(0.127 0.018 124.923);
--muted: oklch(0.922 0.01 125.889);
--muted-foreground: oklch(0.532 0.044 126.904);
--popover: oklch(0.995 0.003 125.785);
--popover-foreground: oklch(0.127 0.018 124.923);
--card: oklch(0.995 0.003 125.785);
--card-foreground: oklch(0.127 0.018 124.923);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.95 0.084 126.971);
--primary-foreground: oklch(0.21 0.05 128.721);
--secondary: oklch(0.921 0.008 125.855);
--secondary-foreground: oklch(0.426 0.025 126.548);
--accent: oklch(0.881 0.019 126.023);
--accent-foreground: oklch(0.372 0.031 126.889);
--destructive: oklch(0.335 0.125 31.556);
--destructive-foreground: oklch(0.818 0.098 27.683);
--ring: oklch(0.95 0.084 126.971);
--chart-1: oklch(0.95 0.084 126.971);
--chart-2: oklch(0.921 0.008 125.855);
--chart-3: oklch(0.881 0.019 126.023);
--chart-4: oklch(0.943 0.006 125.821);
--chart-5: oklch(0.952 0.087 127.013);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.02 124.87);
--foreground: oklch(0.981 0.005 125.812);
--muted: oklch(0.236 0.014 126.572);
--muted-foreground: oklch(0.719 0.042 126.529);
--popover: oklch(0.127 0.02 124.87);
--popover-foreground: oklch(0.981 0.005 125.812);
--card: oklch(0.127 0.02 124.87);
--card-foreground: oklch(0.981 0.005 125.812);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.95 0.084 126.971);
--primary-foreground: oklch(0.21 0.05 128.721);
--secondary: oklch(0.263 0.021 126.874);
--secondary-foreground: oklch(0.812 0.034 126.307);
--accent: oklch(0.371 0.043 127.386);
--accent-foreground: oklch(0.88 0.029 126.181);
--destructive: oklch(0.645 0.227 31.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.084 126.971);
--chart-1: oklch(0.95 0.084 126.971);
--chart-2: oklch(0.263 0.021 126.874);
--chart-3: oklch(0.371 0.043 127.386);
--chart-4: oklch(0.298 0.026 126.939);
--chart-5: oklch(0.952 0.087 127.013);
}