Absolute is a shadcn/ui theme built around a vivid deep red primary color (#320608) with vivid deep orange accents (#321a06). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#320608) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0505black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0e0607black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0e0607black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #320608black | #320608black |
| Primary foreground | #ef7b80lightcoral | #ef7b80lightcoral |
| Secondary | #32061eblack | #32061eblack |
| Secondary foreground | #ef7bbbhotpink | #ef7bbbhotpink |
| Muted | #e7d5dfgainsboro | #2a1822black |
| Muted foreground | #594650darkslategray | #b9a6b1darkgray |
| Accent | #321a06black | #321a06black |
| Accent foreground | #efaf7blightsalmon | #efaf7blightsalmon |
| Destructive | #7a0b0bmaroon | #ef4343tomato |
| Destructive foreground | #f9bdbdlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #320608black | #320608black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 6.95:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 8.62:1 | AAA |
| Destructive | 6.94:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 6.95:1 | AA |
| Muted text | 7.29:1 | AAA |
| Accent | 8.62:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Absolute in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.015 16.212);
--muted: oklch(0.89 0.024 343.258);
--muted-foreground: oklch(0.416 0.031 344.33);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.211 0.071 22.763);
--primary-foreground: oklch(0.716 0.144 18.253);
--secondary: oklch(0.219 0.076 351.368);
--secondary-foreground: oklch(0.733 0.16 347.623);
--accent: oklch(0.246 0.05 57.234);
--accent-foreground: oklch(0.803 0.102 59.929);
--destructive: oklch(0.37 0.143 27.997);
--destructive-foreground: oklch(0.854 0.069 18.608);
--ring: oklch(0.211 0.071 22.763);
--chart-1: oklch(0.211 0.071 22.763);
--chart-2: oklch(0.219 0.076 351.368);
--chart-3: oklch(0.246 0.05 57.234);
--chart-4: oklch(0.253 0.091 352.246);
--chart-5: oklch(0.212 0.073 23.128);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 14.92);
--foreground: oklch(0.992 0.001 13.62);
--muted: oklch(0.238 0.033 345.793);
--muted-foreground: oklch(0.746 0.026 343.459);
--popover: oklch(0.137 0.015 15.218);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.015 15.218);
--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.211 0.071 22.763);
--primary-foreground: oklch(0.716 0.144 18.253);
--secondary: oklch(0.219 0.076 351.368);
--secondary-foreground: oklch(0.733 0.16 347.623);
--accent: oklch(0.246 0.05 57.234);
--accent-foreground: oklch(0.803 0.102 59.929);
--destructive: oklch(0.636 0.208 25.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.211 0.071 22.763);
--chart-1: oklch(0.211 0.071 22.763);
--chart-2: oklch(0.219 0.076 351.368);
--chart-3: oklch(0.246 0.05 57.234);
--chart-4: oklch(0.253 0.091 352.246);
--chart-5: oklch(0.212 0.073 23.128);
}