Continuity is a shadcn/ui theme built around a green primary color (#25743d) with muted light green accents (#d3d9d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#25743d) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #050f08black | #ffffffwhite |
| Card | #fcfcfcsnow | #030704black |
| Card foreground | #040b06black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030704black |
| Popover foreground | #040b06black | #ffffffwhite |
| Primary | #25743dforestgreen | #25743dforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d3d9d5lightgrey | #1f2822black |
| Secondary foreground | #38423bdarkslategray | #b4c5b9silver |
| Muted | #e1e5e2gainsboro | #1a1e1bblack |
| Muted foreground | #587460dimgray | #8ba793darkseagreen |
| Accent | #d3d9d5lightgrey | #1f2822black |
| Accent foreground | #38423bdarkslategray | #b4c5b9silver |
| Destructive | #ae430asaddlebrown | #f26418chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25743dforestgreen | #25743dforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 4.04:1 | AA Large |
| Accent | 7.31:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 8.36:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Continuity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.156 0.023 154.435);
--muted: oklch(0.918 0.006 155.736);
--muted-foreground: oklch(0.531 0.046 154.108);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.14 0.019 155.342);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.14 0.019 155.342);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.116 149.795);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.88 0.009 155.665);
--secondary-foreground: oklch(0.368 0.017 154.939);
--accent: oklch(0.88 0.009 155.665);
--accent-foreground: oklch(0.368 0.017 154.939);
--destructive: oklch(0.522 0.151 42.449);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.116 149.795);
--chart-1: oklch(0.498 0.116 149.795);
--chart-2: oklch(0.88 0.009 155.665);
--chart-3: oklch(0.88 0.009 155.665);
--chart-4: oklch(0.903 0.008 155.708);
--chart-5: oklch(0.503 0.121 149.482);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.011 155.511);
--foreground: oklch(1 0 180);
--muted: oklch(0.23 0.009 155.108);
--muted-foreground: oklch(0.702 0.043 154.647);
--popover: oklch(0.121 0.014 155.511);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.014 155.511);
--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.498 0.116 149.795);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.267 0.018 154.534);
--secondary-foreground: oklch(0.808 0.025 155.262);
--accent: oklch(0.267 0.018 154.534);
--accent-foreground: oklch(0.808 0.025 155.262);
--destructive: oklch(0.673 0.191 43.041);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.498 0.116 149.795);
--chart-1: oklch(0.498 0.116 149.795);
--chart-2: oklch(0.267 0.018 154.534);
--chart-3: oklch(0.267 0.018 154.534);
--chart-4: oklch(0.3 0.021 154.464);
--chart-5: oklch(0.503 0.121 149.482);
}