Relaxation is a shadcn/ui theme built around a muted orange primary color (#856f66) with muted violet accents (#6f6685). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the muted orange primary (#856f66) on an orange-tinted background (#0b0604).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf9f7snow | #0b0604black |
| Foreground | #0b0604black | #f8f7f7whitesmoke |
| Card | #fdf9f7snow | #0b0604black |
| Card foreground | #0b0604black | #f8f7f7whitesmoke |
| Popover | #fdf9f7snow | #0b0604black |
| Popover foreground | #0b0604black | #f8f7f7whitesmoke |
| Primary | #856f66dimgray | #856f66dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #66856fdimgray | #66856fdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5f0e8honeydew | #0f1a12black |
| Muted foreground | #546458dimgray | #9baba0darkgray |
| Accent | #6f6685slategray | #6f6685slategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #dd5608chocolate | #e75a08orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #856f66dimgray | #856f66dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 4.09:1 | AA Large |
| Muted text | 5.38:1 | AA |
| Accent | 5.36:1 | AA |
| Destructive | 3.86:1 | AA Large |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 4.09:1 | AA Large |
| Muted text | 7.41:1 | AAA |
| Accent | 5.36:1 | AA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Relaxation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.005 44.926);
--foreground: oklch(0.13 0.013 51.678);
--muted: oklch(0.945 0.016 155.541);
--muted-foreground: oklch(0.486 0.027 154.753);
--popover: oklch(0.984 0.005 44.926);
--popover-foreground: oklch(0.13 0.013 51.678);
--card: oklch(0.984 0.005 44.926);
--card-foreground: oklch(0.13 0.013 51.678);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.56 0.03 44.514);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.585 0.048 154.208);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.53 0.048 298.482);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.624 0.184 42.479);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.56 0.03 44.514);
--chart-1: oklch(0.56 0.03 44.514);
--chart-2: oklch(0.585 0.048 154.208);
--chart-3: oklch(0.53 0.048 298.482);
--chart-4: oklch(0.613 0.05 154.197);
--chart-5: oklch(0.56 0.038 44.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.013 51.678);
--foreground: oklch(0.977 0.001 44.967);
--muted: oklch(0.204 0.023 153.495);
--muted-foreground: oklch(0.726 0.025 155.204);
--popover: oklch(0.13 0.013 51.678);
--popover-foreground: oklch(0.977 0.001 44.967);
--card: oklch(0.13 0.013 51.678);
--card-foreground: oklch(0.977 0.001 44.967);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.56 0.03 44.514);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.585 0.048 154.208);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.53 0.048 298.482);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.644 0.19 42.39);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.56 0.03 44.514);
--chart-1: oklch(0.56 0.03 44.514);
--chart-2: oklch(0.585 0.048 154.208);
--chart-3: oklch(0.53 0.048 298.482);
--chart-4: oklch(0.613 0.05 154.197);
--chart-5: oklch(0.56 0.038 44.426);
}