Routine is a shadcn/ui theme built around a light pink primary color (#f4dceb) with light blue accents (#dcebf4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f4dceb) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070306black |
| Foreground | #040103black | #fdfcfdwhite |
| Card | #ffffffwhite | #070306black |
| Card foreground | #040103black | #fdfcfdwhite |
| Popover | #ffffffwhite | #070306black |
| Popover foreground | #040103black | #fdfcfdwhite |
| Primary | #f4dcebmistyrose | #f4dcebmistyrose |
| Primary foreground | #772758purple | #772758purple |
| Secondary | #ebf4dcbeige | #ebf4dcbeige |
| Secondary foreground | #1f2a0eblack | #1f2a0eblack |
| Muted | #eef3e8linen | #13170cblack |
| Muted foreground | #4c5341darkolivegreen | #b7beacsilver |
| Accent | #dcebf4lavender | #dcebf4lavender |
| Accent foreground | #275877darkslategray | #275877darkslategray |
| Destructive | #ca3716firebrick | #ea6143tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4dcebmistyrose | #f4dcebmistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.77:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 13.23:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 5.15:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 13.23:1 | AAA |
| Muted text | 9.46:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 6.30:1 | AA |
Paste this into your globals.css to use Routine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.016 339.667);
--muted: oklch(0.957 0.015 123.877);
--muted-foreground: oklch(0.43 0.03 124.688);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.085 0.016 339.667);
--card: oklch(1 0 180);
--card-foreground: oklch(0.085 0.016 339.667);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.919 0.032 340.219);
--primary-foreground: oklch(0.41 0.126 346.093);
--secondary: oklch(0.953 0.032 124.146);
--secondary-foreground: oklch(0.268 0.05 126.94);
--accent: oklch(0.931 0.02 234.817);
--accent-foreground: oklch(0.442 0.074 238.837);
--destructive: oklch(0.557 0.188 33.596);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.919 0.032 340.219);
--chart-1: oklch(0.919 0.032 340.219);
--chart-2: oklch(0.953 0.032 124.146);
--chart-3: oklch(0.931 0.02 234.817);
--chart-4: oklch(0.969 0.021 123.97);
--chart-5: oklch(0.918 0.034 340.263);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.017 339.635);
--foreground: oklch(0.992 0.002 339.516);
--muted: oklch(0.198 0.022 125.394);
--muted-foreground: oklch(0.791 0.026 124.125);
--popover: oklch(0.109 0.017 339.635);
--popover-foreground: oklch(0.992 0.002 339.516);
--card: oklch(0.109 0.017 339.635);
--card-foreground: oklch(0.992 0.002 339.516);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.919 0.032 340.219);
--primary-foreground: oklch(0.41 0.126 346.093);
--secondary: oklch(0.953 0.032 124.146);
--secondary-foreground: oklch(0.268 0.05 126.94);
--accent: oklch(0.931 0.02 234.817);
--accent-foreground: oklch(0.442 0.074 238.837);
--destructive: oklch(0.662 0.176 34.142);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.919 0.032 340.219);
--chart-1: oklch(0.919 0.032 340.219);
--chart-2: oklch(0.953 0.032 124.146);
--chart-3: oklch(0.931 0.02 234.817);
--chart-4: oklch(0.969 0.021 123.97);
--chart-5: oklch(0.918 0.034 340.263);
}