Partial is a shadcn/ui theme built around a vivid blue primary color (#0f4f8a) with vivid indigo accents (#0f118a). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#0f4f8a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #010304black | #ffffffwhite |
| Card | #fbfdfewhite | #000000black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #fbfdfewhite | #000000black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #0f4f8ateal | #0f4f8ateal |
| Primary foreground | #d1e6falavender | #d1e6falavender |
| Secondary | #0f8a88darkcyan | #0f8a88darkcyan |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbe6e6gainsboro | #192424black |
| Muted foreground | #3d4847darkslategray | #b7c2c2silver |
| Accent | #0f118adarkblue | #0f118adarkblue |
| Accent foreground | #d1d2falavender | #d1d2falavender |
| Destructive | #8f330fsaddlebrown | #d44c16chocolate |
| Destructive foreground | #fbe0d5antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f4f8ateal | #0f4f8ateal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 4.16:1 | AA Large |
| Muted text | 7.42:1 | AAA |
| Accent | 9.75:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 4.16:1 | AA Large |
| Muted text | 8.71:1 | AAA |
| Accent | 9.75:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Partial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 246);
--foreground: oklch(0.089 0.01 238.01);
--muted: oklch(0.916 0.012 195.75);
--muted-foreground: oklch(0.391 0.014 195.37);
--popover: oklch(0.992 0.003 246);
--popover-foreground: oklch(0.089 0.01 238.01);
--card: oklch(0.992 0.003 246);
--card-foreground: oklch(0.089 0.01 238.01);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.422 0.116 251.98);
--primary-foreground: oklch(0.916 0.036 246.408);
--secondary: oklch(0.575 0.096 192.924);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.305 0.186 267.559);
--accent-foreground: oklch(0.875 0.056 284.416);
--destructive: oklch(0.45 0.132 39.28);
--destructive-foreground: oklch(0.926 0.033 42.85);
--ring: oklch(0.422 0.116 251.98);
--chart-1: oklch(0.422 0.116 251.98);
--chart-2: oklch(0.575 0.096 192.924);
--chart-3: oklch(0.305 0.186 267.559);
--chart-4: oklch(0.617 0.103 192.907);
--chart-5: oklch(0.423 0.12 252.35);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.25 0.015 194.93);
--muted-foreground: oklch(0.806 0.012 195.721);
--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.422 0.116 251.98);
--primary-foreground: oklch(0.916 0.036 246.408);
--secondary: oklch(0.575 0.096 192.924);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.305 0.186 267.559);
--accent-foreground: oklch(0.875 0.056 284.416);
--destructive: oklch(0.597 0.182 38.77);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.422 0.116 251.98);
--chart-1: oklch(0.422 0.116 251.98);
--chart-2: oklch(0.575 0.096 192.924);
--chart-3: oklch(0.305 0.186 267.559);
--chart-4: oklch(0.617 0.103 192.907);
--chart-5: oklch(0.423 0.12 252.35);
}