Tog is a shadcn/ui theme built around a pink primary color (#cd328f) with green accents (#32cd70). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#cd328f) on a neutral background (#070405).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070405black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #0a0508black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #070405black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #cd328fmediumvioletred | #cd328fmediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #32cd70mediumseagreen | #32cd70mediumseagreen |
| Secondary foreground | #0a2916black | #0a2916black |
| Muted | #eff5f2whitesmoke | #0a100cblack |
| Muted foreground | #464947darkslategray | #b6b9b7silver |
| Accent | #32cd70mediumseagreen | #32cd70mediumseagreen |
| Accent foreground | #0a2916black | #0a2916black |
| Destructive | #6f1a0bmaroon | #ea462achocolate |
| Destructive foreground | #f8bfb5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cd328fmediumvioletred | #cd328fmediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.71:1 | AA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 20.45:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 4.71:1 | AA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 9.72:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Tog in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.965 0.008 160.041);
--muted-foreground: oklch(0.401 0.005 159.963);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.584 0.209 348.882);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.75 0.183 151.69);
--secondary-foreground: oklch(0.252 0.051 153.941);
--accent: oklch(0.75 0.183 151.69);
--accent-foreground: oklch(0.252 0.051 153.941);
--destructive: oklch(0.361 0.122 32.34);
--destructive-foreground: oklch(0.852 0.067 29.96);
--ring: oklch(0.584 0.209 348.882);
--chart-1: oklch(0.584 0.209 348.882);
--chart-2: oklch(0.75 0.183 151.69);
--chart-3: oklch(0.75 0.183 151.69);
--chart-4: oklch(0.761 0.175 152.521);
--chart-5: oklch(0.588 0.215 349.32);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.011 340.307);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.012 158.383);
--muted-foreground: oklch(0.783 0.004 160.117);
--popover: oklch(0.111 0.011 340.307);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.012 340.307);
--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.584 0.209 348.882);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.75 0.183 151.69);
--secondary-foreground: oklch(0.252 0.051 153.941);
--accent: oklch(0.75 0.183 151.69);
--accent-foreground: oklch(0.252 0.051 153.941);
--destructive: oklch(0.628 0.205 32.379);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.584 0.209 348.882);
--chart-1: oklch(0.584 0.209 348.882);
--chart-2: oklch(0.75 0.183 151.69);
--chart-3: oklch(0.75 0.183 151.69);
--chart-4: oklch(0.761 0.175 152.521);
--chart-5: oklch(0.588 0.215 349.32);
}