Far-off is a shadcn/ui theme built around a near-black primary color (#1d1e20) with near-black accents (#201f1d). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1d1e20) on a blue-tinted background (#04060c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04060cblack |
| Foreground | #040915black | #ffffffwhite |
| Card | #fcfcfcsnow | #05080fblack |
| Card foreground | #030711black | #ffffffwhite |
| Popover | #ffffffwhite | #04060cblack |
| Popover foreground | #040915black | #ffffffwhite |
| Primary | #1d1e20black | #1d1e20black |
| Primary foreground | #b5b6basilver | #b5b6basilver |
| Secondary | #201f1dblack | #201f1dblack |
| Secondary foreground | #bab9b5silver | #bab9b5silver |
| Muted | #f7f4eewhitesmoke | #110f08black |
| Muted foreground | #5e5a50dimgray | #afaba1darkgray |
| Accent | #201f1dblack | #201f1dblack |
| Accent foreground | #bab9b5silver | #bab9b5silver |
| Destructive | #b64211firebrick | #ed7440tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d1e20black | #1d1e20black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 8.22:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 8.22:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 8.37:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Far-off in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.029 262.506);
--muted: oklch(0.968 0.009 88.848);
--muted-foreground: oklch(0.467 0.016 88.972);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.029 262.506);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.13 0.025 260.88);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.235 0.004 268.682);
--primary-foreground: oklch(0.777 0.006 268.736);
--secondary: oklch(0.24 0.003 88.879);
--secondary-foreground: oklch(0.785 0.006 88.84);
--accent: oklch(0.24 0.003 88.879);
--accent-foreground: oklch(0.785 0.006 88.84);
--destructive: oklch(0.535 0.16 39.78);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.235 0.004 268.682);
--chart-1: oklch(0.235 0.004 268.682);
--chart-2: oklch(0.24 0.003 88.879);
--chart-3: oklch(0.24 0.003 88.879);
--chart-4: oklch(0.272 0.004 88.884);
--chart-5: oklch(0.234 0.006 268.587);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.015 262.122);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.013 89.212);
--muted-foreground: oklch(0.743 0.015 88.908);
--popover: oklch(0.122 0.015 262.122);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.134 0.018 263.502);
--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.235 0.004 268.682);
--primary-foreground: oklch(0.777 0.006 268.736);
--secondary: oklch(0.24 0.003 88.879);
--secondary-foreground: oklch(0.785 0.006 88.84);
--accent: oklch(0.24 0.003 88.879);
--accent-foreground: oklch(0.785 0.006 88.84);
--destructive: oklch(0.692 0.164 42.416);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.235 0.004 268.682);
--chart-1: oklch(0.235 0.004 268.682);
--chart-2: oklch(0.24 0.003 88.879);
--chart-3: oklch(0.24 0.003 88.879);
--chart-4: oklch(0.272 0.004 88.884);
--chart-5: oklch(0.234 0.006 268.587);
}