Voluminous is a shadcn/ui theme built around a violet primary color (#593aa1) with green accents (#82a13a). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#593aa1) on a violet-tinted background (#06040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06040cblack |
| Foreground | #080510black | #fcfcfdwhite |
| Card | #fcfbfewhite | #06040cblack |
| Card foreground | #080510black | #fcfcfdwhite |
| Popover | #fcfbfewhite | #06040cblack |
| Popover foreground | #080510black | #fcfcfdwhite |
| Primary | #593aa1rebeccapurple | #593aa1rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #82a13aolivedrab | #82a13aolivedrab |
| Secondary foreground | #090b04black | #090b04black |
| Muted | #f0f1eewhitesmoke | #10110eblack |
| Muted foreground | #54584bdarkolivegreen | #b0b4a7darkgray |
| Accent | #82a13aolivedrab | #82a13aolivedrab |
| Accent foreground | #090b04black | #090b04black |
| Destructive | #611a0amaroon | #e9411corangered |
| Destructive foreground | #f6b5a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #593aa1rebeccapurple | #593aa1rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 6.44:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 7.26:1 | AAA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 8.98:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Voluminous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 299.983);
--foreground: oklch(0.127 0.026 298.977);
--muted: oklch(0.957 0.003 120.097);
--muted-foreground: oklch(0.453 0.021 120.834);
--popover: oklch(0.99 0.003 299.983);
--popover-foreground: oklch(0.127 0.026 298.977);
--card: oklch(0.99 0.003 299.983);
--card-foreground: oklch(0.127 0.026 298.977);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.443 0.159 292.527);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.665 0.135 124.222);
--secondary-foreground: oklch(0.145 0.018 120.078);
--accent: oklch(0.665 0.135 124.222);
--accent-foreground: oklch(0.145 0.018 120.078);
--destructive: oklch(0.333 0.107 33.917);
--destructive-foreground: oklch(0.831 0.079 32.998);
--ring: oklch(0.443 0.159 292.527);
--chart-1: oklch(0.443 0.159 292.527);
--chart-2: oklch(0.665 0.135 124.222);
--chart-3: oklch(0.665 0.135 124.222);
--chart-4: oklch(0.699 0.142 124.25);
--chart-5: oklch(0.439 0.167 291.828);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.023 300.086);
--foreground: oklch(0.991 0.002 300.012);
--muted: oklch(0.174 0.005 120.533);
--muted-foreground: oklch(0.763 0.019 120.453);
--popover: oklch(0.115 0.023 300.086);
--popover-foreground: oklch(0.991 0.002 300.012);
--card: oklch(0.115 0.023 300.086);
--card-foreground: oklch(0.991 0.002 300.012);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.443 0.159 292.527);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.665 0.135 124.222);
--secondary-foreground: oklch(0.145 0.018 120.078);
--accent: oklch(0.665 0.135 124.222);
--accent-foreground: oklch(0.145 0.018 120.078);
--destructive: oklch(0.619 0.209 33.596);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.443 0.159 292.527);
--chart-1: oklch(0.443 0.159 292.527);
--chart-2: oklch(0.665 0.135 124.222);
--chart-3: oklch(0.665 0.135 124.222);
--chart-4: oklch(0.699 0.142 124.25);
--chart-5: oklch(0.439 0.167 291.828);
}