Relaxation is a shadcn/ui theme built around a deep blue primary color (#293b51) with deep indigo accents (#2c2951). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the deep blue primary (#293b51) on a blue-tinted background (#060a0e).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #060a0eblack |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #f7f9fdghostwhite | #060a0eblack |
| Card foreground | #010204black | #fcfcfdwhite |
| Popover | #f7f9fdghostwhite | #060a0eblack |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #293b51darkslategray | #293b51darkslategray |
| Primary foreground | #c9d4e4lightgrey | #c9d4e4lightgrey |
| Secondary | #294f51darkslategray | #294f51darkslategray |
| Secondary foreground | #c9e2e4gainsboro | #c9e2e4gainsboro |
| Muted | #dce9eagainsboro | #152223black |
| Muted foreground | #4e5050darkslategray | #afb1b1darkgray |
| Accent | #2c2951darkslategray | #2c2951darkslategray |
| Accent foreground | #cbc9e4thistle | #cbc9e4thistle |
| Destructive | #b63a11firebrick | #db4614chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #293b51darkslategray | #293b51darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 6.52:1 | AA |
| Accent | 8.43:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 7.57:1 | AAA |
| Accent | 8.43:1 | AAA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Relaxation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 254.984);
--foreground: oklch(0.086 0.012 244.866);
--muted: oklch(0.925 0.014 202.056);
--muted-foreground: oklch(0.429 0.002 202.166);
--popover: oklch(0.983 0.006 254.984);
--popover-foreground: oklch(0.086 0.012 244.866);
--card: oklch(0.983 0.006 254.984);
--card-foreground: oklch(0.086 0.012 244.866);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.346 0.046 255.421);
--primary-foreground: oklch(0.867 0.025 255.09);
--secondary: oklch(0.4 0.043 201.564);
--secondary-foreground: oklch(0.894 0.027 201.917);
--accent: oklch(0.306 0.071 284.381);
--accent-foreground: oklch(0.845 0.037 288.635);
--destructive: oklch(0.525 0.167 36.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.346 0.046 255.421);
--chart-1: oklch(0.346 0.046 255.421);
--chart-2: oklch(0.4 0.043 201.564);
--chart-3: oklch(0.306 0.071 284.381);
--chart-4: oklch(0.433 0.048 201.567);
--chart-5: oklch(0.345 0.051 255.468);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.012 251.856);
--foreground: oklch(0.992 0.001 254.96);
--muted: oklch(0.241 0.018 201.611);
--muted-foreground: oklch(0.758 0.002 202.191);
--popover: oklch(0.141 0.012 251.856);
--popover-foreground: oklch(0.992 0.001 254.96);
--card: oklch(0.141 0.012 251.856);
--card-foreground: oklch(0.992 0.001 254.96);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.346 0.046 255.421);
--primary-foreground: oklch(0.867 0.025 255.09);
--secondary: oklch(0.4 0.043 201.564);
--secondary-foreground: oklch(0.894 0.027 201.917);
--accent: oklch(0.306 0.071 284.381);
--accent-foreground: oklch(0.845 0.037 288.635);
--destructive: oklch(0.602 0.194 36.556);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.346 0.046 255.421);
--chart-1: oklch(0.346 0.046 255.421);
--chart-2: oklch(0.4 0.043 201.564);
--chart-3: oklch(0.306 0.071 284.381);
--chart-4: oklch(0.433 0.048 201.567);
--chart-5: oklch(0.345 0.051 255.468);
}