Past is a shadcn/ui theme built around a neutral gray primary color (#403f3f) with neutral gray accents (#3f4040). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#403f3f) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #040101black |
| Foreground | #140505black | #ffffffwhite |
| Card | #fcf8f8snow | #040101black |
| Card foreground | #140505black | #ffffffwhite |
| Popover | #fcf8f8snow | #040101black |
| Popover foreground | #140505black | #ffffffwhite |
| Primary | #403f3fdarkslategray | #403f3fdarkslategray |
| Primary foreground | #d9d8d8gainsboro | #d9d8d8gainsboro |
| Secondary | #3f4040darkslategray | #3f4040darkslategray |
| Secondary foreground | #d8d9d9gainsboro | #d8d9d9gainsboro |
| Muted | #e0f1f1lavender | #0e1f1fblack |
| Muted foreground | #384747darkslategray | #b8c7c7silver |
| Accent | #3f4040darkslategray | #3f4040darkslategray |
| Accent foreground | #d8d9d9gainsboro | #d8d9d9gainsboro |
| Destructive | #6d0903maroon | #f8352aorangered |
| Destructive foreground | #fcaaa6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #403f3fdarkslategray | #403f3fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 8.30:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 9.70:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Past in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 17.222);
--foreground: oklch(0.144 0.029 21.284);
--muted: oklch(0.944 0.018 196.853);
--muted-foreground: oklch(0.386 0.02 196.371);
--popover: oklch(0.982 0.004 17.222);
--popover-foreground: oklch(0.144 0.029 21.284);
--card: oklch(0.982 0.004 17.222);
--card-foreground: oklch(0.144 0.029 21.284);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.369 0.002 17.236);
--primary-foreground: oklch(0.884 0.001 17.174);
--secondary: oklch(0.372 0.002 197.083);
--secondary-foreground: oklch(0.885 0.001 197.143);
--accent: oklch(0.372 0.002 197.083);
--accent-foreground: oklch(0.885 0.001 197.143);
--destructive: oklch(0.341 0.132 29.772);
--destructive-foreground: oklch(0.817 0.097 22.74);
--ring: oklch(0.369 0.002 17.236);
--chart-1: oklch(0.369 0.002 17.236);
--chart-2: oklch(0.372 0.002 197.083);
--chart-3: oklch(0.372 0.002 197.083);
--chart-4: oklch(0.401 0.002 197.081);
--chart-5: oklch(0.366 0.007 17.48);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 19.476);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.023 195.662);
--muted-foreground: oklch(0.818 0.017 196.83);
--popover: oklch(0.085 0.01 19.476);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.01 19.476);
--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.369 0.002 17.236);
--primary-foreground: oklch(0.884 0.001 17.174);
--secondary: oklch(0.372 0.002 197.083);
--secondary-foreground: oklch(0.885 0.001 197.143);
--accent: oklch(0.372 0.002 197.083);
--accent-foreground: oklch(0.885 0.001 197.143);
--destructive: oklch(0.638 0.231 28.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.369 0.002 17.236);
--chart-1: oklch(0.369 0.002 17.236);
--chart-2: oklch(0.372 0.002 197.083);
--chart-3: oklch(0.372 0.002 197.083);
--chart-4: oklch(0.401 0.002 197.081);
--chart-5: oklch(0.366 0.007 17.48);
}