Raise for shadcn/ui

Raise is a shadcn/ui theme built around a muted deep red primary color (#402826) with muted deep cyan accents (#263e40). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the muted deep red primary (#402826) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fbf9f8snow
#070303black
Foreground
#0c0403black
#ffffffwhite
Card
#faf5f5whitesmoke
#0b0504black
Card foreground
#080302black
#ffffffwhite
Popover
#fbf9f8snow
#070303black
Popover foreground
#0c0403black
#ffffffwhite
Primary
#402826darkslategray
#402826darkslategray
Primary foreground
#d9c1bfsilver
#d9c1bfsilver
Secondary
#263e40darkslategray
#263e40darkslategray
Secondary foreground
#bfd7d9lightgrey
#bfd7d9lightgrey
Muted
#eff5f6whitesmoke
#091010black
Muted foreground
#596769dimgray
#96a5a6darkgray
Accent
#263e40darkslategray
#263e40darkslategray
Accent foreground
#bfd7d9lightgrey
#bfd7d9lightgrey
Destructive
#631c03maroon
#f44606orangered
Destructive foreground
#fcb59cburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#402826darkslategray
#402826darkslategray

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card19.02:1AAA
Primary button7.95:1AAA
Secondary button7.54:1AAA
Muted text5.33:1AA
Accent7.54:1AAA
Destructive7.16:1AAA
Dark mode
Text on background20.49:1AAA
Text on card20.25:1AAA
Primary button7.95:1AAA
Secondary button7.54:1AAA
Muted text7.54:1AAA
Accent7.54:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 23.611);
  --foreground: oklch(0.122 0.018 28.306);
  --muted: oklch(0.966 0.007 203.519);
  --muted-foreground: oklch(0.504 0.017 203.301);
  --popover: oklch(0.983 0.003 23.611);
  --popover-foreground: oklch(0.122 0.018 28.306);
  --card: oklch(0.975 0.005 23.626);
  --card-foreground: oklch(0.107 0.016 28.368);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.306 0.037 25.176);
  --primary-foreground: oklch(0.831 0.028 23.937);
  --secondary: oklch(0.345 0.03 203.122);
  --secondary-foreground: oklch(0.862 0.026 203.33);
  --accent: oklch(0.345 0.03 203.122);
  --accent-foreground: oklch(0.862 0.026 203.33);
  --destructive: oklch(0.34 0.108 38.104);
  --destructive-foreground: oklch(0.835 0.091 40.826);
  --ring: oklch(0.306 0.037 25.176);
  --chart-1: oklch(0.306 0.037 25.176);
  --chart-2: oklch(0.345 0.03 203.122);
  --chart-3: oklch(0.345 0.03 203.122);
  --chart-4: oklch(0.378 0.034 203.124);
  --chart-5: oklch(0.305 0.042 25.428);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.012 27.091);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.01 203.167);
  --muted-foreground: oklch(0.71 0.016 203.386);
  --popover: oklch(0.109 0.012 27.091);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.014 27.067);
  --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.306 0.037 25.176);
  --primary-foreground: oklch(0.831 0.028 23.937);
  --secondary: oklch(0.345 0.03 203.122);
  --secondary-foreground: oklch(0.862 0.026 203.33);
  --accent: oklch(0.345 0.03 203.122);
  --accent-foreground: oklch(0.862 0.026 203.33);
  --destructive: oklch(0.642 0.218 35.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.306 0.037 25.176);
  --chart-1: oklch(0.306 0.037 25.176);
  --chart-2: oklch(0.345 0.03 203.122);
  --chart-3: oklch(0.345 0.03 203.122);
  --chart-4: oklch(0.378 0.034 203.124);
  --chart-5: oklch(0.305 0.042 25.428);
}