Window is a shadcn/ui theme built around a muted deep blue primary color (#14161a) with muted deep indigo accents (#15141a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted deep blue primary (#14161a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #030a16black | #ffffffwhite |
| Card | #fbfcfewhite | #000000black |
| Card foreground | #030a16black | #ffffffwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #030a16black | #ffffffwhite |
| Primary | #14161ablack | #14161ablack |
| Primary foreground | #a6adb9darkgray | #a6adb9darkgray |
| Secondary | #14191ablack | #14191ablack |
| Secondary foreground | #a6b7b9darkgray | #a6b7b9darkgray |
| Muted | #e3f0f2lavender | #0d1a1cblack |
| Muted foreground | #4a5759darkslategray | #a6b3b5darkgray |
| Accent | #15141ablack | #15141ablack |
| Accent foreground | #a9a6b9darkgray | #a9a6b9darkgray |
| Destructive | #c74f0achocolate | #e95d0cchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #14161ablack | #14161ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 4.61:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 3.48: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.002 261.514);
--foreground: oklch(0.144 0.031 255.57);
--muted: oklch(0.946 0.014 207.877);
--muted-foreground: oklch(0.446 0.016 207.836);
--popover: oklch(0.991 0.002 261.514);
--popover-foreground: oklch(0.144 0.031 255.57);
--card: oklch(0.991 0.002 261.514);
--card-foreground: oklch(0.144 0.031 255.57);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.2 0.008 261.459);
--primary-foreground: oklch(0.747 0.019 261.488);
--secondary: oklch(0.209 0.007 207.837);
--secondary-foreground: oklch(0.767 0.019 207.852);
--accent: oklch(0.196 0.011 291.461);
--accent-foreground: oklch(0.735 0.027 291.839);
--destructive: oklch(0.579 0.167 43.249);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.2 0.008 261.459);
--chart-1: oklch(0.2 0.008 261.459);
--chart-2: oklch(0.209 0.007 207.837);
--chart-3: oklch(0.196 0.011 291.461);
--chart-4: oklch(0.243 0.009 207.836);
--chart-5: oklch(0.2 0.01 261.43);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.206 0.018 208.059);
--muted-foreground: oklch(0.757 0.015 207.864);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.2 0.008 261.459);
--primary-foreground: oklch(0.747 0.019 261.488);
--secondary: oklch(0.209 0.007 207.837);
--secondary-foreground: oklch(0.767 0.019 207.852);
--accent: oklch(0.196 0.011 291.461);
--accent-foreground: oklch(0.735 0.027 291.839);
--destructive: oklch(0.65 0.189 42.942);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.2 0.008 261.459);
--chart-1: oklch(0.2 0.008 261.459);
--chart-2: oklch(0.209 0.007 207.837);
--chart-3: oklch(0.196 0.011 291.461);
--chart-4: oklch(0.243 0.009 207.836);
--chart-5: oklch(0.2 0.01 261.43);
}