Actual is a shadcn/ui theme built around a muted indigo primary color (#6e61a8) with muted green accents (#9ba861). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted indigo primary (#6e61a8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #05030cblack | #fcfbfdsnow |
| Card | #f8f7fdghostwhite | #030303black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #fcfbfewhite | #000000black |
| Popover foreground | #05030cblack | #fcfbfdsnow |
| Primary | #6e61a8slateblue | #6e61a8slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9ba861darkkhaki | #9ba861darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #f1f3e7linen | #16180cblack |
| Muted foreground | #575850dimgray | #aeafa7darkgray |
| Accent | #9ba861darkkhaki | #9ba861darkkhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #6b2700maroon | #ff7b2ecoral |
| Destructive foreground | #ffc29enavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6e61a8slateblue | #6e61a8slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 20.35:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 8.10:1 | AAA |
Paste this into your globals.css to use Actual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 294.759);
--foreground: oklch(0.109 0.027 293.186);
--muted: oklch(0.959 0.016 115.126);
--muted-foreground: oklch(0.458 0.013 115.367);
--popover: oklch(0.99 0.003 294.759);
--popover-foreground: oklch(0.109 0.027 293.186);
--card: oklch(0.979 0.007 294.692);
--card-foreground: oklch(0.095 0.023 293.387);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.537 0.109 290.659);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.705 0.096 117.433);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.705 0.096 117.433);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.369 0.107 44.231);
--destructive-foreground: oklch(0.86 0.085 51.3);
--ring: oklch(0.537 0.109 290.659);
--chart-1: oklch(0.537 0.109 290.659);
--chart-2: oklch(0.705 0.096 117.433);
--chart-3: oklch(0.705 0.096 117.433);
--chart-4: oklch(0.724 0.09 117.193);
--chart-5: oklch(0.53 0.12 290.092);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.99 0.003 294.775);
--muted: oklch(0.202 0.022 116.901);
--muted-foreground: oklch(0.751 0.012 115.118);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.99 0.003 294.775);
--card: oklch(0.092 0 180);
--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.537 0.109 290.659);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.705 0.096 117.433);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.705 0.096 117.433);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.725 0.182 46.465);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.537 0.109 290.659);
--chart-1: oklch(0.537 0.109 290.659);
--chart-2: oklch(0.705 0.096 117.433);
--chart-3: oklch(0.705 0.096 117.433);
--chart-4: oklch(0.724 0.09 117.193);
--chart-5: oklch(0.53 0.12 290.092);
}