Triangular is a shadcn/ui theme built around a near-white primary color (#f9fafa) with near-white accents (#faf9fa). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the near-white primary (#f9fafa) on a neutral background (#020807).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #020807black |
| Foreground | #05100eblack | #f9fbfbghostwhite |
| Card | #f3fcfbmintcream | #040c0bblack |
| Card foreground | #040c0bblack | #fcfdfdwhite |
| Popover | #f7fdfcmintcream | #020807black |
| Popover foreground | #05100eblack | #f9fbfbghostwhite |
| Primary | #f9fafaghostwhite | #f9fafaghostwhite |
| Primary foreground | #293231darkslategray | #293231darkslategray |
| Secondary | #faf9fasnow | #faf9fasnow |
| Secondary foreground | #6b575adimgray | #6b575adimgray |
| Muted | #e3dedfgainsboro | #211c1dblack |
| Muted foreground | #513d40darkslategray | #c2aeb0silver |
| Accent | #faf9fasnow | #faf9fasnow |
| Accent foreground | #6b575adimgray | #6b575adimgray |
| Destructive | #5d2109maroon | #d24914chocolate |
| Destructive foreground | #f6baa2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9fafaghostwhite | #f9fafaghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.78:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 6.39:1 | AA |
| Muted text | 7.55:1 | AAA |
| Accent | 6.39:1 | AA |
| Destructive | 7.39:1 | AAA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 6.39:1 | AA |
| Muted text | 7.96:1 | AAA |
| Accent | 6.39:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Triangular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 187.578);
--foreground: oklch(0.159 0.017 185.654);
--muted: oklch(0.905 0.005 7.877);
--muted-foreground: oklch(0.384 0.028 9.542);
--popover: oklch(0.989 0.007 187.578);
--popover-foreground: oklch(0.159 0.017 185.654);
--card: oklch(0.984 0.01 187.491);
--card-foreground: oklch(0.143 0.015 186.799);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.986 0.001 187.722);
--primary-foreground: oklch(0.31 0.013 186.713);
--secondary: oklch(0.984 0.001 7.776);
--secondary-foreground: oklch(0.478 0.026 9.06);
--accent: oklch(0.984 0.001 7.776);
--accent-foreground: oklch(0.478 0.026 9.06);
--destructive: oklch(0.335 0.095 39.794);
--destructive-foreground: oklch(0.837 0.078 42.546);
--ring: oklch(0.986 0.001 187.722);
--chart-1: oklch(0.986 0.001 187.722);
--chart-2: oklch(0.984 0.001 7.776);
--chart-3: oklch(0.984 0.001 7.776);
--chart-4: oklch(1.008 0.001 187.736);
--chart-5: oklch(0.986 0.001 187.713);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 187.237);
--foreground: oklch(0.987 0.003 187.675);
--muted: oklch(0.234 0.007 8.45);
--muted-foreground: oklch(0.767 0.023 8.489);
--popover: oklch(0.125 0.013 187.237);
--popover-foreground: oklch(0.987 0.003 187.675);
--card: oklch(0.143 0.015 186.733);
--card-foreground: oklch(0.993 0.001 187.712);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.986 0.001 187.722);
--primary-foreground: oklch(0.31 0.013 186.713);
--secondary: oklch(0.984 0.001 7.776);
--secondary-foreground: oklch(0.478 0.026 9.06);
--accent: oklch(0.984 0.001 7.776);
--accent-foreground: oklch(0.478 0.026 9.06);
--destructive: oklch(0.59 0.182 38.528);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.986 0.001 187.722);
--chart-1: oklch(0.986 0.001 187.722);
--chart-2: oklch(0.984 0.001 7.776);
--chart-3: oklch(0.984 0.001 7.776);
--chart-4: oklch(1.008 0.001 187.736);
--chart-5: oklch(0.986 0.001 187.713);
}