Weighty is a shadcn/ui theme built around a violet primary color (#633e84) with neutral gray accents (#dedede). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#633e84) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #08050bblack |
| Foreground | #000000black | #faf8fbghostwhite |
| Card | #faf7fcghostwhite | #0a060eblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #08050bblack |
| Popover foreground | #000000black | #faf8fbghostwhite |
| Primary | #633e84rebeccapurple | #633e84rebeccapurple |
| Primary foreground | #faf8fcghostwhite | #faf8fcghostwhite |
| Secondary | #dededegainsboro | #312e33darkslategray |
| Secondary foreground | #454545darkslategray | #cac6cdlightgrey |
| Muted | #e1d0d0lightgrey | #271e2fdarkslategray |
| Muted foreground | #735959dimgray | #9a8ca6darkgray |
| Accent | #dededegainsboro | #312e33darkslategray |
| Accent foreground | #454545darkslategray | #cac6cdlightgrey |
| Destructive | #c84609chocolate | #e5500borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #633e84rebeccapurple | #633e84rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 4.29:1 | AA Large |
| Accent | 7.11:1 | AAA |
| Destructive | 4.86:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Weighty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 309.75);
--foreground: oklch(0 0 0);
--muted: oklch(0.872 0.019 17.518);
--muted-foreground: oklch(0.49 0.035 18.421);
--popover: oklch(0.99 0.003 309.75);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 309.714);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.439 0.116 306.871);
--primary-foreground: oklch(0.982 0.005 309.732);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.9 0 188.746);
--accent-foreground: oklch(0.39 0 165.964);
--destructive: oklch(0.568 0.176 39.548);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.116 306.871);
--chart-1: oklch(0.439 0.116 306.871);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.9 0 188.746);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.437 0.125 306.556);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.017 310.84);
--foreground: oklch(0.982 0.004 309.741);
--muted: oklch(0.253 0.033 308.456);
--muted-foreground: oklch(0.661 0.042 309.159);
--popover: oklch(0.123 0.017 310.84);
--popover-foreground: oklch(0.982 0.004 309.741);
--card: oklch(0.135 0.019 309.597);
--card-foreground: oklch(0.991 0.002 309.763);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.439 0.116 306.871);
--primary-foreground: oklch(0.982 0.005 309.732);
--secondary: oklch(0.305 0.011 309.423);
--secondary-foreground: oklch(0.832 0.01 309.67);
--accent: oklch(0.305 0.011 309.423);
--accent-foreground: oklch(0.832 0.01 309.67);
--destructive: oklch(0.628 0.196 39.316);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.116 306.871);
--chart-1: oklch(0.439 0.116 306.871);
--chart-2: oklch(0.305 0.011 309.423);
--chart-3: oklch(0.305 0.011 309.423);
--chart-4: oklch(0.334 0.013 309.412);
--chart-5: oklch(0.437 0.125 306.556);
}