Paper White Crane is a shadcn/ui theme built around a muted light blue primary color (#eff2f5) with muted deep blue accents (#272f3f). The light mode uses a blue-tinted background (#0a0c10). Dark mode keeps the muted light blue primary (#eff2f5) on a blue-tinted background (#0a0c10).
| Token | Light | Dark |
|---|---|---|
| Background | #0a0c10black | #0a0c10black |
| Foreground | #eff2f5whitesmoke | #eff2f5whitesmoke |
| Card | #060709black | #060709black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #040506black | #040506black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #eff2f5whitesmoke | #eff2f5whitesmoke |
| Primary foreground | #435970darkslateblue | #435970darkslateblue |
| Secondary | #364049darkslategray | #364049darkslategray |
| Secondary foreground | #d3d9degainsboro | #d3d9degainsboro |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba2b0darkgray | #9ba2b0darkgray |
| Accent | #272f3fdarkslategray | #272f3fdarkslategray |
| Accent foreground | #c0c8d8lightsteelblue | #c0c8d8lightsteelblue |
| Destructive | #e9352fcrimson | #e9352fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #16181dblack | #16181dblack |
| Input | #1d2025black | #1d2025black |
| Ring | #eff2f5whitesmoke | #eff2f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.44:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.17:1 | AA Large |
| Text on background | 17.44:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Paper White Crane in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.153 0.009 264.274);
--foreground: oklch(0.96 0.005 247.881);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.112 0.006 261.594);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.006 261.594);
--card-foreground: oklch(1 0 180);
--border: oklch(0.21 0.009 264.351);
--input: oklch(0.242 0.012 264.326);
--primary: oklch(0.96 0.005 247.881);
--primary-foreground: oklch(0.456 0.046 248.861);
--secondary: oklch(0.366 0.021 248.396);
--secondary-foreground: oklch(0.882 0.01 247.941);
--accent: oklch(0.305 0.03 263.965);
--accent-foreground: oklch(0.832 0.023 264.439);
--destructive: oklch(0.612 0.216 27.811);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.96 0.005 247.881);
--chart-1: oklch(0.96 0.005 247.881);
--chart-2: oklch(0.366 0.021 248.396);
--chart-3: oklch(0.305 0.03 263.965);
--chart-4: oklch(0.394 0.023 248.408);
--chart-5: oklch(0.96 0.006 247.888);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.009 264.274);
--foreground: oklch(0.96 0.005 247.881);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.112 0.006 261.594);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.006 261.594);
--card-foreground: oklch(1 0 180);
--border: oklch(0.21 0.009 264.351);
--input: oklch(0.242 0.012 264.326);
--primary: oklch(0.96 0.005 247.881);
--primary-foreground: oklch(0.456 0.046 248.861);
--secondary: oklch(0.366 0.021 248.396);
--secondary-foreground: oklch(0.882 0.01 247.941);
--accent: oklch(0.305 0.03 263.965);
--accent-foreground: oklch(0.832 0.023 264.439);
--destructive: oklch(0.612 0.216 27.811);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.96 0.005 247.881);
--chart-1: oklch(0.96 0.005 247.881);
--chart-2: oklch(0.366 0.021 248.396);
--chart-3: oklch(0.305 0.03 263.965);
--chart-4: oklch(0.394 0.023 248.408);
--chart-5: oklch(0.96 0.006 247.888);
}