Raw for shadcn/ui

Raw is a shadcn/ui theme built around a purple primary color (#be82c0) with muted light purple accents (#ddd4dd). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#be82c0) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fefbfewhite
#080208black
Foreground
#000000black
#f9f6f9whitesmoke
Card
#fcf7fdghostwhite
#0c030cblack
Card foreground
#000000black
#fbf9fbsnow
Popover
#fefbfewhite
#080208black
Popover foreground
#000000black
#f9f6f9whitesmoke
Primary
#be82c0orchid
#be82c0orchid
Primary foreground
#0a050ablack
#0a050ablack
Secondary
#ddd4ddgainsboro
#342d34darkslategray
Secondary foreground
#473847darkslategray
#cdc6cdlightgrey
Muted
#eee7eelavender
#181118black
Muted foreground
#5b485bdimgray
#b7a4b7darkgray
Accent
#ddd4ddgainsboro
#342d34darkslategray
Accent foreground
#473847darkslategray
#cdc6cdlightgrey
Destructive
#852b0asaddlebrown
#d54510chocolate
Destructive foreground
#fbd4c6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#be82c0orchid
#be82c0orchid

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card19.90:1AAA
Primary button6.84:1AA
Secondary button7.56:1AAA
Muted text6.86:1AA
Accent7.56:1AAA
Destructive6.55:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.38:1AAA
Primary button6.84:1AA
Secondary button7.99:1AAA
Muted text7.96:1AAA
Accent7.99:1AAA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 324.646);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.936 0.012 324.698);
  --muted-foreground: oklch(0.428 0.04 325.189);
  --popover: oklch(0.991 0.004 324.646);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.009 324.675);
  --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.687 0.112 325.574);
  --primary-foreground: oklch(0.128 0.017 325.578);
  --secondary: oklch(0.88 0.016 324.732);
  --secondary-foreground: oklch(0.363 0.033 325.167);
  --accent: oklch(0.88 0.016 324.732);
  --accent-foreground: oklch(0.363 0.033 325.167);
  --destructive: oklch(0.42 0.13 37.818);
  --destructive-foreground: oklch(0.899 0.048 40.995);
  --ring: oklch(0.687 0.112 325.574);
  --chart-1: oklch(0.687 0.112 325.574);
  --chart-2: oklch(0.88 0.016 324.732);
  --chart-3: oklch(0.88 0.016 324.732);
  --chart-4: oklch(0.904 0.012 324.706);
  --chart-5: oklch(0.686 0.121 325.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.027 326.364);
  --foreground: oklch(0.976 0.005 324.652);
  --muted: oklch(0.189 0.017 325.18);
  --muted-foreground: oklch(0.74 0.035 324.914);
  --popover: oklch(0.108 0.027 326.364);
  --popover-foreground: oklch(0.976 0.005 324.652);
  --card: oklch(0.123 0.031 326.28);
  --card-foreground: oklch(0.984 0.003 324.64);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.687 0.112 325.574);
  --primary-foreground: oklch(0.128 0.017 325.578);
  --secondary: oklch(0.307 0.015 324.926);
  --secondary-foreground: oklch(0.834 0.013 324.717);
  --accent: oklch(0.307 0.015 324.926);
  --accent-foreground: oklch(0.834 0.013 324.717);
  --destructive: oklch(0.59 0.19 37.154);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.687 0.112 325.574);
  --chart-1: oklch(0.687 0.112 325.574);
  --chart-2: oklch(0.307 0.015 324.926);
  --chart-3: oklch(0.307 0.015 324.926);
  --chart-4: oklch(0.337 0.017 324.935);
  --chart-5: oklch(0.686 0.121 325.65);
}