Productivity is a shadcn/ui theme built around a deep blue primary color (#1a3d51) with deep blue accents (#1a2151). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#1a3d51) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #020608black | #f6f8f8whitesmoke |
| Card | #ffffffwhite | #030607black |
| Card foreground | #020608black | #f6f8f8whitesmoke |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #020608black | #f6f8f8whitesmoke |
| Primary | #1a3d51darkslategray | #1a3d51darkslategray |
| Primary foreground | #b5d5e8lightblue | #b5d5e8lightblue |
| Secondary | #1a514adarkslategray | #1a514adarkslategray |
| Secondary foreground | #b5e8e1powderblue | #b5e8e1powderblue |
| Muted | #e0ebealavender | #141f1eblack |
| Muted foreground | #44504edarkslategray | #afbbb9silver |
| Accent | #1a2151midnightblue | #1a2151midnightblue |
| Accent foreground | #b5bce8lightsteelblue | #b5bce8lightsteelblue |
| Destructive | #831d0bmaroon | #d32f12firebrick |
| Destructive foreground | #facec7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a3d51darkslategray | #1a3d51darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 6.88:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 8.53:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 5.00:1 | AA |
Paste this into your globals.css to use Productivity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.013 225.7);
--muted: oklch(0.932 0.012 187.427);
--muted-foreground: oklch(0.42 0.015 186.835);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.013 225.7);
--card: oklch(1 0 180);
--card-foreground: oklch(0.116 0.013 225.7);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.344 0.054 236.691);
--primary-foreground: oklch(0.856 0.043 233.372);
--secondary: oklch(0.398 0.059 182.908);
--secondary-foreground: oklch(0.893 0.053 186.236);
--accent: oklch(0.273 0.088 272.597);
--accent-foreground: oklch(0.805 0.062 278.057);
--destructive: oklch(0.403 0.14 32.253);
--destructive-foreground: oklch(0.888 0.051 29.779);
--ring: oklch(0.344 0.054 236.691);
--chart-1: oklch(0.344 0.054 236.691);
--chart-2: oklch(0.398 0.059 182.908);
--chart-3: oklch(0.273 0.088 272.597);
--chart-4: oklch(0.436 0.065 182.795);
--chart-5: oklch(0.345 0.057 237.046);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.007 228.316);
--foreground: oklch(0.977 0.002 232.604);
--muted: oklch(0.229 0.016 185.895);
--muted-foreground: oklch(0.782 0.013 187.328);
--popover: oklch(0.116 0.007 228.316);
--popover-foreground: oklch(0.977 0.002 232.604);
--card: oklch(0.116 0.007 228.316);
--card-foreground: oklch(0.977 0.002 232.604);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.344 0.054 236.691);
--primary-foreground: oklch(0.856 0.043 233.372);
--secondary: oklch(0.398 0.059 182.908);
--secondary-foreground: oklch(0.893 0.053 186.236);
--accent: oklch(0.273 0.088 272.597);
--accent-foreground: oklch(0.805 0.062 278.057);
--destructive: oklch(0.566 0.203 32.071);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.344 0.054 236.691);
--chart-1: oklch(0.344 0.054 236.691);
--chart-2: oklch(0.398 0.059 182.908);
--chart-3: oklch(0.273 0.088 272.597);
--chart-4: oklch(0.436 0.065 182.795);
--chart-5: oklch(0.345 0.057 237.046);
}