Absolute is a shadcn/ui theme built around a neutral gray primary color (#5c5757) with neutral gray accents (#575b5c). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#5c5757) on a red-tinted background (#0e0706).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0e0706black |
| Foreground | #040101black | #f9f6f6whitesmoke |
| Card | #fdf7f6snow | #120807black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fefbfbsnow | #0e0706black |
| Popover foreground | #040101black | #f9f6f6whitesmoke |
| Primary | #5c5757dimgray | #5c5757dimgray |
| Primary foreground | #f3f2f2whitesmoke | #f3f2f2whitesmoke |
| Secondary | #575b5cdimgray | #575b5cdimgray |
| Secondary foreground | #f2f3f3whitesmoke | #f2f3f3whitesmoke |
| Muted | #d9e7e8gainsboro | #172526black |
| Muted foreground | #3c4748darkslategray | #b7c1c3silver |
| Accent | #575b5cdimgray | #575b5cdimgray |
| Accent foreground | #f2f3f3whitesmoke | #f2f3f3whitesmoke |
| Destructive | #a52112firebrick | #e94735tomato |
| Destructive foreground | #fdeeedseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c5757dimgray | #5c5757dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.16:1 | AA |
| Muted text | 7.53:1 | AAA |
| Accent | 6.16:1 | AA |
| Destructive | 6.57:1 | AA |
| Text on background | 18.58:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.16:1 | AA |
| Muted text | 8.62:1 | AAA |
| Accent | 6.16:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Absolute in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 25.018);
--foreground: oklch(0.086 0.011 29.544);
--muted: oklch(0.917 0.015 204.873);
--muted-foreground: oklch(0.389 0.014 204.763);
--popover: oklch(0.991 0.003 25.018);
--popover-foreground: oklch(0.086 0.011 29.544);
--card: oklch(0.981 0.007 25.047);
--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.462 0.006 25.106);
--primary-foreground: oklch(0.961 0.001 24.996);
--secondary: oklch(0.468 0.006 204.893);
--secondary-foreground: oklch(0.962 0.001 204.984);
--accent: oklch(0.468 0.006 204.893);
--accent-foreground: oklch(0.962 0.001 204.984);
--destructive: oklch(0.471 0.17 30.489);
--destructive-foreground: oklch(0.961 0.016 25.133);
--ring: oklch(0.462 0.006 25.106);
--chart-1: oklch(0.462 0.006 25.106);
--chart-2: oklch(0.468 0.006 204.893);
--chart-3: oklch(0.468 0.006 204.893);
--chart-4: oklch(0.496 0.007 204.892);
--chart-5: oklch(0.458 0.013 25.24);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.015 27.937);
--foreground: oklch(0.976 0.003 25.011);
--muted: oklch(0.251 0.019 204.69);
--muted-foreground: oklch(0.804 0.012 204.882);
--popover: oklch(0.139 0.015 27.937);
--popover-foreground: oklch(0.976 0.003 25.011);
--card: oklch(0.151 0.018 27.32);
--card-foreground: oklch(0.984 0.002 25.004);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.462 0.006 25.106);
--primary-foreground: oklch(0.961 0.001 24.996);
--secondary: oklch(0.468 0.006 204.893);
--secondary-foreground: oklch(0.962 0.001 204.984);
--accent: oklch(0.468 0.006 204.893);
--accent-foreground: oklch(0.962 0.001 204.984);
--destructive: oklch(0.627 0.201 29.996);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.462 0.006 25.106);
--chart-1: oklch(0.462 0.006 25.106);
--chart-2: oklch(0.468 0.006 204.893);
--chart-3: oklch(0.468 0.006 204.893);
--chart-4: oklch(0.496 0.007 204.892);
--chart-5: oklch(0.458 0.013 25.24);
}