Triangular is a shadcn/ui theme built around a deep green primary color (#116f39) with deep pink accents (#6f1146). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#116f39) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010402black |
| Foreground | #020805black | #fcfdfcwhite |
| Card | #fbfefcwhite | #010402black |
| Card foreground | #020805black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #010402black |
| Popover foreground | #020805black | #fcfdfcwhite |
| Primary | #116f39forestgreen | #116f39forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6f1146purple | #6f1146purple |
| Secondary foreground | #f5bcddpink | #f5bcddpink |
| Muted | #e7dae1gainsboro | #25181fblack |
| Muted foreground | #686466dimgray | #9b9799darkgray |
| Accent | #6f1146purple | #6f1146purple |
| Accent foreground | #f5bcddpink | #f5bcddpink |
| Destructive | #672a09saddlebrown | #e15c14chocolate |
| Destructive foreground | #f8c6abnavajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #116f39forestgreen | #116f39forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 4.30:1 | AA Large |
| Accent | 7.12:1 | AAA |
| Destructive | 7.13:1 | AAA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Triangular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 161.734);
--foreground: oklch(0.123 0.016 161.79);
--muted: oklch(0.901 0.016 342.234);
--muted-foreground: oklch(0.508 0.006 342.1);
--popover: oklch(0.994 0.003 161.734);
--popover-foreground: oklch(0.123 0.016 161.79);
--card: oklch(0.994 0.003 161.734);
--card-foreground: oklch(0.123 0.016 161.79);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.477 0.118 152.152);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.366 0.136 351.938);
--secondary-foreground: oklch(0.857 0.077 343.834);
--accent: oklch(0.366 0.136 351.938);
--accent-foreground: oklch(0.857 0.077 343.834);
--destructive: oklch(0.367 0.098 44.415);
--destructive-foreground: oklch(0.863 0.068 49.732);
--ring: oklch(0.477 0.118 152.152);
--chart-1: oklch(0.477 0.118 152.152);
--chart-2: oklch(0.366 0.136 351.938);
--chart-3: oklch(0.366 0.136 351.938);
--chart-4: oklch(0.396 0.148 352.152);
--chart-5: oklch(0.482 0.122 151.818);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.011 161.793);
--foreground: oklch(0.993 0.002 161.754);
--muted: oklch(0.229 0.023 344.071);
--muted-foreground: oklch(0.68 0.006 342.011);
--popover: oklch(0.097 0.011 161.793);
--popover-foreground: oklch(0.993 0.002 161.754);
--card: oklch(0.097 0.011 161.793);
--card-foreground: oklch(0.993 0.002 161.754);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.477 0.118 152.152);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.366 0.136 351.938);
--secondary-foreground: oklch(0.857 0.077 343.834);
--accent: oklch(0.366 0.136 351.938);
--accent-foreground: oklch(0.857 0.077 343.834);
--destructive: oklch(0.637 0.182 42.825);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.477 0.118 152.152);
--chart-1: oklch(0.477 0.118 152.152);
--chart-2: oklch(0.366 0.136 351.938);
--chart-3: oklch(0.366 0.136 351.938);
--chart-4: oklch(0.396 0.148 352.152);
--chart-5: oklch(0.482 0.122 151.818);
}