Rosé Pine Moon for shadcn/ui

Rosé Pine Moon is a shadcn/ui theme built around a light indigo primary color (#deddf4) with muted indigo accents (#423e65). The light mode uses an indigo-tinted background (#232136). Dark mode keeps the light indigo primary (#deddf4) on an indigo-tinted background (#232136).

Color palette

TokenLightDark
Background
#232136darkslategray
#232136darkslategray
Foreground
#deddf4lavender
#deddf4lavender
Card
#1f1d2fdarkslategray
#1f1d2fdarkslategray
Card foreground
#f1f0fawhitesmoke
#f1f0fawhitesmoke
Popover
#1d1b2cblack
#1d1b2cblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#deddf4lavender
#deddf4lavender
Primary foreground
#2e2877midnightblue
#2e2877midnightblue
Secondary
#302d53darkslategray
#302d53darkslategray
Secondary foreground
#cfcde4lightgrey
#cfcde4lightgrey
Muted
#302f3cdarkslategray
#302f3cdarkslategray
Muted foreground
#aeacbedarkgray
#aeacbedarkgray
Accent
#423e65darkslategray
#423e65darkslategray
Accent foreground
#e7e6eflavender
#e7e6eflavender
Destructive
#f90e01red
#f90e01red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#323040darkslategray
#323040darkslategray
Input
#393749darkslategray
#393749darkslategray
Ring
#deddf4lavender
#deddf4lavender

Contrast

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

Light mode
Text on background11.74:1AAA
Text on card14.56:1AAA
Primary button9.32:1AAA
Secondary button8.34:1AAA
Muted text5.89:1AA
Accent8.04:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background11.74:1AAA
Text on card14.56:1AAA
Primary button9.32:1AAA
Secondary button8.34:1AAA
Muted text5.89:1AA
Accent8.04:1AAA
Destructive4.13:1AA Large

CSS variables

Paste this into your globals.css to use Rosé Pine Moon in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.26 0.039 287.978);
  --foreground: oklch(0.905 0.031 289.589);
  --muted: oklch(0.312 0.023 289.588);
  --muted-foreground: oklch(0.752 0.025 290.373);
  --popover: oklch(0.233 0.033 288.162);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.242 0.035 288.095);
  --card-foreground: oklch(0.958 0.014 289.978);
  --border: oklch(0.318 0.028 289.299);
  --input: oklch(0.345 0.031 289.25);
  --primary: oklch(0.905 0.031 289.589);
  --primary-foreground: oklch(0.335 0.13 280.504);
  --secondary: oklch(0.319 0.067 285.741);
  --secondary-foreground: oklch(0.858 0.032 289.543);
  --accent: oklch(0.386 0.066 287.479);
  --accent-foreground: oklch(0.928 0.013 290.745);
  --destructive: oklch(0.619 0.25 29.613);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.905 0.031 289.589);
  --chart-1: oklch(0.905 0.031 289.589);
  --chart-2: oklch(0.319 0.067 285.741);
  --chart-3: oklch(0.386 0.066 287.479);
  --chart-4: oklch(0.343 0.074 285.622);
  --chart-5: oklch(0.903 0.033 289.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.26 0.039 287.978);
  --foreground: oklch(0.905 0.031 289.589);
  --muted: oklch(0.312 0.023 289.588);
  --muted-foreground: oklch(0.752 0.025 290.373);
  --popover: oklch(0.233 0.033 288.162);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.242 0.035 288.095);
  --card-foreground: oklch(0.958 0.014 289.978);
  --border: oklch(0.318 0.028 289.299);
  --input: oklch(0.345 0.031 289.25);
  --primary: oklch(0.905 0.031 289.589);
  --primary-foreground: oklch(0.335 0.13 280.504);
  --secondary: oklch(0.319 0.067 285.741);
  --secondary-foreground: oklch(0.858 0.032 289.543);
  --accent: oklch(0.386 0.066 287.479);
  --accent-foreground: oklch(0.928 0.013 290.745);
  --destructive: oklch(0.619 0.25 29.613);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.905 0.031 289.589);
  --chart-1: oklch(0.905 0.031 289.589);
  --chart-2: oklch(0.319 0.067 285.741);
  --chart-3: oklch(0.386 0.066 287.479);
  --chart-4: oklch(0.343 0.074 285.622);
  --chart-5: oklch(0.903 0.033 289.547);
}