Actual is a shadcn/ui theme built around a muted deep purple primary color (#1b111c) with muted deep pink accents (#1c1119). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted deep purple primary (#1b111c) on a neutral background (#070308).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #070308black |
| Foreground | #110614black | #fbf8fcghostwhite |
| Card | #fbf8fcghostwhite | #0a040bblack |
| Card foreground | #0e0510black | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #070308black |
| Popover foreground | #110614black | #fbf8fcghostwhite |
| Primary | #1b111cblack | #1b111cblack |
| Primary foreground | #bd9dc3darkgray | #bd9dc3darkgray |
| Secondary | #15111cblack | #15111cblack |
| Secondary foreground | #aa9dc3darkgray | #aa9dc3darkgray |
| Muted | #eceaf1lavender | #110e15black |
| Muted foreground | #4d4a54darkslategray | #aeabb5darkgray |
| Accent | #1c1119black | #1c1119black |
| Accent foreground | #c39db6darkgray | #c39db6darkgray |
| Destructive | #d1240afirebrick | #f54429orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b111cblack | #1b111cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 5.26:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Actual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 320.536);
--foreground: oklch(0.148 0.035 321.068);
--muted: oklch(0.94 0.009 301.333);
--muted-foreground: oklch(0.417 0.016 300.872);
--popover: oklch(0.991 0.003 320.536);
--popover-foreground: oklch(0.148 0.035 321.068);
--card: oklch(0.983 0.006 320.54);
--card-foreground: oklch(0.136 0.031 321.415);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.197 0.026 320.71);
--primary-foreground: oklch(0.737 0.064 320.659);
--secondary: oklch(0.19 0.023 299.532);
--secondary-foreground: oklch(0.72 0.056 300.23);
--accent: oklch(0.198 0.023 339.442);
--accent-foreground: oklch(0.738 0.056 338.734);
--destructive: oklch(0.555 0.209 31.263);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.197 0.026 320.71);
--chart-1: oklch(0.197 0.026 320.71);
--chart-2: oklch(0.19 0.023 299.532);
--chart-3: oklch(0.198 0.023 339.442);
--chart-4: oklch(0.219 0.029 299.297);
--chart-5: oklch(0.196 0.029 320.725);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.021 322.171);
--foreground: oklch(0.983 0.005 320.54);
--muted: oklch(0.172 0.014 300.141);
--muted-foreground: oklch(0.747 0.014 301.194);
--popover: oklch(0.108 0.021 322.171);
--popover-foreground: oklch(0.983 0.005 320.54);
--card: oklch(0.123 0.025 321.976);
--card-foreground: oklch(0.991 0.003 320.536);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.197 0.026 320.71);
--primary-foreground: oklch(0.737 0.064 320.659);
--secondary: oklch(0.19 0.023 299.532);
--secondary-foreground: oklch(0.72 0.056 300.23);
--accent: oklch(0.198 0.023 339.442);
--accent-foreground: oklch(0.738 0.056 338.734);
--destructive: oklch(0.644 0.217 31.66);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.197 0.026 320.71);
--chart-1: oklch(0.197 0.026 320.71);
--chart-2: oklch(0.19 0.023 299.532);
--chart-3: oklch(0.198 0.023 339.442);
--chart-4: oklch(0.219 0.029 299.297);
--chart-5: oklch(0.196 0.029 320.725);
}