Ragged for shadcn/ui

Ragged is a shadcn/ui theme built around an orange primary color (#dabe90) with neutral gray accents (#d9d7d3). The light mode uses a neutral background (#fefdfb). Dark mode keeps the orange primary (#dabe90) on an orange-tinted background (#0e0b06).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0e0b06black
Foreground
#040301black
#fbfaf9snow
Card
#fefdfbsnow
#0e0b06black
Card foreground
#040301black
#fbfaf9snow
Popover
#fefdfbsnow
#0e0b06black
Popover foreground
#040301black
#fbfaf9snow
Primary
#dabe90burlywood
#dabe90burlywood
Primary foreground
#2a1f0eblack
#2a1f0eblack
Secondary
#d9d7d3lightgrey
#221f1bblack
Secondary foreground
#413e39darkslategray
#c0baafsilver
Muted
#f2ece3linen
#1c160dblack
Muted foreground
#6e6453dimgray
#aca191rosybrown
Accent
#d9d7d3lightgrey
#221f1bblack
Accent foreground
#413e39darkslategray
#c0baafsilver
Destructive
#6f1606maroon
#f13413orangered
Destructive foreground
#fab9adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dabe90burlywood
#dabe90burlywood

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button9.01:1AAA
Secondary button7.40:1AAA
Muted text4.95:1AA
Accent7.40:1AAA
Destructive7.03:1AAA
Dark mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button9.01:1AAA
Secondary button8.46:1AAA
Muted text7.06:1AAA
Accent8.46:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 79.928);
  --foreground: oklch(0.099 0.015 88.755);
  --muted: oklch(0.946 0.013 79.905);
  --muted-foreground: oklch(0.508 0.029 79.678);
  --popover: oklch(0.994 0.003 79.928);
  --popover-foreground: oklch(0.099 0.015 88.755);
  --card: oklch(0.994 0.003 79.928);
  --card-foreground: oklch(0.099 0.015 88.755);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.814 0.068 79.363);
  --primary-foreground: oklch(0.249 0.033 78.179);
  --secondary: oklch(0.879 0.005 79.923);
  --secondary-foreground: oklch(0.366 0.01 79.86);
  --accent: oklch(0.879 0.005 79.923);
  --accent-foreground: oklch(0.366 0.01 79.86);
  --destructive: oklch(0.355 0.125 32.318);
  --destructive-foreground: oklch(0.842 0.078 30.089);
  --ring: oklch(0.814 0.068 79.363);
  --chart-1: oklch(0.814 0.068 79.363);
  --chart-2: oklch(0.879 0.005 79.923);
  --chart-3: oklch(0.879 0.005 79.923);
  --chart-4: oklch(0.902 0.004 79.926);
  --chart-5: oklch(0.816 0.072 79.295);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.012 81.73);
  --foreground: oklch(0.986 0.001 79.931);
  --muted: oklch(0.204 0.019 79.255);
  --muted-foreground: oklch(0.714 0.027 79.811);
  --popover: oklch(0.152 0.012 81.73);
  --popover-foreground: oklch(0.986 0.001 79.931);
  --card: oklch(0.152 0.012 81.73);
  --card-foreground: oklch(0.986 0.001 79.931);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.814 0.068 79.363);
  --primary-foreground: oklch(0.249 0.033 78.179);
  --secondary: oklch(0.243 0.009 79.802);
  --secondary-foreground: oklch(0.79 0.016 79.884);
  --accent: oklch(0.243 0.009 79.802);
  --accent-foreground: oklch(0.79 0.016 79.884);
  --destructive: oklch(0.623 0.227 31.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.068 79.363);
  --chart-1: oklch(0.814 0.068 79.363);
  --chart-2: oklch(0.243 0.009 79.802);
  --chart-3: oklch(0.243 0.009 79.802);
  --chart-4: oklch(0.276 0.011 79.788);
  --chart-5: oklch(0.816 0.072 79.295);
}