Bike for shadcn/ui

Bike is a shadcn/ui theme built around a vivid red primary color (#de1728) with vivid orange accents (#de6a17). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid red primary (#de1728) on a red-tinted background (#0c0304).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0c0304black
Foreground
#160305black
#ffffffwhite
Card
#fdfcfcsnow
#0c0304black
Card foreground
#160305black
#ffffffwhite
Popover
#fdfcfcsnow
#0c0304black
Popover foreground
#160305black
#ffffffwhite
Primary
#de1728crimson
#de1728crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#de178bmediumvioletred
#de178bmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2e3eclinen
#1c0d16black
Muted foreground
#493741darkslategray
#c8b6c1silver
Accent
#de6a17chocolate
#de6a17chocolate
Accent foreground
#000000black
#000000black
Destructive
#bb1411firebrick
#db1814crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#de1728crimson
#de1728crimson

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button4.94:1AA
Secondary button4.57:1AA
Muted text8.92:1AAA
Accent6.16:1AA
Destructive6.53:1AA
Dark mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button4.94:1AA
Secondary button4.57:1AA
Muted text9.76:1AAA
Accent6.16:1AA
Destructive5.04:1AA

CSS variables

Paste this into your globals.css to use Bike in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 11.291);
  --foreground: oklch(0.142 0.038 15.832);
  --muted: oklch(0.931 0.019 341.483);
  --muted-foreground: oklch(0.36 0.03 342.878);
  --popover: oklch(0.991 0.002 11.291);
  --popover-foreground: oklch(0.142 0.038 15.832);
  --card: oklch(0.991 0.002 11.291);
  --card-foreground: oklch(0.142 0.038 15.832);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.573 0.223 25.486);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.595 0.237 352.966);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.652 0.167 49.002);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.504 0.197 28.613);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.223 25.486);
  --chart-1: oklch(0.573 0.223 25.486);
  --chart-2: oklch(0.595 0.237 352.966);
  --chart-3: oklch(0.652 0.167 49.002);
  --chart-4: oklch(0.617 0.243 352.537);
  --chart-5: oklch(0.578 0.228 25.952);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.022 13.187);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.029 344.362);
  --muted-foreground: oklch(0.795 0.025 341.723);
  --popover: oklch(0.119 0.022 13.187);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.022 13.187);
  --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.573 0.223 25.486);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.595 0.237 352.966);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.652 0.167 49.002);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.567 0.223 28.705);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.223 25.486);
  --chart-1: oklch(0.573 0.223 25.486);
  --chart-2: oklch(0.595 0.237 352.966);
  --chart-3: oklch(0.652 0.167 49.002);
  --chart-4: oklch(0.617 0.243 352.537);
  --chart-5: oklch(0.578 0.228 25.952);
}