Ride for shadcn/ui

Ride is a shadcn/ui theme built around a cyan primary color (#5596a5) with blue accents (#556ea5). The light mode uses a neutral background (#fbfefe). Dark mode keeps the cyan primary (#5596a5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefewhite
#000000black
Foreground
#010404black
#f7f8f8whitesmoke
Card
#f6fcfdmintcream
#030303black
Card foreground
#000000black
#f9fafaghostwhite
Popover
#fbfefewhite
#000000black
Popover foreground
#010404black
#f7f8f8whitesmoke
Primary
#5596a5cadetblue
#5596a5cadetblue
Primary foreground
#000000black
#000000black
Secondary
#55a58ccadetblue
#55a58ccadetblue
Secondary foreground
#000000black
#000000black
Muted
#d1e0dbgainsboro
#1f2e29darkslategray
Muted foreground
#3a4b45darkslategray
#b4c5c0silver
Accent
#556ea5steelblue
#556ea5steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#df3d07orangered
#f8470dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5596a5cadetblue
#5596a5cadetblue

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.29:1AAA
Primary button6.30:1AA
Secondary button7.13:1AAA
Muted text6.78:1AA
Accent5.03:1AA
Destructive4.38:1AA Large
Dark mode
Text on background19.73:1AAA
Text on card19.77:1AAA
Primary button6.30:1AA
Secondary button7.13:1AAA
Muted text7.93:1AAA
Accent5.03:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 212.663);
  --foreground: oklch(0.096 0.011 208.493);
  --muted: oklch(0.894 0.017 175.06);
  --muted-foreground: oklch(0.396 0.024 173.74);
  --popover: oklch(0.994 0.003 212.663);
  --popover-foreground: oklch(0.096 0.011 208.493);
  --card: oklch(0.987 0.006 212.667);
  --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.636 0.07 213.848);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.663 0.088 170.664);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.543 0.091 264.606);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.205 35.282);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.636 0.07 213.848);
  --chart-1: oklch(0.636 0.07 213.848);
  --chart-2: oklch(0.663 0.088 170.664);
  --chart-3: oklch(0.543 0.091 264.606);
  --chart-4: oklch(0.686 0.087 171.011);
  --chart-5: oklch(0.642 0.075 214.071);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.001 212.662);
  --muted: oklch(0.284 0.021 173.194);
  --muted-foreground: oklch(0.81 0.02 174.867);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.001 212.662);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.001 212.662);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.636 0.07 213.848);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.663 0.088 170.664);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.543 0.091 264.606);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.65 0.22 35.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.636 0.07 213.848);
  --chart-1: oklch(0.636 0.07 213.848);
  --chart-2: oklch(0.663 0.088 170.664);
  --chart-3: oklch(0.543 0.091 264.606);
  --chart-4: oklch(0.686 0.087 171.011);
  --chart-5: oklch(0.642 0.075 214.071);
}