Outlying is a shadcn/ui theme built around a near-white primary color (#fcfdfd) with neutral gray accents (#d9dddd). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcfdfd) on a teal-tinted background (#030c0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c0bblack |
| Foreground | #041613black | #f9fbfbghostwhite |
| Card | #ffffffwhite | #030c0bblack |
| Card foreground | #041613black | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #030c0bblack |
| Popover foreground | #041613black | #f9fbfbghostwhite |
| Primary | #fcfdfdwhite | #fcfdfdwhite |
| Primary foreground | #2c3534darkslategray | #2c3534darkslategray |
| Secondary | #d9ddddgainsboro | #303030darkslategray |
| Secondary foreground | #3e4645darkslategray | #c9c9c9silver |
| Muted | #d8e9e6gainsboro | #271616black |
| Muted foreground | #506864dimgray | #af9797rosybrown |
| Accent | #d9ddddgainsboro | #303030darkslategray |
| Accent foreground | #3e4645darkslategray | #c9c9c9silver |
| Destructive | #b22401firebrick | #fe4010orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcfdfdwhite | #fcfdfdwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 12.34:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 4.75:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 12.34:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Outlying in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.182 0.026 181.692);
--muted: oklch(0.92 0.018 184.935);
--muted-foreground: oklch(0.496 0.029 183.832);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.182 0.026 181.692);
--card: oklch(1 0 180);
--card-foreground: oklch(0.182 0.026 181.692);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.993 0.001 185.434);
--primary-foreground: oklch(0.321 0.013 184.32);
--secondary: oklch(0.895 0.005 185.311);
--secondary-foreground: oklch(0.387 0.011 184.719);
--accent: oklch(0.895 0.005 185.311);
--accent-foreground: oklch(0.387 0.011 184.719);
--destructive: oklch(0.496 0.181 33.254);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.993 0.001 185.434);
--chart-1: oklch(0.993 0.001 185.434);
--chart-2: oklch(0.895 0.005 185.311);
--chart-3: oklch(0.895 0.005 185.311);
--chart-4: oklch(0.918 0.004 185.344);
--chart-5: oklch(0.993 0.001 185.43);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.016 184.52);
--foreground: oklch(0.986 0.003 185.382);
--muted: oklch(0.224 0.027 19.413);
--muted-foreground: oklch(0.699 0.028 17.854);
--popover: oklch(0.143 0.016 184.52);
--popover-foreground: oklch(0.986 0.003 185.382);
--card: oklch(0.143 0.016 184.52);
--card-foreground: oklch(0.986 0.003 185.382);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.993 0.001 185.434);
--primary-foreground: oklch(0.321 0.013 184.32);
--secondary: oklch(0.311 0 180);
--secondary-foreground: oklch(0.837 0 171.254);
--accent: oklch(0.311 0 180);
--accent-foreground: oklch(0.837 0 171.254);
--destructive: oklch(0.654 0.231 33.605);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.993 0.001 185.434);
--chart-1: oklch(0.993 0.001 185.434);
--chart-2: oklch(0.311 0 180);
--chart-3: oklch(0.311 0 180);
--chart-4: oklch(0.341 0 158.199);
--chart-5: oklch(0.993 0.001 185.43);
}