Pitch is a shadcn/ui theme built around a light blue primary color (#cddcf4) with muted blue accents (#b8bdc7). The light mode uses a neutral background (#f7f9fc). Dark mode keeps the light blue primary (#cddcf4) on a blue-tinted background (#03070c).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fcghostwhite | #03070cblack |
| Foreground | #030812black | #f8fafcghostwhite |
| Card | #f7f9fcghostwhite | #03070cblack |
| Card foreground | #030812black | #f8fafcghostwhite |
| Popover | #f7f9fcghostwhite | #03070cblack |
| Popover foreground | #030812black | #f8fafcghostwhite |
| Primary | #cddcf4lavender | #cddcf4lavender |
| Primary foreground | #193d76midnightblue | #193d76midnightblue |
| Secondary | #d2d3d5lightgrey | #282b2edarkslategray |
| Secondary foreground | #383a3ddarkslategray | #c0c3c8silver |
| Muted | #d6dce6gainsboro | #191f29black |
| Muted foreground | #555e6ddimgray | #929baadarkgray |
| Accent | #b8bdc7silver | #3a4250darkslategray |
| Accent foreground | #22252bdarkslategray | #d9dde3gainsboro |
| Destructive | #da1807red | #f8200dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cddcf4lavender | #cddcf4lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 5.11:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Pitch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 259.939);
--foreground: oklch(0.134 0.025 252.077);
--muted: oklch(0.892 0.016 259.946);
--muted-foreground: oklch(0.48 0.026 259.911);
--popover: oklch(0.982 0.005 259.939);
--popover-foreground: oklch(0.134 0.025 252.077);
--card: oklch(0.982 0.005 259.939);
--card-foreground: oklch(0.134 0.025 252.077);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.89 0.038 259.929);
--primary-foreground: oklch(0.366 0.107 259.572);
--secondary: oklch(0.867 0.003 259.938);
--secondary-foreground: oklch(0.348 0.006 259.946);
--accent: oklch(0.798 0.015 259.946);
--accent-foreground: oklch(0.264 0.012 259.926);
--destructive: oklch(0.564 0.222 30.05);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.89 0.038 259.929);
--chart-1: oklch(0.89 0.038 259.929);
--chart-2: oklch(0.867 0.003 259.938);
--chart-3: oklch(0.798 0.015 259.946);
--chart-4: oklch(0.891 0.003 259.937);
--chart-5: oklch(0.889 0.039 259.926);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.016 251.769);
--foreground: oklch(0.983 0.003 259.937);
--muted: oklch(0.239 0.022 259.82);
--muted-foreground: oklch(0.688 0.023 259.938);
--popover: oklch(0.124 0.016 251.769);
--popover-foreground: oklch(0.983 0.003 259.937);
--card: oklch(0.124 0.016 251.769);
--card-foreground: oklch(0.983 0.003 259.937);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.89 0.038 259.929);
--primary-foreground: oklch(0.366 0.107 259.572);
--secondary: oklch(0.287 0.008 259.944);
--secondary-foreground: oklch(0.817 0.008 259.943);
--accent: oklch(0.378 0.026 259.88);
--accent-foreground: oklch(0.895 0.01 259.944);
--destructive: oklch(0.623 0.243 30.061);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.89 0.038 259.929);
--chart-1: oklch(0.89 0.038 259.929);
--chart-2: oklch(0.287 0.008 259.944);
--chart-3: oklch(0.378 0.026 259.88);
--chart-4: oklch(0.317 0.009 259.943);
--chart-5: oklch(0.889 0.039 259.926);
}