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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.74:1 | AAA |
| Text on card | 14.56:1 | AAA |
| Primary button | 9.32:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.13:1 | AA Large |
| Text on background | 11.74:1 | AAA |
| Text on card | 14.56:1 | AAA |
| Primary button | 9.32:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.13:1 | AA Large |
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);
}