Total is a shadcn/ui theme built around a muted light orange primary color (#e5e2e1) with neutral gray accents (#d9d5d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light orange primary (#e5e2e1) on an orange-tinted background (#0a0705).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0705black |
| Foreground | #0d0602black | #f8f7f6whitesmoke |
| Card | #ffffffwhite | #0a0705black |
| Card foreground | #0d0602black | #f8f7f6whitesmoke |
| Popover | #ffffffwhite | #0a0705black |
| Popover foreground | #0d0602black | #f8f7f6whitesmoke |
| Primary | #e5e2e1gainsboro | #e5e2e1gainsboro |
| Primary foreground | #504844darkslategray | #504844darkslategray |
| Secondary | #d9d5d4lightgrey | #38312edarkslategray |
| Secondary foreground | #413c3adarkslategray | #d1cac7lightgrey |
| Muted | #eceae9linen | #161413black |
| Muted foreground | #746158dimgray | #a7948brosybrown |
| Accent | #d9d5d4lightgrey | #38312edarkslategray |
| Accent foreground | #413c3adarkslategray | #d1cac7lightgrey |
| Destructive | #b6310cfirebrick | #e63d0forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5e2e1gainsboro | #e5e2e1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.15: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.13 0.019 56.581);
--muted: oklch(0.938 0.003 46.819);
--muted-foreground: oklch(0.508 0.029 46.298);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.019 56.581);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.019 56.581);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.915 0.004 46.809);
--primary-foreground: oklch(0.408 0.013 46.532);
--secondary: oklch(0.876 0.004 46.801);
--secondary-foreground: oklch(0.36 0.008 46.615);
--accent: oklch(0.876 0.004 46.801);
--accent-foreground: oklch(0.36 0.008 46.615);
--destructive: oklch(0.515 0.176 34.595);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.915 0.004 46.809);
--chart-1: oklch(0.915 0.004 46.809);
--chart-2: oklch(0.876 0.004 46.801);
--chart-3: oklch(0.876 0.004 46.801);
--chart-4: oklch(0.9 0.003 46.813);
--chart-5: oklch(0.915 0.005 46.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.01 51.839);
--foreground: oklch(0.977 0.002 46.836);
--muted: oklch(0.193 0.005 46.594);
--muted-foreground: oklch(0.68 0.027 46.453);
--popover: oklch(0.131 0.01 51.839);
--popover-foreground: oklch(0.977 0.002 46.836);
--card: oklch(0.131 0.01 51.839);
--card-foreground: oklch(0.977 0.002 46.836);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.915 0.004 46.809);
--primary-foreground: oklch(0.408 0.013 46.532);
--secondary: oklch(0.32 0.01 46.517);
--secondary-foreground: oklch(0.844 0.008 46.749);
--accent: oklch(0.32 0.01 46.517);
--accent-foreground: oklch(0.844 0.008 46.749);
--destructive: oklch(0.611 0.211 34.368);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.915 0.004 46.809);
--chart-1: oklch(0.915 0.004 46.809);
--chart-2: oklch(0.32 0.01 46.517);
--chart-3: oklch(0.32 0.01 46.517);
--chart-4: oklch(0.35 0.012 46.508);
--chart-5: oklch(0.915 0.005 46.791);
}