Offset is a shadcn/ui theme built around a neutral gray primary color (#363239) with muted light violet accents (#c9bfd4). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#363239) on a neutral background (#050308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050308black |
| Foreground | #0d0316black | #faf8fcghostwhite |
| Card | #ffffffwhite | #050308black |
| Card foreground | #0d0316black | #faf8fcghostwhite |
| Popover | #ffffffwhite | #050308black |
| Popover foreground | #0d0316black | #faf8fcghostwhite |
| Primary | #363239darkslategray | #363239darkslategray |
| Primary foreground | #cfccd1lightgrey | #cfccd1lightgrey |
| Secondary | #e0dce5gainsboro | #1f1b23black |
| Secondary foreground | #473d51darkslategray | #b8aec1silver |
| Muted | #ebe3f2lavender | #140d1cblack |
| Muted foreground | #574d60dimgray | #a89fb2darkgray |
| Accent | #c9bfd4thistle | #30253cdarkslategray |
| Accent foreground | #30273adarkslategray | #c9bdd6thistle |
| Destructive | #bf4012firebrick | #ed6a3btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #363239darkslategray | #363239darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.57:1 | AAA |
| Muted text | 6.38:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.29:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.73:1 | AA |
Paste this into your globals.css to use Offset in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.134 0.047 306.625);
--muted: oklch(0.927 0.021 308.214);
--muted-foreground: oklch(0.437 0.033 307.623);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.134 0.047 306.625);
--card: oklch(1 0 180);
--card-foreground: oklch(0.134 0.047 306.625);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.324 0.012 308.05);
--primary-foreground: oklch(0.848 0.009 308.348);
--secondary: oklch(0.901 0.012 308.307);
--secondary-foreground: oklch(0.38 0.036 307.412);
--accent: oklch(0.819 0.032 308.031);
--accent-foreground: oklch(0.291 0.037 307.038);
--destructive: oklch(0.548 0.171 37.642);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.324 0.012 308.05);
--chart-1: oklch(0.324 0.012 308.05);
--chart-2: oklch(0.901 0.012 308.307);
--chart-3: oklch(0.819 0.032 308.031);
--chart-4: oklch(0.926 0.009 308.349);
--chart-5: oklch(0.321 0.018 307.837);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.02 309.836);
--foreground: oklch(0.982 0.005 308.398);
--muted: oklch(0.177 0.031 306.488);
--muted-foreground: oklch(0.716 0.029 308.008);
--popover: oklch(0.104 0.02 309.836);
--popover-foreground: oklch(0.982 0.005 308.398);
--card: oklch(0.104 0.02 309.836);
--card-foreground: oklch(0.982 0.005 308.398);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.324 0.012 308.05);
--primary-foreground: oklch(0.848 0.009 308.348);
--secondary: oklch(0.229 0.016 307.674);
--secondary-foreground: oklch(0.765 0.028 308.055);
--accent: oklch(0.289 0.042 306.799);
--accent-foreground: oklch(0.817 0.037 307.964);
--destructive: oklch(0.677 0.173 39.643);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.324 0.012 308.05);
--chart-1: oklch(0.324 0.012 308.05);
--chart-2: oklch(0.229 0.016 307.674);
--chart-3: oklch(0.289 0.042 306.799);
--chart-4: oklch(0.259 0.02 307.619);
--chart-5: oklch(0.321 0.018 307.837);
}