Tracking is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#d3cfcf). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080202black |
| Foreground | #080202black | #ffffffwhite |
| Card | #ffffffwhite | #080202black |
| Card foreground | #080202black | #ffffffwhite |
| Popover | #ffffffwhite | #080202black |
| Popover foreground | #080202black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #d3cfcflightgrey | #201d1dblack |
| Secondary foreground | #3b3535darkslategray | #bbb4b4silver |
| Muted | #e7e4e4gainsboro | #1b1818black |
| Muted foreground | #6e5959dimgray | #a69191rosybrown |
| Accent | #d3cfcflightgrey | #201d1dblack |
| Accent foreground | #3b3535darkslategray | #bbb4b4silver |
| Destructive | #c65010chocolate | #ec5f13chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 5.14:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 4.61:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.20:1 | AA |
Paste this into your globals.css to use Tracking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.018 20.492);
--muted: oklch(0.922 0.003 17.208);
--muted-foreground: oklch(0.484 0.029 18.197);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.018 20.492);
--card: oklch(1 0 180);
--card-foreground: oklch(0.104 0.018 20.492);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.858 0.005 17.256);
--secondary-foreground: oklch(0.336 0.008 17.555);
--accent: oklch(0.858 0.005 17.256);
--accent-foreground: oklch(0.336 0.008 17.555);
--destructive: oklch(0.579 0.165 42.867);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.858 0.005 17.256);
--chart-3: oklch(0.858 0.005 17.256);
--chart-4: oklch(0.882 0.004 17.237);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.019 20.892);
--foreground: oklch(1 0 180);
--muted: oklch(0.213 0.004 17.474);
--muted-foreground: oklch(0.675 0.026 17.822);
--popover: oklch(0.103 0.019 20.892);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.103 0.019 20.892);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.235 0.005 17.495);
--secondary-foreground: oklch(0.776 0.008 17.332);
--accent: oklch(0.235 0.005 17.495);
--accent-foreground: oklch(0.776 0.008 17.332);
--destructive: oklch(0.658 0.19 42.579);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.235 0.005 17.495);
--chart-3: oklch(0.235 0.005 17.495);
--chart-4: oklch(0.266 0.006 17.519);
--chart-5: oklch(1 0 180);
}