Back Pale Phthalo Blue is a shadcn/ui theme built around a vivid light blue primary color (#c3d1f8) with muted blue accents (#aab1c5). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the vivid light blue primary (#c3d1f8) on a blue-tinted background (#04060b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #04060bblack |
| Foreground | #010309black | #fcfcfdwhite |
| Card | #f4f6fawhitesmoke | #06080fblack |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #f4f6fawhitesmoke | #06080fblack |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #c3d1f8lightblue | #c3d1f8lightblue |
| Primary foreground | #0e2b7cmidnightblue | #0e2b7cmidnightblue |
| Secondary | #c9ccd4lightgrey | #323334darkslategray |
| Secondary foreground | #30333bdarkslategray | #cbcccdlightgrey |
| Muted | #d4d9e7gainsboro | #181d2bblack |
| Muted foreground | #606062dimgray | #9d9e9fdarkgray |
| Accent | #aab1c5silver | #3a3f4adarkslategray |
| Accent foreground | #191c24black | #d7d9e0gainsboro |
| Destructive | #dc3309orangered | #f75d36tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #dedfe3gainsboro | #1a1b1eblack |
| Input | #dedfe3gainsboro | #1a1b1eblack |
| Ring | #c3d1f8lightblue | #c3d1f8lightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 7.97:1 | AAA |
| Destructive | 4.62:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Back Pale Phthalo Blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 270.088);
--foreground: oklch(0.101 0.02 259.35);
--muted: oklch(0.887 0.02 269.922);
--muted-foreground: oklch(0.491 0.002 270.082);
--popover: oklch(0.973 0.006 270.071);
--popover-foreground: oklch(0.08 0.016 259.35);
--card: oklch(0.973 0.006 270.071);
--card-foreground: oklch(0.08 0.016 259.35);
--border: oklch(0.904 0.005 270.075);
--input: oklch(0.904 0.005 270.075);
--primary: oklch(0.864 0.056 269.469);
--primary-foreground: oklch(0.329 0.141 264.369);
--secondary: oklch(0.846 0.011 270.008);
--secondary-foreground: oklch(0.321 0.016 269.643);
--accent: oklch(0.762 0.03 269.761);
--accent-foreground: oklch(0.227 0.017 269.337);
--destructive: oklch(0.586 0.21 33.357);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.056 269.469);
--chart-1: oklch(0.864 0.056 269.469);
--chart-2: oklch(0.846 0.011 270.008);
--chart-3: oklch(0.762 0.03 269.761);
--chart-4: oklch(0.87 0.009 270.03);
--chart-5: oklch(0.863 0.058 269.438);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.014 264.435);
--foreground: oklch(0.992 0.001 270.116);
--muted: oklch(0.231 0.028 268.723);
--muted-foreground: oklch(0.698 0.002 270.096);
--popover: oklch(0.135 0.016 265.624);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.016 265.624);
--card-foreground: oklch(1 0 180);
--border: oklch(0.222 0.007 269.852);
--input: oklch(0.222 0.007 269.852);
--primary: oklch(0.864 0.056 269.469);
--primary-foreground: oklch(0.329 0.141 264.369);
--secondary: oklch(0.319 0.003 270.049);
--secondary-foreground: oklch(0.844 0.002 270.1);
--accent: oklch(0.367 0.021 269.563);
--accent-foreground: oklch(0.886 0.009 270.037);
--destructive: oklch(0.674 0.196 35.054);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.864 0.056 269.469);
--chart-1: oklch(0.864 0.056 269.469);
--chart-2: oklch(0.319 0.003 270.049);
--chart-3: oklch(0.367 0.021 269.563);
--chart-4: oklch(0.349 0.003 270.047);
--chart-5: oklch(0.863 0.058 269.438);
}