Absolute is a shadcn/ui theme built around a near-black primary color (#050505) with near-black accents (#050505). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#050505) on a cyan-tinted background (#050e10).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050e10black |
| Foreground | #020708black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #061214black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #ffffffwhite | #050e10black |
| Popover foreground | #020708black | #fcfdfdwhite |
| Primary | #050505black | #050505black |
| Primary foreground | #97a3a5darkgray | #97a3a5darkgray |
| Secondary | #050505black | #050505black |
| Secondary foreground | #a59997darkgray | #a59997darkgray |
| Muted | #f5eceblinen | #140c0ablack |
| Muted foreground | #755a57dimgray | #a88d8arosybrown |
| Accent | #050505black | #050505black |
| Accent foreground | #a59997darkgray | #a59997darkgray |
| Destructive | #a01d08firebrick | #e92a0corangered |
| Destructive foreground | #fde1ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050505black | #050505black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 5.37:1 | AA |
| Accent | 7.38:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.38:1 | AAA |
| Destructive | 4.39: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.123 0.013 203.48);
--muted: oklch(0.949 0.01 26.508);
--muted-foreground: oklch(0.495 0.036 27.102);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.013 203.48);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.097 0.01 203.48);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.117 0.002 205.992);
--primary-foreground: oklch(0.707 0.014 206.336);
--secondary: oklch(0.115 0.002 26.924);
--secondary-foreground: oklch(0.692 0.014 26.589);
--accent: oklch(0.115 0.002 26.924);
--accent-foreground: oklch(0.692 0.014 26.589);
--destructive: oklch(0.457 0.169 31.435);
--destructive-foreground: oklch(0.932 0.031 28.139);
--ring: oklch(0.117 0.002 205.992);
--chart-1: oklch(0.117 0.002 205.992);
--chart-2: oklch(0.115 0.002 26.924);
--chart-3: oklch(0.115 0.002 26.924);
--chart-4: oklch(0.157 0.003 26.563);
--chart-5: oklch(0.117 0.002 205.809);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.016 205.367);
--foreground: oklch(0.993 0.001 206.433);
--muted: oklch(0.164 0.015 27.352);
--muted-foreground: oklch(0.668 0.033 26.851);
--popover: oklch(0.156 0.016 205.367);
--popover-foreground: oklch(0.993 0.001 206.433);
--card: oklch(0.171 0.018 206.023);
--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.117 0.002 205.992);
--primary-foreground: oklch(0.707 0.014 206.336);
--secondary: oklch(0.115 0.002 26.924);
--secondary-foreground: oklch(0.692 0.014 26.589);
--accent: oklch(0.115 0.002 26.924);
--accent-foreground: oklch(0.692 0.014 26.589);
--destructive: oklch(0.601 0.226 31.26);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.117 0.002 205.992);
--chart-1: oklch(0.117 0.002 205.992);
--chart-2: oklch(0.115 0.002 26.924);
--chart-3: oklch(0.115 0.002 26.924);
--chart-4: oklch(0.157 0.003 26.563);
--chart-5: oklch(0.117 0.002 205.809);
}