Faraway is a shadcn/ui theme built around a near-black primary color (#07000a) with near-black accents (#000a07). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-black primary (#07000a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #0d0212black | #fbf8fcghostwhite |
| Card | #fbf7fdghostwhite | #030303black |
| Card foreground | #0a020eblack | #fdfcfdwhite |
| Popover | #fbf7fdghostwhite | #030303black |
| Popover foreground | #0a020eblack | #fdfcfdwhite |
| Primary | #07000ablack | #07000ablack |
| Primary foreground | #e2a6fcplum | #e2a6fcplum |
| Secondary | #0a0700black | #0a0700black |
| Secondary foreground | #cf9307darkgoldenrod | #cf9307darkgoldenrod |
| Muted | #e7e2d5gainsboro | #2a2518black |
| Muted foreground | #756c57dimgray | #a89f8arosybrown |
| Accent | #000a07black | #000a07black |
| Accent foreground | #07cf93mediumspringgreen | #07cf93mediumspringgreen |
| Destructive | #930d06darkred | #f0150ared |
| Destructive foreground | #fdd0cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #07000ablack | #07000ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 10.93:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 4.00:1 | AA Large |
| Accent | 9.89:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 10.93:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 9.89:1 | AAA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Faraway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 316.007);
--foreground: oklch(0.128 0.045 316.769);
--muted: oklch(0.912 0.018 87.513);
--muted-foreground: oklch(0.534 0.034 87.556);
--popover: oklch(0.981 0.008 315.992);
--popover-foreground: oklch(0.115 0.039 318.106);
--card: oklch(0.981 0.008 315.992);
--card-foreground: oklch(0.115 0.039 318.106);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.096 0.041 319.527);
--primary-foreground: oklch(0.812 0.133 315.407);
--secondary: oklch(0.129 0.025 96.007);
--secondary-foreground: oklch(0.703 0.145 79.28);
--accent: oklch(0.129 0.023 176.927);
--accent-foreground: oklch(0.756 0.161 163.564);
--destructive: oklch(0.422 0.165 29.504);
--destructive-foreground: oklch(0.896 0.051 21.675);
--ring: oklch(0.096 0.041 319.527);
--chart-1: oklch(0.096 0.041 319.527);
--chart-2: oklch(0.129 0.025 96.007);
--chart-3: oklch(0.129 0.023 176.927);
--chart-4: oklch(0.184 0.035 89.659);
--chart-5: oklch(0.095 0.043 319.671);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.006 316.001);
--muted: oklch(0.266 0.024 87.426);
--muted-foreground: oklch(0.705 0.032 87.569);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.991 0.003 316.011);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.003 316.011);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.096 0.041 319.527);
--primary-foreground: oklch(0.812 0.133 315.407);
--secondary: oklch(0.129 0.025 96.007);
--secondary-foreground: oklch(0.703 0.145 79.28);
--accent: oklch(0.129 0.023 176.927);
--accent-foreground: oklch(0.756 0.161 163.564);
--destructive: oklch(0.605 0.241 29.5);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.096 0.041 319.527);
--chart-1: oklch(0.096 0.041 319.527);
--chart-2: oklch(0.129 0.025 96.007);
--chart-3: oklch(0.129 0.023 176.927);
--chart-4: oklch(0.184 0.035 89.659);
--chart-5: oklch(0.095 0.043 319.671);
}