Ruddy for shadcn/ui

Ruddy is a shadcn/ui theme built around a blue primary color (#3c55d3) with green accents (#55d33c). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#3c55d3) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#000000black
#fbfcfdwhite
Card
#ffffffwhite
#010204black
Card foreground
#000000black
#fbfcfdwhite
Popover
#ffffffwhite
#010204black
Popover foreground
#000000black
#fbfcfdwhite
Primary
#3c55d3royalblue
#3c55d3royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d33c55indianred
#d33c55indianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecdaddgainsboro
#251316black
Muted foreground
#423e3edarkslategray
#c1bdbesilver
Accent
#55d33climegreen
#55d33climegreen
Accent foreground
#13360cdarkgreen
#13360cdarkgreen
Destructive
#651e06maroon
#f26131tomato
Destructive foreground
#f9b9a4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c55d3royalblue
#3c55d3royalblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.13:1AA
Secondary button4.63:1AA
Muted text7.86:1AAA
Accent6.87:1AA
Destructive7.19:1AAA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.13:1AA
Secondary button4.63:1AA
Muted text9.52:1AAA
Accent6.87:1AA
Destructive6.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.02 6.004);
  --muted-foreground: oklch(0.367 0.005 5.825);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.507 0.195 269.439);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.584 0.187 15.84);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.766 0.218 140.662);
  --accent-foreground: oklch(0.297 0.079 140.53);
  --destructive: oklch(0.345 0.107 37.253);
  --destructive-foreground: oklch(0.84 0.08 39.219);
  --ring: oklch(0.507 0.195 269.439);
  --chart-1: oklch(0.507 0.195 269.439);
  --chart-2: oklch(0.584 0.187 15.84);
  --chart-3: oklch(0.766 0.218 140.662);
  --chart-4: oklch(0.604 0.177 14.43);
  --chart-5: oklch(0.504 0.204 268.972);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.011 272.294);
  --foreground: oklch(0.991 0.002 277.229);
  --muted: oklch(0.214 0.029 8.972);
  --muted-foreground: oklch(0.803 0.004 5.59);
  --popover: oklch(0.083 0.011 272.294);
  --popover-foreground: oklch(0.991 0.002 277.229);
  --card: oklch(0.083 0.011 272.294);
  --card-foreground: oklch(0.991 0.002 277.229);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.507 0.195 269.439);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.584 0.187 15.84);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.766 0.218 140.662);
  --accent-foreground: oklch(0.297 0.079 140.53);
  --destructive: oklch(0.672 0.189 38.024);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.507 0.195 269.439);
  --chart-1: oklch(0.507 0.195 269.439);
  --chart-2: oklch(0.584 0.187 15.84);
  --chart-3: oklch(0.766 0.218 140.662);
  --chart-4: oklch(0.604 0.177 14.43);
  --chart-5: oklch(0.504 0.204 268.972);
}