Punctual is a shadcn/ui theme built around a blue primary color (#587be4) with violet accents (#7b58e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#587be4) on a blue-tinted background (#040710).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040710black |
| Foreground | #050914black | #f6f7f9whitesmoke |
| Card | #fcfcfcsnow | #050914black |
| Card foreground | #040710black | #f9f9fbghostwhite |
| Popover | #fcfcfcsnow | #050914black |
| Popover foreground | #040710black | #f9f9fbghostwhite |
| Primary | #587be4royalblue | #587be4royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #58c1e4mediumturquoise | #58c1e4mediumturquoise |
| Secondary foreground | #010709black | #010709black |
| Muted | #cbe0e7gainsboro | #182d34darkslategray |
| Muted foreground | #5e6668dimgray | #979ea1darkgray |
| Accent | #7b58e4mediumslateblue | #7b58e4mediumslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a4280afirebrick | #f24b21orangered |
| Destructive foreground | #fde8e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #587be4royalblue | #587be4royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 9.81:1 | AAA |
| Muted text | 4.28:1 | AA Large |
| Accent | 4.80:1 | AA |
| Destructive | 6.16:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 9.81:1 | AAA |
| Muted text | 5.25:1 | AA |
| Accent | 4.80:1 | AA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Punctual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.025 266.531);
--muted: oklch(0.893 0.025 219.748);
--muted-foreground: oklch(0.504 0.01 219.67);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.131 0.021 265.182);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.131 0.021 265.182);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.61 0.163 267.552);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.763 0.108 222.93);
--secondary-foreground: oklch(0.12 0.015 213.608);
--accent: oklch(0.572 0.202 290.04);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.474 0.164 33.888);
--destructive-foreground: oklch(0.946 0.025 34.299);
--ring: oklch(0.61 0.163 267.552);
--chart-1: oklch(0.61 0.163 267.552);
--chart-2: oklch(0.763 0.108 222.93);
--chart-3: oklch(0.572 0.202 290.04);
--chart-4: oklch(0.78 0.101 222.301);
--chart-5: oklch(0.607 0.17 267.349);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.022 264.868);
--foreground: oklch(0.975 0.003 271.385);
--muted: oklch(0.284 0.03 221.308);
--muted-foreground: oklch(0.694 0.009 219.611);
--popover: oklch(0.142 0.026 266.208);
--popover-foreground: oklch(0.984 0.002 271.393);
--card: oklch(0.142 0.026 266.208);
--card-foreground: oklch(0.984 0.002 271.393);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.61 0.163 267.552);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.763 0.108 222.93);
--secondary-foreground: oklch(0.12 0.015 213.608);
--accent: oklch(0.572 0.202 290.04);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.646 0.21 34.524);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.61 0.163 267.552);
--chart-1: oklch(0.61 0.163 267.552);
--chart-2: oklch(0.763 0.108 222.93);
--chart-3: oklch(0.572 0.202 290.04);
--chart-4: oklch(0.78 0.101 222.301);
--chart-5: oklch(0.607 0.17 267.349);
}