Ray for shadcn/ui

Ray is a shadcn/ui theme built around a muted pink primary color (#b39ea5) with muted light pink accents (#ddd5d7). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted pink primary (#b39ea5) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0b0407black
Foreground
#090204black
#ffffffwhite
Card
#fefbfcsnow
#0b0407black
Card foreground
#090204black
#ffffffwhite
Popover
#fefbfcsnow
#0b0407black
Popover foreground
#090204black
#ffffffwhite
Primary
#b39ea5darkgray
#b39ea5darkgray
Primary foreground
#110d0fblack
#110d0fblack
Secondary
#e6e5e5gainsboro
#2d2427darkslategray
Secondary foreground
#4e4b4cdarkslategray
#c9bbc0silver
Muted
#e8d8degainsboro
#27171cblack
Muted foreground
#4d4246darkslategray
#bdb2b6silver
Accent
#ddd5d7gainsboro
#402b32darkslategray
Accent foreground
#47393edarkslategray
#d8c5ccthistle
Destructive
#8f2800saddlebrown
#ff4800orangered
Destructive foreground
#ffd3c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b39ea5darkgray
#b39ea5darkgray

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button7.66:1AAA
Secondary button6.86:1AA
Muted text7.03:1AAA
Accent7.55:1AAA
Destructive6.20:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button7.66:1AAA
Secondary button8.11:1AAA
Muted text8.35:1AAA
Accent7.93:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 353.649);
  --foreground: oklch(0.103 0.025 353.075);
  --muted: oklch(0.898 0.019 354.175);
  --muted-foreground: oklch(0.391 0.017 354.784);
  --popover: oklch(0.991 0.003 353.649);
  --popover-foreground: oklch(0.103 0.025 353.075);
  --card: oklch(0.991 0.003 353.649);
  --card-foreground: oklch(0.103 0.025 353.075);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.719 0.026 354.605);
  --primary-foreground: oklch(0.166 0.007 354.706);
  --secondary: oklch(0.923 0.001 353.611);
  --secondary-foreground: oklch(0.416 0.004 353.878);
  --accent: oklch(0.879 0.01 353.902);
  --accent-foreground: oklch(0.36 0.021 355.212);
  --destructive: oklch(0.435 0.144 37.515);
  --destructive-foreground: oklch(0.9 0.055 42.701);
  --ring: oklch(0.719 0.026 354.605);
  --chart-1: oklch(0.719 0.026 354.605);
  --chart-2: oklch(0.923 0.001 353.611);
  --chart-3: oklch(0.879 0.01 353.902);
  --chart-4: oklch(0.946 0.001 353.599);
  --chart-5: oklch(0.716 0.033 354.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.017 353.383);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.226 0.027 356.87);
  --muted-foreground: oklch(0.774 0.014 354.094);
  --popover: oklch(0.123 0.017 353.383);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.017 353.383);
  --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.719 0.026 354.605);
  --primary-foreground: oklch(0.166 0.007 354.706);
  --secondary: oklch(0.273 0.015 355.059);
  --secondary-foreground: oklch(0.805 0.016 354.157);
  --accent: oklch(0.317 0.034 356.491);
  --accent-foreground: oklch(0.841 0.024 354.366);
  --destructive: oklch(0.663 0.227 36.019);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.719 0.026 354.605);
  --chart-1: oklch(0.719 0.026 354.605);
  --chart-2: oklch(0.273 0.015 355.059);
  --chart-3: oklch(0.317 0.034 356.491);
  --chart-4: oklch(0.303 0.017 355.122);
  --chart-5: oklch(0.716 0.033 354.866);
}