Rambler for shadcn/ui

Rambler is a shadcn/ui theme built around a neutral gray primary color (#c2c2c2) with muted red accents (#d0afaf). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#c2c2c2) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fcf8f8snow
#070303black
Foreground
#120303black
#fdfcfcsnow
Card
#faf5f5whitesmoke
#0b0505black
Card foreground
#0d0202black
#ffffffwhite
Popover
#fcf8f8snow
#070303black
Popover foreground
#120303black
#fdfcfcsnow
Primary
#c2c2c2silver
#c2c2c2silver
Primary foreground
#292929darkslategray
#292929darkslategray
Secondary
#dccbcblightgrey
#212121black
Secondary foreground
#462f2fdarkslategray
#bbb9b9silver
Muted
#f4ebeblinen
#140b0bblack
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#d0afafsilver
#3d3434darkslategray
Accent foreground
#301c1cblack
#d5cdcdlightgrey
Destructive
#6e230cmaroon
#e9633atomato
Destructive foreground
#f7c5b6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2c2c2silver
#c2c2c2silver

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card18.91:1AAA
Primary button8.15:1AAA
Secondary button7.87:1AAA
Muted text5.72:1AA
Accent7.94:1AAA
Destructive7.12:1AAA
Dark mode
Text on background20.02:1AAA
Text on card20.26:1AAA
Primary button8.15:1AAA
Secondary button8.24:1AAA
Muted text7.69:1AAA
Accent7.77:1AAA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 17.218);
  --foreground: oklch(0.128 0.033 22.96);
  --muted: oklch(0.948 0.009 17.32);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.982 0.004 17.218);
  --popover-foreground: oklch(0.128 0.033 22.96);
  --card: oklch(0.974 0.005 17.25);
  --card-foreground: oklch(0.114 0.029 22.711);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.813 0 165.964);
  --primary-foreground: oklch(0.28 0 180);
  --secondary: oklch(0.856 0.019 17.538);
  --secondary-foreground: oklch(0.333 0.035 19.063);
  --accent: oklch(0.782 0.039 18.009);
  --accent-foreground: oklch(0.254 0.032 19.49);
  --destructive: oklch(0.369 0.112 36.605);
  --destructive-foreground: oklch(0.863 0.061 37.593);
  --ring: oklch(0.813 0 165.964);
  --chart-1: oklch(0.813 0 165.964);
  --chart-2: oklch(0.856 0.019 17.538);
  --chart-3: oklch(0.782 0.039 18.009);
  --chart-4: oklch(0.882 0.016 17.457);
  --chart-5: oklch(0.811 0.004 17.242);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 19.186);
  --foreground: oklch(0.991 0.002 17.191);
  --muted: oklch(0.162 0.015 18.846);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.108 0.012 19.186);
  --popover-foreground: oklch(0.991 0.002 17.191);
  --card: oklch(0.123 0.014 19.188);
  --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.813 0 165.964);
  --primary-foreground: oklch(0.28 0 180);
  --secondary: oklch(0.248 0.001 17.225);
  --secondary-foreground: oklch(0.788 0.002 17.191);
  --accent: oklch(0.333 0.013 17.816);
  --accent-foreground: oklch(0.856 0.008 17.316);
  --destructive: oklch(0.661 0.176 37.288);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.813 0 165.964);
  --chart-1: oklch(0.813 0 165.964);
  --chart-2: oklch(0.248 0.001 17.225);
  --chart-3: oklch(0.333 0.013 17.816);
  --chart-4: oklch(0.279 0.001 17.229);
  --chart-5: oklch(0.811 0.004 17.242);
}