Ragged for shadcn/ui

Ragged is a shadcn/ui theme built around a muted light orange primary color (#dacbbe) with muted light blue accents (#becdda). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the muted light orange primary (#dacbbe) on a neutral background (#080503).

Color palette

TokenLightDark
Background
#fdfaf7snow
#080503black
Foreground
#170c03black
#f9f7f6whitesmoke
Card
#fdfaf7snow
#080503black
Card foreground
#170c03black
#f9f7f6whitesmoke
Popover
#fdfaf7snow
#080503black
Popover foreground
#170c03black
#f9f7f6whitesmoke
Primary
#dacbbelightgrey
#dacbbelightgrey
Primary foreground
#413225darkslategray
#413225darkslategray
Secondary
#becddalightsteelblue
#becddalightsteelblue
Secondary foreground
#253441darkslategray
#253441darkslategray
Muted
#e3e9edlavender
#12171cblack
Muted foreground
#51575ddimgray
#a2a9aedarkgray
Accent
#becddalightsteelblue
#becddalightsteelblue
Accent foreground
#253441darkslategray
#253441darkslategray
Destructive
#742f06saddlebrown
#f36a1bchocolate
Destructive foreground
#fbccb1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dacbbelightgrey
#dacbbelightgrey

Contrast

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

Light mode
Text on background18.47:1AAA
Text on card18.47:1AAA
Primary button7.74:1AAA
Secondary button7.88:1AAA
Muted text5.95:1AA
Accent7.88:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.74:1AAA
Secondary button7.88:1AAA
Muted text7.54:1AAA
Accent7.88:1AAA
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 62.123);
  --foreground: oklch(0.166 0.028 65.219);
  --muted: oklch(0.93 0.008 242.304);
  --muted-foreground: oklch(0.454 0.012 242.554);
  --popover: oklch(0.986 0.005 62.123);
  --popover-foreground: oklch(0.166 0.028 65.219);
  --card: oklch(0.986 0.005 62.123);
  --card-foreground: oklch(0.166 0.028 65.219);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.85 0.024 61.812);
  --primary-foreground: oklch(0.329 0.03 60.759);
  --secondary: oklch(0.842 0.024 242.571);
  --secondary-foreground: oklch(0.319 0.03 243.574);
  --accent: oklch(0.842 0.024 242.571);
  --accent-foreground: oklch(0.319 0.03 243.574);
  --destructive: oklch(0.397 0.109 44.687);
  --destructive-foreground: oklch(0.88 0.064 51.654);
  --ring: oklch(0.85 0.024 61.812);
  --chart-1: oklch(0.85 0.024 61.812);
  --chart-2: oklch(0.842 0.024 242.571);
  --chart-3: oklch(0.842 0.024 242.571);
  --chart-4: oklch(0.866 0.02 242.503);
  --chart-5: oklch(0.851 0.027 61.769);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.011 69.226);
  --foreground: oklch(0.978 0.003 62.155);
  --muted: oklch(0.203 0.011 242.955);
  --muted-foreground: oklch(0.731 0.011 242.392);
  --popover: oklch(0.117 0.011 69.226);
  --popover-foreground: oklch(0.978 0.003 62.155);
  --card: oklch(0.117 0.011 69.226);
  --card-foreground: oklch(0.978 0.003 62.155);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.85 0.024 61.812);
  --primary-foreground: oklch(0.329 0.03 60.759);
  --secondary: oklch(0.842 0.024 242.571);
  --secondary-foreground: oklch(0.319 0.03 243.574);
  --accent: oklch(0.842 0.024 242.571);
  --accent-foreground: oklch(0.319 0.03 243.574);
  --destructive: oklch(0.684 0.187 44.754);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.85 0.024 61.812);
  --chart-1: oklch(0.85 0.024 61.812);
  --chart-2: oklch(0.842 0.024 242.571);
  --chart-3: oklch(0.842 0.024 242.571);
  --chart-4: oklch(0.866 0.02 242.503);
  --chart-5: oklch(0.851 0.027 61.769);
}