Relaxed Clear Mauve is a shadcn/ui theme built around an indigo primary color (#7b70b2) with violet accents (#9c70b2). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#7b70b2) on an indigo-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #06050bblack |
| Foreground | #010105black | #f6f5fawhitesmoke |
| Card | #f8f7fdghostwhite | #08060eblack |
| Card foreground | #000000black | #f9f8fbghostwhite |
| Popover | #fbfbfeghostwhite | #06050bblack |
| Popover foreground | #010105black | #f6f5fawhitesmoke |
| Primary | #7b70b2lightslategray | #7b70b2lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7086b2lightslategray | #7086b2lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebeef4lavender | #0b0e14black |
| Muted foreground | #4b4f58darkslategray | #a7abb4darkgray |
| Accent | #9c70b2mediumpurple | #9c70b2mediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #6c1b09maroon | #ed5735tomato |
| Destructive foreground | #f8bdaflightpink | #000000black |
| Border | #eeedf2whitesmoke | #201e29black |
| Input | #eeedf2whitesmoke | #201e29black |
| Ring | #7b70b2lightslategray | #7b70b2lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 4.34:1 | AA Large |
| Secondary button | 5.77:1 | AA |
| Muted text | 7.07:1 | AAA |
| Accent | 5.40:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 18.74:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 4.34:1 | AA Large |
| Secondary button | 5.77:1 | AA |
| Muted text | 8.40:1 | AAA |
| Accent | 5.40:1 | AA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use Relaxed Clear Mauve in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 293.984);
--foreground: oklch(0.069 0.025 291.312);
--muted: oklch(0.949 0.009 264.521);
--muted-foreground: oklch(0.428 0.015 264.399);
--popover: oklch(0.989 0.004 293.984);
--popover-foreground: oklch(0.069 0.025 291.312);
--card: oklch(0.978 0.009 293.9);
--card-foreground: oklch(0 0 0);
--border: oklch(0.949 0.006 293.945);
--input: oklch(0.949 0.006 293.945);
--primary: oklch(0.584 0.1 290.618);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.621 0.071 263.842);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.108 313.932);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.355 0.117 33.789);
--destructive-foreground: oklch(0.848 0.072 32.934);
--ring: oklch(0.584 0.1 290.618);
--chart-1: oklch(0.584 0.1 290.618);
--chart-2: oklch(0.621 0.071 263.842);
--chart-3: oklch(0.616 0.108 313.932);
--chart-4: oklch(0.649 0.066 263.952);
--chart-5: oklch(0.577 0.11 290.179);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.016 293.167);
--foreground: oklch(0.972 0.006 293.952);
--muted: oklch(0.162 0.014 264.073);
--muted-foreground: oklch(0.741 0.013 264.486);
--popover: oklch(0.119 0.016 293.167);
--popover-foreground: oklch(0.972 0.006 293.952);
--card: oklch(0.131 0.018 292.588);
--card-foreground: oklch(0.982 0.004 293.991);
--border: oklch(0.243 0.02 292.46);
--input: oklch(0.243 0.02 292.46);
--primary: oklch(0.584 0.1 290.618);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.621 0.071 263.842);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.108 313.932);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.653 0.192 34.12);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.584 0.1 290.618);
--chart-1: oklch(0.584 0.1 290.618);
--chart-2: oklch(0.621 0.071 263.842);
--chart-3: oklch(0.616 0.108 313.932);
--chart-4: oklch(0.649 0.066 263.952);
--chart-5: oklch(0.577 0.11 290.179);
}