Rutabaga for shadcn/ui

Rutabaga is a shadcn/ui theme built around a vivid violet primary color (#8860f6) with vivid green accents (#cef660). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#8860f6) on a violet-tinted background (#06040b).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06040bblack
Foreground
#06030cblack
#ffffffwhite
Card
#fcfbfewhite
#06040bblack
Card foreground
#06030cblack
#ffffffwhite
Popover
#fcfbfewhite
#06040bblack
Popover foreground
#06030cblack
#ffffffwhite
Primary
#8860f6mediumslateblue
#8860f6mediumslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cef660khaki
#cef660khaki
Secondary foreground
#192202black
#192202black
Muted
#f4f6eewhitesmoke
#0f1109black
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#cef660khaki
#cef660khaki
Accent foreground
#192202black
#192202black
Destructive
#831a0cmaroon
#e52d15orangered
Destructive foreground
#facdc7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8860f6mediumslateblue
#8860f6mediumslateblue

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button4.16:1AA Large
Secondary button13.32:1AAA
Muted text9.22:1AAA
Accent13.32:1AAA
Destructive6.92:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button4.16:1AA Large
Secondary button13.32:1AAA
Muted text10.15:1AAA
Accent13.32:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 298.494);
  --foreground: oklch(0.113 0.025 298.224);
  --muted: oklch(0.97 0.01 118.752);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.989 0.004 298.494);
  --popover-foreground: oklch(0.113 0.025 298.224);
  --card: oklch(0.989 0.004 298.494);
  --card-foreground: oklch(0.113 0.025 298.224);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.608 0.214 290.968);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.916 0.18 122.656);
  --secondary-foreground: oklch(0.234 0.054 122.902);
  --accent: oklch(0.916 0.18 122.656);
  --accent-foreground: oklch(0.234 0.054 122.902);
  --destructive: oklch(0.398 0.142 31.041);
  --destructive-foreground: oklch(0.885 0.052 26.939);
  --ring: oklch(0.608 0.214 290.968);
  --chart-1: oklch(0.608 0.214 290.968);
  --chart-2: oklch(0.916 0.18 122.656);
  --chart-3: oklch(0.916 0.18 122.656);
  --chart-4: oklch(0.922 0.167 122.202);
  --chart-5: oklch(0.605 0.22 290.598);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.021 298.345);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.171 0.016 120.149);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.116 0.021 298.345);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.116 0.021 298.345);
  --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.608 0.214 290.968);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.916 0.18 122.656);
  --secondary-foreground: oklch(0.234 0.054 122.902);
  --accent: oklch(0.916 0.18 122.656);
  --accent-foreground: oklch(0.234 0.054 122.902);
  --destructive: oklch(0.596 0.22 30.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.608 0.214 290.968);
  --chart-1: oklch(0.608 0.214 290.968);
  --chart-2: oklch(0.916 0.18 122.656);
  --chart-3: oklch(0.916 0.18 122.656);
  --chart-4: oklch(0.922 0.167 122.202);
  --chart-5: oklch(0.605 0.22 290.598);
}