Raw for shadcn/ui

Raw is a shadcn/ui theme built around a vivid light violet primary color (#f4f0ff) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid light violet primary (#f4f0ff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#090514black
#f9f9fbghostwhite
Card
#f8f7fdghostwhite
#030303black
Card foreground
#070410black
#fcfcfdwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#090514black
#f9f9fbghostwhite
Primary
#f4f0ffghostwhite
#f4f0ffghostwhite
Primary foreground
#3206b7mediumblue
#3206b7mediumblue
Secondary
#d9d9d9gainsboro
#252131darkslategray
Secondary foreground
#404040darkslategray
#bcb6cesilver
Muted
#f6eeeelinen
#0b0911black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#d9d9d9gainsboro
#252131darkslategray
Accent foreground
#404040darkslategray
#bcb6cesilver
Destructive
#711804maroon
#f6380eorangered
Destructive foreground
#fcbaablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f0ffghostwhite
#f4f0ffghostwhite

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.02:1AAA
Primary button10.16:1AAA
Secondary button7.32:1AAA
Muted text6.64:1AA
Accent7.32:1AAA
Destructive6.93:1AA
Dark mode
Text on background19.97:1AAA
Text on card20.16:1AAA
Primary button10.16:1AAA
Secondary button8.02:1AAA
Muted text8.62:1AAA
Accent8.02:1AAA
Destructive3.81: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.989 0.005 297.744);
  --foreground: oklch(0.135 0.033 294.813);
  --muted: oklch(0.956 0.008 17.301);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.989 0.005 297.744);
  --popover-foreground: oklch(0.135 0.033 294.813);
  --card: oklch(0.978 0.009 297.66);
  --card-foreground: oklch(0.124 0.029 296.213);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.963 0.019 297.465);
  --primary-foreground: oklch(0.377 0.231 276.318);
  --secondary: oklch(0.885 0 180);
  --secondary-foreground: oklch(0.371 0 168.69);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.362 0.126 33.638);
  --destructive-foreground: oklch(0.846 0.08 32.993);
  --ring: oklch(0.963 0.019 297.465);
  --chart-1: oklch(0.963 0.019 297.465);
  --chart-2: oklch(0.885 0 180);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.908 0 180);
  --chart-5: oklch(0.962 0.02 297.453);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.004 297.758);
  --muted: oklch(0.146 0.017 295.893);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.004 297.758);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 297.792);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.963 0.019 297.465);
  --primary-foreground: oklch(0.377 0.231 276.318);
  --secondary: oklch(0.258 0.031 295.648);
  --secondary-foreground: oklch(0.788 0.035 297.034);
  --accent: oklch(0.258 0.031 295.648);
  --accent-foreground: oklch(0.788 0.035 297.034);
  --destructive: oklch(0.635 0.229 32.862);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.019 297.465);
  --chart-1: oklch(0.963 0.019 297.465);
  --chart-2: oklch(0.258 0.031 295.648);
  --chart-3: oklch(0.258 0.031 295.648);
  --chart-4: oklch(0.286 0.036 295.543);
  --chart-5: oklch(0.962 0.02 297.453);
}