Window is a shadcn/ui theme built around a muted red primary color (#a77472) with muted indigo accents (#7472a7). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#a77472) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #040101black |
| Foreground | #0d0303black | #faf5f5whitesmoke |
| Card | #fcf8f7snow | #080202black |
| Card foreground | #090202black | #fcf8f8snow |
| Popover | #fcf8f7snow | #080202black |
| Popover foreground | #090202black | #fcf8f8snow |
| Primary | #a77472gray | #a77472gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #72a774gray | #72a774gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6eae6gainsboro | #151915black |
| Muted foreground | #536a54dimgray | #95ac96darkseagreen |
| Accent | #7472a7lightslategray | #7472a7lightslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a1140cfirebrick | #ef382ecrimson |
| Destructive foreground | #fde4e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a77472gray | #a77472gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.35:1 | AA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 4.86:1 | AA |
| Accent | 4.47:1 | AA Large |
| Destructive | 6.62:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 5.35:1 | AA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 7.29:1 | AAA |
| Accent | 4.47:1 | AA Large |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Window in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 19.642);
--foreground: oklch(0.118 0.024 24.922);
--muted: oklch(0.933 0.007 146.476);
--muted-foreground: oklch(0.498 0.044 145.739);
--popover: oklch(0.982 0.005 19.679);
--popover-foreground: oklch(0.102 0.021 24.924);
--card: oklch(0.982 0.005 19.679);
--card-foreground: oklch(0.102 0.021 24.924);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.609 0.065 21.344);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.676 0.093 145.245);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.574 0.081 285.088);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.454 0.175 29.306);
--destructive-foreground: oklch(0.938 0.028 21.279);
--ring: oklch(0.609 0.065 21.344);
--chart-1: oklch(0.609 0.065 21.344);
--chart-2: oklch(0.676 0.093 145.245);
--chart-3: oklch(0.574 0.081 285.088);
--chart-4: oklch(0.698 0.087 145.383);
--chart-5: oklch(0.606 0.074 21.635);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.014 23.903);
--foreground: oklch(0.974 0.005 19.681);
--muted: oklch(0.208 0.01 146.111);
--muted-foreground: oklch(0.721 0.04 146.042);
--popover: oklch(0.104 0.018 23.903);
--popover-foreground: oklch(0.983 0.003 19.655);
--card: oklch(0.104 0.018 23.903);
--card-foreground: oklch(0.983 0.003 19.655);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.609 0.065 21.344);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.676 0.093 145.245);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.574 0.081 285.088);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.22 28.469);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.065 21.344);
--chart-1: oklch(0.609 0.065 21.344);
--chart-2: oklch(0.676 0.093 145.245);
--chart-3: oklch(0.574 0.081 285.088);
--chart-4: oklch(0.698 0.087 145.383);
--chart-5: oklch(0.606 0.074 21.635);
}