Tire for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button8.70:1AAA
Secondary button7.06:1AAA
Muted text6.88:1AA
Accent7.06:1AAA
Destructive5.79:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button8.70:1AAA
Secondary button7.06:1AAA
Muted text8.23:1AAA
Accent7.06:1AAA
Destructive4.10:1AA Large

CSS variables

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);
}