Victory is a shadcn/ui theme built around a red primary color (#a62635) with blue accents (#2635a6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#a62635) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #0c0304black | #faf5f5whitesmoke |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #0c0304black | #faf5f5whitesmoke |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #0c0304black | #faf5f5whitesmoke |
| Primary | #a62635brown | #a62635brown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #35a626forestgreen | #35a626forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9ded9gainsboro | #222621black |
| Muted foreground | #4d514ddarkslategray | #aeb2aedarkgray |
| Accent | #2635a6darkslateblue | #2635a6darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #642007maroon | #ee5017orangered |
| Destructive foreground | #f8bba5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a62635brown | #a62635brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 3.15:1 | AA Large |
| Muted text | 5.91:1 | AA |
| Accent | 9.82:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 3.15:1 | AA Large |
| Muted text | 7.14:1 | AAA |
| Accent | 9.82:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Victory in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 8.974);
--foreground: oklch(0.119 0.022 10.324);
--muted: oklch(0.895 0.008 142.081);
--muted-foreground: oklch(0.431 0.009 142.038);
--popover: oklch(0.991 0.003 8.974);
--popover-foreground: oklch(0.119 0.022 10.324);
--card: oklch(0.991 0.003 8.974);
--card-foreground: oklch(0.119 0.022 10.324);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.481 0.164 20.04);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.638 0.192 141.501);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.399 0.181 269.765);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.346 0.103 38.371);
--destructive-foreground: oklch(0.843 0.077 40.87);
--ring: oklch(0.481 0.164 20.04);
--chart-1: oklch(0.481 0.164 20.04);
--chart-2: oklch(0.638 0.192 141.501);
--chart-3: oklch(0.399 0.181 269.765);
--chart-4: oklch(0.673 0.203 141.507);
--chart-5: oklch(0.483 0.169 20.682);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.006 9.051);
--muted: oklch(0.263 0.011 141.966);
--muted-foreground: oklch(0.76 0.008 142.076);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.973 0.006 9.051);
--card: oklch(0 0 0);
--card-foreground: oklch(0.973 0.006 9.051);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.481 0.164 20.04);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.638 0.192 141.501);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.399 0.181 269.765);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.643 0.203 37.447);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.481 0.164 20.04);
--chart-1: oklch(0.481 0.164 20.04);
--chart-2: oklch(0.638 0.192 141.501);
--chart-3: oklch(0.399 0.181 269.765);
--chart-4: oklch(0.673 0.203 141.507);
--chart-5: oklch(0.483 0.169 20.682);
}