Total is a shadcn/ui theme built around a vivid deep pink primary color (#790151) with vivid deep green accents (#017929). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#790151) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #080206black | #fcf8fasnow |
| Card | #ffffffwhite | #040103black |
| Card foreground | #080206black | #fcf8fasnow |
| Popover | #ffffffwhite | #040103black |
| Popover foreground | #080206black | #fcf8fasnow |
| Primary | #790151purple | #790151purple |
| Primary foreground | #feaee4pink | #feaee4pink |
| Secondary | #017929forestgreen | #017929forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3f2e8honeydew | #0d1c12black |
| Muted foreground | #3c4840darkslategray | #b7c3bbsilver |
| Accent | #017929forestgreen | #017929forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7f2e06saddlebrown | #f56d29tomato |
| Destructive foreground | #fcd0bbpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #790151purple | #790151purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 5.55:1 | AA |
| Muted text | 8.26:1 | AAA |
| Accent | 5.55:1 | AA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 5.55:1 | AA |
| Muted text | 9.71:1 | AAA |
| Accent | 5.55:1 | AA |
| Destructive | 7.08:1 | AAA |
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.106 0.026 337.735);
--muted: oklch(0.947 0.02 156.836);
--muted-foreground: oklch(0.389 0.02 156.153);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.026 337.735);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.026 337.735);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.382 0.16 348.201);
--primary-foreground: oklch(0.844 0.114 339.816);
--secondary: oklch(0.503 0.149 146.915);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.503 0.149 146.915);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.414 0.121 41.765);
--destructive-foreground: oklch(0.891 0.057 48.058);
--ring: oklch(0.382 0.16 348.201);
--chart-1: oklch(0.382 0.16 348.201);
--chart-2: oklch(0.503 0.149 146.915);
--chart-3: oklch(0.503 0.149 146.915);
--chart-4: oklch(0.547 0.163 146.734);
--chart-5: oklch(0.385 0.162 348.491);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.017 337.664);
--foreground: oklch(0.983 0.005 337.36);
--muted: oklch(0.208 0.028 154.157);
--muted-foreground: oklch(0.805 0.017 156.826);
--popover: oklch(0.085 0.017 337.664);
--popover-foreground: oklch(0.983 0.005 337.36);
--card: oklch(0.085 0.017 337.664);
--card-foreground: oklch(0.983 0.005 337.36);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.382 0.16 348.201);
--primary-foreground: oklch(0.844 0.114 339.816);
--secondary: oklch(0.503 0.149 146.915);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.503 0.149 146.915);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.691 0.184 43.442);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.382 0.16 348.201);
--chart-1: oklch(0.382 0.16 348.201);
--chart-2: oklch(0.503 0.149 146.915);
--chart-3: oklch(0.503 0.149 146.915);
--chart-4: oklch(0.547 0.163 146.734);
--chart-5: oklch(0.385 0.162 348.491);
}