Total is a shadcn/ui theme built around a near-black primary color (#040201) with near-black accents (#010304). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#040201) on an orange-tinted background (#0c0704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0704black |
| Foreground | #140b06black | #ffffffwhite |
| Card | #ffffffwhite | #0c0704black |
| Card foreground | #140b06black | #ffffffwhite |
| Popover | #ffffffwhite | #0c0704black |
| Popover foreground | #140b06black | #ffffffwhite |
| Primary | #040201black | #040201black |
| Primary foreground | #c8916frosybrown | #c8916frosybrown |
| Secondary | #010304black | #010304black |
| Secondary foreground | #6fa6c8cornflowerblue | #6fa6c8cornflowerblue |
| Muted | #dee4e7gainsboro | #181d21black |
| Muted foreground | #3d4a52darkslategray | #adbac2silver |
| Accent | #010304black | #010304black |
| Accent foreground | #6fa6c8cornflowerblue | #6fa6c8cornflowerblue |
| Destructive | #7c2803saddlebrown | #f94f06orangered |
| Destructive foreground | #fdcab4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040201black | #040201black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Total in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.16 0.019 55.944);
--muted: oklch(0.916 0.008 234.625);
--muted-foreground: oklch(0.4 0.022 235.387);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.16 0.019 55.944);
--card: oklch(1 0 180);
--card-foreground: oklch(0.16 0.019 55.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.092 0.008 61.084);
--primary-foreground: oklch(0.702 0.082 52.823);
--secondary: oklch(0.092 0.008 228.956);
--secondary-foreground: oklch(0.7 0.077 236.676);
--accent: oklch(0.092 0.008 228.956);
--accent-foreground: oklch(0.7 0.077 236.676);
--destructive: oklch(0.401 0.125 39.259);
--destructive-foreground: oklch(0.879 0.065 44.38);
--ring: oklch(0.092 0.008 61.084);
--chart-1: oklch(0.092 0.008 61.084);
--chart-2: oklch(0.092 0.008 228.956);
--chart-3: oklch(0.092 0.008 228.956);
--chart-4: oklch(0.146 0.013 232.781);
--chart-5: oklch(0.092 0.009 61.57);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.014 62.132);
--foreground: oklch(1 0 180);
--muted: oklch(0.227 0.011 235.241);
--muted-foreground: oklch(0.782 0.019 234.862);
--popover: oklch(0.133 0.014 62.132);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.014 62.132);
--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.092 0.008 61.084);
--primary-foreground: oklch(0.702 0.082 52.823);
--secondary: oklch(0.092 0.008 228.956);
--secondary-foreground: oklch(0.7 0.077 236.676);
--accent: oklch(0.092 0.008 228.956);
--accent-foreground: oklch(0.7 0.077 236.676);
--destructive: oklch(0.659 0.216 37.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0.008 61.084);
--chart-1: oklch(0.092 0.008 61.084);
--chart-2: oklch(0.092 0.008 228.956);
--chart-3: oklch(0.092 0.008 228.956);
--chart-4: oklch(0.146 0.013 232.781);
--chart-5: oklch(0.092 0.009 61.57);
}