Ride for shadcn/ui

Ride is a shadcn/ui theme built around a deep blue primary color (#183663) with muted light blue accents (#cbd0d8). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the deep blue primary (#183663) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#04070bblack
Foreground
#02070dblack
#fcfcfdwhite
Card
#fcfcfdwhite
#04070bblack
Card foreground
#02070dblack
#fcfcfdwhite
Popover
#fcfcfdwhite
#04070bblack
Popover foreground
#02070dblack
#fcfcfdwhite
Primary
#183663midnightblue
#183663midnightblue
Primary foreground
#bdd1eflightblue
#bdd1eflightblue
Secondary
#e6e8ealavender
#1e1e1fblack
Secondary foreground
#4a4e55darkslategray
#b6b7b9silver
Muted
#ebedeflavender
#101114black
Muted foreground
#4c5767dimgray
#98a3b3darkgray
Accent
#cbd0d8lightgrey
#2f343cdarkslategray
Accent foreground
#303740darkslategray
#c9cdd4lightgrey
Destructive
#800600maroon
#ff2519orangered
Destructive foreground
#ffb6b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#183663midnightblue
#183663midnightblue

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.77:1AAA
Secondary button6.79:1AA
Muted text6.23:1AA
Accent7.74:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button7.77:1AAA
Secondary button8.26:1AAA
Muted text7.38:1AAA
Accent7.82:1AAA
Destructive3.79: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.992 0.001 258.316);
  --foreground: oklch(0.123 0.019 248.622);
  --muted: oklch(0.945 0.004 258.323);
  --muted-foreground: oklch(0.452 0.03 258.367);
  --popover: oklch(0.992 0.001 258.316);
  --popover-foreground: oklch(0.123 0.019 248.622);
  --card: oklch(0.992 0.001 258.316);
  --card-foreground: oklch(0.123 0.019 248.622);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.335 0.087 258.442);
  --primary-foreground: oklch(0.856 0.047 258.372);
  --secondary: oklch(0.93 0.003 258.321);
  --secondary-foreground: oklch(0.422 0.012 258.365);
  --accent: oklch(0.855 0.012 258.345);
  --accent-foreground: oklch(0.333 0.019 258.371);
  --destructive: oklch(0.379 0.151 30.144);
  --destructive-foreground: oklch(0.844 0.085 22.41);
  --ring: oklch(0.335 0.087 258.442);
  --chart-1: oklch(0.335 0.087 258.442);
  --chart-2: oklch(0.93 0.003 258.321);
  --chart-3: oklch(0.855 0.012 258.345);
  --chart-4: oklch(0.953 0.002 258.318);
  --chart-5: oklch(0.335 0.091 258.504);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.013 251.514);
  --foreground: oklch(0.992 0.001 258.315);
  --muted: oklch(0.179 0.006 258.368);
  --muted-foreground: oklch(0.712 0.026 258.37);
  --popover: oklch(0.126 0.013 251.514);
  --popover-foreground: oklch(0.992 0.001 258.315);
  --card: oklch(0.126 0.013 251.514);
  --card-foreground: oklch(0.992 0.001 258.315);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.335 0.087 258.442);
  --primary-foreground: oklch(0.856 0.047 258.372);
  --secondary: oklch(0.237 0.002 258.329);
  --secondary-foreground: oklch(0.78 0.003 258.322);
  --accent: oklch(0.324 0.015 258.372);
  --accent-foreground: oklch(0.848 0.011 258.343);
  --destructive: oklch(0.639 0.247 29.32);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.335 0.087 258.442);
  --chart-1: oklch(0.335 0.087 258.442);
  --chart-2: oklch(0.237 0.002 258.329);
  --chart-3: oklch(0.324 0.015 258.372);
  --chart-4: oklch(0.269 0.002 258.331);
  --chart-5: oklch(0.335 0.091 258.504);
}