Rambler for shadcn/ui

Rambler is a shadcn/ui theme built around a deep purple primary color (#230e25) with muted purple accents (#c8afca). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the deep purple primary (#230e25) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#000000black
Foreground
#140515black
#faf9fbghostwhite
Card
#fcf8fcsnow
#030303black
Card foreground
#100411black
#fdfcfdwhite
Popover
#fdfbfdsnow
#000000black
Popover foreground
#140515black
#faf9fbghostwhite
Primary
#230e25black
#230e25black
Primary foreground
#d08fd6plum
#d08fd6plum
Secondary
#d6ccd7lightgrey
#322933darkslategray
Secondary foreground
#3e313fdarkslategray
#ccc1cdthistle
Muted
#e3cde5gainsboro
#301a32darkslategray
Muted foreground
#5e535fdimgray
#aba0acdarkgray
Accent
#c8afcasilver
#433145darkslategray
Accent foreground
#2a1d2bdarkslategray
#daccdblightgrey
Destructive
#6c0a04maroon
#f63228crimson
Destructive foreground
#fbaba7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#230e25black
#230e25black

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.03:1AAA
Primary button7.39:1AAA
Secondary button7.82:1AAA
Muted text4.89:1AA
Accent7.99:1AAA
Destructive6.84:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.20:1AAA
Primary button7.39:1AAA
Secondary button8.05:1AAA
Muted text6.31:1AA
Accent7.76:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 323.15);
  --foreground: oklch(0.149 0.043 324.445);
  --muted: oklch(0.873 0.04 323.341);
  --muted-foreground: oklch(0.458 0.025 323.378);
  --popover: oklch(0.991 0.003 323.15);
  --popover-foreground: oklch(0.149 0.043 324.445);
  --card: oklch(0.983 0.007 323.166);
  --card-foreground: oklch(0.136 0.038 324.596);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.207 0.055 324.146);
  --primary-foreground: oklch(0.738 0.124 323.838);
  --secondary: oklch(0.855 0.019 323.234);
  --secondary-foreground: oklch(0.333 0.029 323.516);
  --accent: oklch(0.785 0.046 323.397);
  --accent-foreground: oklch(0.251 0.032 323.692);
  --destructive: oklch(0.339 0.131 29.594);
  --destructive-foreground: oklch(0.818 0.095 22.689);
  --ring: oklch(0.207 0.055 324.146);
  --chart-1: oklch(0.207 0.055 324.146);
  --chart-2: oklch(0.855 0.019 323.234);
  --chart-3: oklch(0.785 0.046 323.397);
  --chart-4: oklch(0.88 0.015 323.215);
  --chart-5: oklch(0.207 0.058 324.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 323.145);
  --muted: oklch(0.259 0.053 323.96);
  --muted-foreground: oklch(0.718 0.022 323.275);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 323.145);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 323.139);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.207 0.055 324.146);
  --primary-foreground: oklch(0.738 0.124 323.838);
  --secondary: oklch(0.295 0.022 323.471);
  --secondary-foreground: oklch(0.823 0.021 323.252);
  --accent: oklch(0.341 0.042 323.669);
  --accent-foreground: oklch(0.861 0.025 323.266);
  --destructive: oklch(0.631 0.231 28.835);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.207 0.055 324.146);
  --chart-1: oklch(0.207 0.055 324.146);
  --chart-2: oklch(0.295 0.022 323.471);
  --chart-3: oklch(0.341 0.042 323.669);
  --chart-4: oklch(0.324 0.025 323.482);
  --chart-5: oklch(0.207 0.058 324.183);
}