Triangular for shadcn/ui

Triangular is a shadcn/ui theme built around a teal primary color (#8fd6ca) with blue accents (#8fbed6). The light mode uses a neutral background (#f6fdfc). Dark mode keeps the teal primary (#8fd6ca) on a teal-tinted background (#030c0b).

Color palette

TokenLightDark
Background
#f6fdfcmintcream
#030c0bblack
Foreground
#030c0bblack
#fcfdfdwhite
Card
#f6fdfcmintcream
#030c0bblack
Card foreground
#030c0bblack
#fcfdfdwhite
Popover
#f6fdfcmintcream
#030c0bblack
Popover foreground
#030c0bblack
#fcfdfdwhite
Primary
#8fd6caskyblue
#8fd6caskyblue
Primary foreground
#0e2521black
#0e2521black
Secondary
#8fd6a7lightgreen
#8fd6a7lightgreen
Secondary foreground
#0e2516black
#0e2516black
Muted
#cde4d5lightgrey
#1b3222darkslategray
Muted foreground
#5c7063dimgray
#8fa396darkseagreen
Accent
#8fbed6skyblue
#8fbed6skyblue
Accent foreground
#0e1d25black
#0e1d25black
Destructive
#d8150efirebrick
#f12e27crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8fd6caskyblue
#8fd6caskyblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button9.71:1AAA
Secondary button9.55:1AAA
Muted text3.96:1AA Large
Accent8.63:1AAA
Destructive5.22:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button9.71:1AAA
Secondary button9.55:1AAA
Muted text5.15:1AA
Accent8.63:1AAA
Destructive4.06:1AA Large

CSS variables

Paste this into your globals.css to use Triangular in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 185.252);
  --foreground: oklch(0.144 0.017 184.418);
  --muted: oklch(0.898 0.032 156.522);
  --muted-foreground: oklch(0.525 0.032 155.948);
  --popover: oklch(0.99 0.007 185.252);
  --popover-foreground: oklch(0.144 0.017 184.418);
  --card: oklch(0.99 0.007 185.252);
  --card-foreground: oklch(0.144 0.017 184.418);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.827 0.074 182.844);
  --primary-foreground: oklch(0.246 0.031 181.367);
  --secondary: oklch(0.817 0.099 154.465);
  --secondary-foreground: oklch(0.242 0.043 152.754);
  --accent: oklch(0.777 0.061 230.137);
  --accent-foreground: oklch(0.223 0.027 231.408);
  --destructive: oklch(0.559 0.221 29.17);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.827 0.074 182.844);
  --chart-1: oklch(0.827 0.074 182.844);
  --chart-2: oklch(0.817 0.099 154.465);
  --chart-3: oklch(0.777 0.061 230.137);
  --chart-4: oklch(0.835 0.089 154.84);
  --chart-5: oklch(0.831 0.078 182.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.016 184.486);
  --foreground: oklch(0.993 0.002 185.407);
  --muted: oklch(0.292 0.04 153.977);
  --muted-foreground: oklch(0.696 0.03 156.352);
  --popover: oklch(0.143 0.016 184.486);
  --popover-foreground: oklch(0.993 0.002 185.407);
  --card: oklch(0.143 0.016 184.486);
  --card-foreground: oklch(0.993 0.002 185.407);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.827 0.074 182.844);
  --primary-foreground: oklch(0.246 0.031 181.367);
  --secondary: oklch(0.817 0.099 154.465);
  --secondary-foreground: oklch(0.242 0.043 152.754);
  --accent: oklch(0.777 0.061 230.137);
  --accent-foreground: oklch(0.223 0.027 231.408);
  --destructive: oklch(0.62 0.229 28.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.827 0.074 182.844);
  --chart-1: oklch(0.827 0.074 182.844);
  --chart-2: oklch(0.817 0.099 154.465);
  --chart-3: oklch(0.777 0.061 230.137);
  --chart-4: oklch(0.835 0.089 154.84);
  --chart-5: oklch(0.831 0.078 182.689);
}