Tire is a shadcn/ui theme built around a near-black primary color (#060907) with near-black accents (#090608). The light mode uses a neutral background (#fbfefc). Dark mode keeps the near-black primary (#060907) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010402black |
| Foreground | #020904black | #fcfdfcwhite |
| Card | #fbfefcwhite | #010402black |
| Card foreground | #020904black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #010402black |
| Popover foreground | #020904black | #fcfdfcwhite |
| Primary | #060907black | #060907black |
| Primary foreground | #8eb49bdarkseagreen | #8eb49bdarkseagreen |
| Secondary | #090608black | #090608black |
| Secondary foreground | #b48ea6rosybrown | #b48ea6rosybrown |
| Muted | #dfd3dbgainsboro | #2c2028darkslategray |
| Muted foreground | #434242darkslategray | #bdbcbdsilver |
| Accent | #090608black | #090608black |
| Accent foreground | #b48ea6rosybrown | #b48ea6rosybrown |
| Destructive | #b33e14firebrick | #dc4d18chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060907black | #060907black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 5.79:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Tire in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 157.883);
--foreground: oklch(0.125 0.022 157.632);
--muted: oklch(0.878 0.017 338.387);
--muted-foreground: oklch(0.379 0.002 338.11);
--popover: oklch(0.994 0.005 157.883);
--popover-foreground: oklch(0.125 0.022 157.632);
--card: oklch(0.994 0.005 157.883);
--card-foreground: oklch(0.125 0.022 157.632);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.136 0.008 157.878);
--primary-foreground: oklch(0.734 0.054 156.33);
--secondary: oklch(0.129 0.008 338.098);
--secondary-foreground: oklch(0.689 0.056 339.609);
--accent: oklch(0.129 0.008 338.098);
--accent-foreground: oklch(0.689 0.056 339.609);
--destructive: oklch(0.525 0.16 38.051);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.136 0.008 157.878);
--chart-1: oklch(0.136 0.008 157.878);
--chart-2: oklch(0.129 0.008 338.098);
--chart-3: oklch(0.129 0.008 338.098);
--chart-4: oklch(0.165 0.013 339.555);
--chart-5: oklch(0.136 0.009 157.862);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.011 157.761);
--foreground: oklch(0.993 0.001 157.954);
--muted: oklch(0.262 0.023 339.743);
--muted-foreground: oklch(0.797 0.002 338.035);
--popover: oklch(0.096 0.011 157.761);
--popover-foreground: oklch(0.993 0.001 157.954);
--card: oklch(0.096 0.011 157.761);
--card-foreground: oklch(0.993 0.001 157.954);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.136 0.008 157.878);
--primary-foreground: oklch(0.734 0.054 156.33);
--secondary: oklch(0.129 0.008 338.098);
--secondary-foreground: oklch(0.689 0.056 339.609);
--accent: oklch(0.129 0.008 338.098);
--accent-foreground: oklch(0.689 0.056 339.609);
--destructive: oklch(0.611 0.189 37.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.136 0.008 157.878);
--chart-1: oklch(0.136 0.008 157.878);
--chart-2: oklch(0.129 0.008 338.098);
--chart-3: oklch(0.129 0.008 338.098);
--chart-4: oklch(0.165 0.013 339.555);
--chart-5: oklch(0.136 0.009 157.862);
}