Pajamas is a shadcn/ui theme built around a muted violet primary color (#716490) with muted light violet accents (#bfbac9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#716490) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #090415black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #070311black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #070311black | #ffffffwhite |
| Primary | #716490slategray | #716490slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d0cfd3lightgrey | #1c1924black |
| Secondary foreground | #37353bdarkslategray | #b2aac5silver |
| Muted | #ded9edgainsboro | #181226black |
| Muted foreground | #5d586adimgray | #9a95a7darkgray |
| Accent | #bfbac9silver | #2d2640darkslategray |
| Accent foreground | #27242edarkslategray | #c6bfd9thistle |
| Destructive | #851805maroon | #f74a2btomato |
| Destructive foreground | #fdc8bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #716490slategray | #716490slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Pajamas in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.039 296.134);
--muted: oklch(0.895 0.029 298.751);
--muted-foreground: oklch(0.472 0.028 298.264);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.121 0.034 297.728);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.034 297.728);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.534 0.069 297.002);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.856 0.006 299.176);
--secondary-foreground: oklch(0.334 0.01 298.792);
--accent: oklch(0.798 0.021 298.853);
--accent-foreground: oklch(0.267 0.018 298.112);
--destructive: oklch(0.401 0.146 32.124);
--destructive-foreground: oklch(0.877 0.061 29.882);
--ring: oklch(0.534 0.069 297.002);
--chart-1: oklch(0.534 0.069 297.002);
--chart-2: oklch(0.856 0.006 299.176);
--chart-3: oklch(0.798 0.021 298.853);
--chart-4: oklch(0.881 0.005 299.201);
--chart-5: oklch(0.526 0.081 296.547);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.2 0.041 295.48);
--muted-foreground: oklch(0.681 0.026 298.65);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.534 0.069 297.002);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.222 0.023 297.5);
--secondary-foreground: oklch(0.753 0.039 298.404);
--accent: oklch(0.289 0.048 296.275);
--accent-foreground: oklch(0.818 0.038 298.512);
--destructive: oklch(0.654 0.214 32.375);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.534 0.069 297.002);
--chart-1: oklch(0.534 0.069 297.002);
--chart-2: oklch(0.222 0.023 297.5);
--chart-3: oklch(0.289 0.048 296.275);
--chart-4: oklch(0.251 0.028 297.363);
--chart-5: oklch(0.526 0.081 296.547);
}