Partial is a shadcn/ui theme built around a vivid indigo primary color (#1f30e5) with vivid yellow accents (#e5d41f). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#1f30e5) on an indigo-tinted background (#040510).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #040510black |
| Foreground | #03040cblack | #f5f5fawhitesmoke |
| Card | #f4f5fawhitesmoke | #050714black |
| Card foreground | #020208black | #f8f8fcghostwhite |
| Popover | #f8f8fcghostwhite | #040510black |
| Popover foreground | #03040cblack | #f5f5fawhitesmoke |
| Primary | #1f30e5mediumblue | #1f30e5mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e5d41fgold | #e5d41fgold |
| Secondary foreground | #322f06black | #322f06black |
| Muted | #e5e5e0gainsboro | #1f1e1ablack |
| Muted foreground | #4b4a3fdarkslategray | #c0bfb4silver |
| Accent | #e5d41fgold | #e5d41fgold |
| Accent foreground | #322f06black | #322f06black |
| Destructive | #86320esaddlebrown | #e25418chocolate |
| Destructive foreground | #fadaccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f30e5mediumblue | #1f30e5mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.92:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.92:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 18.64:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.92:1 | AAA |
| Muted text | 9.01:1 | AAA |
| Accent | 8.92:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Partial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 282.132);
--foreground: oklch(0.109 0.025 275.418);
--muted: oklch(0.921 0.006 102.322);
--muted-foreground: oklch(0.407 0.018 102.915);
--popover: oklch(0.981 0.005 282.132);
--popover-foreground: oklch(0.109 0.025 275.418);
--card: oklch(0.971 0.007 282.09);
--card-foreground: oklch(0.096 0.021 275.398);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.457 0.261 267.189);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.858 0.175 103.606);
--secondary-foreground: oklch(0.298 0.057 104.078);
--accent: oklch(0.858 0.175 103.606);
--accent-foreground: oklch(0.298 0.057 104.078);
--destructive: oklch(0.432 0.124 40.505);
--destructive-foreground: oklch(0.911 0.04 44.59);
--ring: oklch(0.457 0.261 267.189);
--chart-1: oklch(0.457 0.261 267.189);
--chart-2: oklch(0.858 0.175 103.606);
--chart-3: oklch(0.858 0.175 103.606);
--chart-4: oklch(0.865 0.172 103.827);
--chart-5: oklch(0.456 0.268 266.653);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.026 276.36);
--foreground: oklch(0.971 0.007 282.097);
--muted: oklch(0.234 0.009 102.791);
--muted-foreground: oklch(0.803 0.016 102.527);
--popover: oklch(0.123 0.026 276.36);
--popover-foreground: oklch(0.971 0.007 282.097);
--card: oklch(0.134 0.03 276.416);
--card-foreground: oklch(0.981 0.004 282.136);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.457 0.261 267.189);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.858 0.175 103.606);
--secondary-foreground: oklch(0.298 0.057 104.078);
--accent: oklch(0.858 0.175 103.606);
--accent-foreground: oklch(0.298 0.057 104.078);
--destructive: oklch(0.63 0.188 39.766);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.457 0.261 267.189);
--chart-1: oklch(0.457 0.261 267.189);
--chart-2: oklch(0.858 0.175 103.606);
--chart-3: oklch(0.858 0.175 103.606);
--chart-4: oklch(0.865 0.172 103.827);
--chart-5: oklch(0.456 0.268 266.653);
}