Solvency is a shadcn/ui theme built around a vivid light orange primary color (#fee4c3) with vivid light yellow accents (#fafec3). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid light orange primary (#fee4c3) on an orange-tinted background (#0b0804).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #0b0804black |
| Foreground | #0c0803black | #ffffffwhite |
| Card | #fcfaf8snow | #0b0804black |
| Card foreground | #0c0803black | #ffffffwhite |
| Popover | #fcfaf8snow | #0b0804black |
| Popover foreground | #0c0803black | #ffffffwhite |
| Primary | #fee4c3bisque | #fee4c3bisque |
| Primary foreground | #281701black | #281701black |
| Secondary | #fec7c3pink | #fec7c3pink |
| Secondary foreground | #8c0c03darkred | #8c0c03darkred |
| Muted | #f7eeedlinen | #120808black |
| Muted foreground | #423e3edarkslategray | #c1bebdsilver |
| Accent | #fafec3lemonchiffon | #fafec3lemonchiffon |
| Accent foreground | #252801black | #252801black |
| Destructive | #da0b0bred | #f42f2fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fee4c3bisque | #fee4c3bisque |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 14.11:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 9.25:1 | AAA |
| Accent | 14.46:1 | AAA |
| Destructive | 5.20:1 | AA |
| Text on background | 19.96:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 14.11:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 10.67:1 | AAA |
| Accent | 14.46:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Solvency in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 74.933);
--foreground: oklch(0.139 0.017 81.985);
--muted: oklch(0.956 0.01 22.334);
--muted-foreground: oklch(0.368 0.005 22.368);
--popover: oklch(0.986 0.003 74.933);
--popover-foreground: oklch(0.139 0.017 81.985);
--card: oklch(0.986 0.003 74.933);
--card-foreground: oklch(0.139 0.017 81.985);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.932 0.052 74.479);
--primary-foreground: oklch(0.222 0.046 72.315);
--secondary: oklch(0.877 0.063 23.157);
--secondary-foreground: oklch(0.407 0.16 30.052);
--accent: oklch(0.979 0.075 110.873);
--accent-foreground: oklch(0.265 0.058 113.5);
--destructive: oklch(0.561 0.226 28.835);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.932 0.052 74.479);
--chart-1: oklch(0.932 0.052 74.479);
--chart-2: oklch(0.877 0.063 23.157);
--chart-3: oklch(0.979 0.075 110.873);
--chart-4: oklch(0.907 0.046 22.856);
--chart-5: oklch(0.933 0.053 74.459);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.013 80.997);
--foreground: oklch(1 0 180);
--muted: oklch(0.15 0.017 24.372);
--muted-foreground: oklch(0.803 0.004 22.271);
--popover: oklch(0.138 0.013 80.997);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.013 80.997);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.932 0.052 74.479);
--primary-foreground: oklch(0.222 0.046 72.315);
--secondary: oklch(0.877 0.063 23.157);
--secondary-foreground: oklch(0.407 0.16 30.052);
--accent: oklch(0.979 0.075 110.873);
--accent-foreground: oklch(0.265 0.058 113.5);
--destructive: oklch(0.626 0.23 27.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.932 0.052 74.479);
--chart-1: oklch(0.932 0.052 74.479);
--chart-2: oklch(0.877 0.063 23.157);
--chart-3: oklch(0.979 0.075 110.873);
--chart-4: oklch(0.907 0.046 22.856);
--chart-5: oklch(0.933 0.053 74.459);
}