Solvency is a shadcn/ui theme built around a vivid deep pink primary color (#7d0d3c) with vivid deep red accents (#7d160d). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid deep pink primary (#7d0d3c) on a pink-tinted background (#0f0609).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0f0609black |
| Foreground | #17030bblack | #f8f6f7whitesmoke |
| Card | #fefbfcsnow | #0f0609black |
| Card foreground | #17030bblack | #f8f6f7whitesmoke |
| Popover | #fefbfcsnow | #0f0609black |
| Popover foreground | #17030bblack | #f8f6f7whitesmoke |
| Primary | #7d0d3cbrown | #7d0d3cbrown |
| Primary foreground | #f9c3d9pink | #f9c3d9pink |
| Secondary | #7d0d73purple | #7d0d73purple |
| Secondary foreground | #f9c3f4mistyrose | #f9c3f4mistyrose |
| Muted | #f3e2f1lavender | #1d0c1bblack |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #7d160dmaroon | #7d160dmaroon |
| Accent foreground | #f9c7c3pink | #f9c7c3pink |
| Destructive | #ca1f16firebrick | #d82218crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d0d3cbrown | #7d0d3cbrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 5.67:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 5.64:1 | AA |
| Text on background | 18.61:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 7.69:1 | AAA |
| Accent | 7.02:1 | AAA |
| Destructive | 5.06:1 | AA |
Paste this into your globals.css to use Solvency in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 349.751);
--foreground: oklch(0.144 0.043 353.926);
--muted: oklch(0.931 0.027 328.357);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.991 0.003 349.751);
--popover-foreground: oklch(0.144 0.043 353.926);
--card: oklch(0.991 0.003 349.751);
--card-foreground: oklch(0.144 0.043 353.926);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.386 0.145 3.569);
--primary-foreground: oklch(0.871 0.067 351.735);
--secondary: oklch(0.412 0.176 332.351);
--secondary-foreground: oklch(0.88 0.088 329.06);
--accent: oklch(0.383 0.138 29.905);
--accent-foreground: oklch(0.873 0.057 24.333);
--destructive: oklch(0.539 0.204 29.173);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.145 3.569);
--chart-1: oklch(0.386 0.145 3.569);
--chart-2: oklch(0.412 0.176 332.351);
--chart-3: oklch(0.383 0.138 29.905);
--chart-4: oklch(0.444 0.191 332.394);
--chart-5: oklch(0.389 0.148 4.185);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.02 351.007);
--foreground: oklch(0.976 0.002 349.734);
--muted: oklch(0.187 0.039 330.036);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.137 0.02 351.007);
--popover-foreground: oklch(0.976 0.002 349.734);
--card: oklch(0.137 0.02 351.007);
--card-foreground: oklch(0.976 0.002 349.734);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.386 0.145 3.569);
--primary-foreground: oklch(0.871 0.067 351.735);
--secondary: oklch(0.412 0.176 332.351);
--secondary-foreground: oklch(0.88 0.088 329.06);
--accent: oklch(0.383 0.138 29.905);
--accent-foreground: oklch(0.873 0.057 24.333);
--destructive: oklch(0.566 0.215 29.199);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.145 3.569);
--chart-1: oklch(0.386 0.145 3.569);
--chart-2: oklch(0.412 0.176 332.351);
--chart-3: oklch(0.383 0.138 29.905);
--chart-4: oklch(0.444 0.191 332.394);
--chart-5: oklch(0.389 0.148 4.185);
}