victoryos is a shadcn/ui theme built around a yellow primary color (#caca58) with muted light yellow accents (#cacaba). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#caca58) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #080802black | #fbfbf9snow |
| Card | #ffffffwhite | #070703black |
| Card foreground | #080802black | #fbfbf9snow |
| Popover | #ffffffwhite | #070703black |
| Popover foreground | #080802black | #fbfbf9snow |
| Primary | #caca58darkkhaki | #caca58darkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #d5d5cdlightgrey | #242423black |
| Secondary foreground | #3d3d34darkslategray | #bdbdbcsilver |
| Muted | #eeeeecwhitesmoke | #131311black |
| Muted foreground | #484847darkslategray | #b8b8b7silver |
| Accent | #cacabasilver | #434338darkslategray |
| Accent foreground | #2e2e23darkslategray | #dadad3gainsboro |
| Destructive | #bd4714sienna | #e9672fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #ebebealinen | #1a1a19black |
| Input | #ebebealinen | #1a1a19black |
| Ring | #caca58darkkhaki | #caca58darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 12.14:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 12.14:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use victoryos in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.017 108.567);
--muted: oklch(0.95 0.003 106.463);
--muted-foreground: oklch(0.402 0.002 106.505);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.017 108.567);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.017 108.567);
--border: oklch(0.94 0.002 106.431);
--input: oklch(0.94 0.002 106.431);
--primary: oklch(0.818 0.136 109.072);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.87 0.01 106.605);
--secondary-foreground: oklch(0.355 0.015 107.141);
--accent: oklch(0.834 0.022 106.861);
--accent-foreground: oklch(0.298 0.018 107.466);
--destructive: oklch(0.553 0.163 39.992);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.818 0.136 109.072);
--chart-1: oklch(0.818 0.136 109.072);
--chart-2: oklch(0.87 0.01 106.605);
--chart-3: oklch(0.834 0.022 106.861);
--chart-4: oklch(0.892 0.008 106.566);
--chart-5: oklch(0.827 0.142 109.143);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.013 108.11);
--foreground: oklch(0.988 0.003 106.454);
--muted: oklch(0.186 0.005 106.872);
--muted-foreground: oklch(0.783 0.002 106.446);
--popover: oklch(0.127 0.013 108.11);
--popover-foreground: oklch(0.988 0.003 106.454);
--card: oklch(0.127 0.013 108.11);
--card-foreground: oklch(0.988 0.003 106.454);
--border: oklch(0.218 0.003 106.64);
--input: oklch(0.218 0.003 106.64);
--primary: oklch(0.818 0.136 109.072);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.26 0.001 106.49);
--secondary-foreground: oklch(0.799 0.002 106.441);
--accent: oklch(0.378 0.018 107.236);
--accent-foreground: oklch(0.886 0.01 106.6);
--destructive: oklch(0.666 0.175 41.58);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.818 0.136 109.072);
--chart-1: oklch(0.818 0.136 109.072);
--chart-2: oklch(0.26 0.001 106.49);
--chart-3: oklch(0.378 0.018 107.236);
--chart-4: oklch(0.292 0.002 106.495);
--chart-5: oklch(0.827 0.142 109.143);
}