Traditionalism is a shadcn/ui theme built around a deep red primary color (#1c100d) with deep indigo accents (#100d1c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#1c100d) on a neutral background (#080402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080402black |
| Foreground | #090301black | #ffffffwhite |
| Card | #fcfcfcsnow | #0c0503black |
| Card foreground | #050101black | #ffffffwhite |
| Popover | #ffffffwhite | #080402black |
| Popover foreground | #090301black | #ffffffwhite |
| Primary | #1c100dblack | #1c100dblack |
| Primary foreground | #cc9d8erosybrown | #cc9d8erosybrown |
| Secondary | #0d1c10black | #0d1c10black |
| Secondary foreground | #4ca962mediumseagreen | #4ca962mediumseagreen |
| Muted | #d6e1d8gainsboro | #1e2921black |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #100d1cblack | #100d1cblack |
| Accent foreground | #9d8eccmediumpurple | #9d8eccmediumpurple |
| Destructive | #972f02saddlebrown | #e24603orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c100dblack | #1c100dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.48:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 6.00:1 | AA |
| Muted text | 7.12:1 | AAA |
| Accent | 6.55:1 | AA |
| Destructive | 7.73:1 | AAA |
| Text on background | 20.45:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 6.00:1 | AA |
| Muted text | 7.73:1 | AAA |
| Accent | 6.55:1 | AA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Traditionalism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.11 0.02 49.191);
--muted: oklch(0.899 0.017 152.929);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.11 0.02 49.191);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.087 0.016 49.191);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.189 0.022 37.636);
--primary-foreground: oklch(0.736 0.061 37.599);
--secondary: oklch(0.209 0.032 150.375);
--secondary-foreground: oklch(0.66 0.137 148.981);
--accent: oklch(0.171 0.032 293.453);
--accent-foreground: oklch(0.684 0.091 294.578);
--destructive: oklch(0.457 0.146 38.487);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.189 0.022 37.636);
--chart-1: oklch(0.189 0.022 37.636);
--chart-2: oklch(0.209 0.032 150.375);
--chart-3: oklch(0.171 0.032 293.453);
--chart-4: oklch(0.248 0.041 150.028);
--chart-5: oklch(0.189 0.023 37.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.014 44.944);
--foreground: oklch(1 0 180);
--muted: oklch(0.269 0.023 151.771);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.111 0.014 44.944);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.016 44.66);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.189 0.022 37.636);
--primary-foreground: oklch(0.736 0.061 37.599);
--secondary: oklch(0.209 0.032 150.375);
--secondary-foreground: oklch(0.66 0.137 148.981);
--accent: oklch(0.171 0.032 293.453);
--accent-foreground: oklch(0.684 0.091 294.578);
--destructive: oklch(0.613 0.202 37.482);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.189 0.022 37.636);
--chart-1: oklch(0.189 0.022 37.636);
--chart-2: oklch(0.209 0.032 150.375);
--chart-3: oklch(0.171 0.032 293.453);
--chart-4: oklch(0.248 0.041 150.028);
--chart-5: oklch(0.189 0.023 37.65);
}