Abacus is a shadcn/ui theme built around a vivid blue primary color (#41a2e6) with vivid indigo accents (#414fe6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#41a2e6) on a blue-tinted background (#070b0d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070b0dblack |
| Foreground | #030b12black | #ffffffwhite |
| Card | #fcfcfcsnow | #090d11black |
| Card foreground | #02090dblack | #ffffffwhite |
| Popover | #ffffffwhite | #070b0dblack |
| Popover foreground | #030b12black | #ffffffwhite |
| Primary | #41a2e6cornflowerblue | #41a2e6cornflowerblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #41e6d9turquoise | #41e6d9turquoise |
| Secondary foreground | #000000black | #000000black |
| Muted | #d2e4e3gainsboro | #1b2d2bdarkslategray |
| Muted foreground | #5c6665dimgray | #99a3a2darkgray |
| Accent | #414fe6royalblue | #414fe6royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #811603maroon | #e52706orangered |
| Destructive foreground | #fdc4b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #41a2e6cornflowerblue | #41a2e6cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 13.58:1 | AAA |
| Muted text | 4.50:1 | AA |
| Accent | 6.00:1 | AA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 13.58:1 | AAA |
| Muted text | 5.59:1 | AA |
| Accent | 6.00:1 | AA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Abacus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.021 234.711);
--muted: oklch(0.906 0.019 190.786);
--muted-foreground: oklch(0.501 0.012 190.723);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.021 234.711);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.131 0.018 230.686);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.685 0.135 243.463);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.841 0.133 186.671);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.518 0.225 271.693);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.392 0.144 32.191);
--destructive-foreground: oklch(0.868 0.068 29.953);
--ring: oklch(0.685 0.135 243.463);
--chart-1: oklch(0.685 0.135 243.463);
--chart-2: oklch(0.841 0.133 186.671);
--chart-3: oklch(0.518 0.225 271.693);
--chart-4: oklch(0.849 0.128 187.082);
--chart-5: oklch(0.687 0.14 243.767);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.008 237.154);
--foreground: oklch(1 0 180);
--muted: oklch(0.28 0.024 189.304);
--muted-foreground: oklch(0.707 0.011 190.906);
--popover: oklch(0.145 0.008 237.154);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.01 239.133);
--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.685 0.135 243.463);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.841 0.133 186.671);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.518 0.225 271.693);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.592 0.225 31.499);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.135 243.463);
--chart-1: oklch(0.685 0.135 243.463);
--chart-2: oklch(0.841 0.133 186.671);
--chart-3: oklch(0.518 0.225 271.693);
--chart-4: oklch(0.849 0.128 187.082);
--chart-5: oklch(0.687 0.14 243.767);
}