Triangular for shadcn/ui

Triangular is a shadcn/ui theme built around a teal primary color (#39a776) with orange accents (#a77639). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#39a776) on a teal-tinted background (#05100b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05100bblack
Foreground
#020905black
#ffffffwhite
Card
#fcfcfcsnow
#06140dblack
Card foreground
#010403black
#ffffffwhite
Popover
#fcfcfcsnow
#06140dblack
Popover foreground
#010403black
#ffffffwhite
Primary
#39a776mediumseagreen
#39a776mediumseagreen
Primary foreground
#050f0bblack
#050f0bblack
Secondary
#7639a7rebeccapurple
#7639a7rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f1f4whitesmoke
#0d0b0eblack
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#a77639sienna
#a77639sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b81d05firebrick
#f9381aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#39a776mediumseagreen
#39a776mediumseagreen

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.14:1AAA
Primary button6.46:1AA
Secondary button7.20:1AAA
Muted text5.93:1AA
Accent3.97:1AA Large
Destructive6.53:1AA
Dark mode
Text on background19.39:1AAA
Text on card18.91:1AAA
Primary button6.46:1AA
Secondary button7.20:1AAA
Muted text7.76:1AAA
Accent3.97:1AA Large
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.018 168.076);
  --muted: oklch(0.959 0.004 310.395);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.099 0.015 168.076);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.015 168.076);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.654 0.125 160.141);
  --primary-foreground: oklch(0.157 0.019 165.833);
  --secondary: oklch(0.478 0.172 306.205);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.603 0.099 69.387);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.503 0.191 31.246);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.125 160.141);
  --chart-1: oklch(0.654 0.125 160.141);
  --chart-2: oklch(0.478 0.172 306.205);
  --chart-3: oklch(0.603 0.099 69.387);
  --chart-4: oklch(0.501 0.181 306.162);
  --chart-5: oklch(0.662 0.13 159.694);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.02 165.687);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.154 0.007 310.017);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.174 0.024 164.117);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.024 164.117);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.654 0.125 160.141);
  --primary-foreground: oklch(0.157 0.019 165.833);
  --secondary: oklch(0.478 0.172 306.205);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.603 0.099 69.387);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.231 31.552);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.125 160.141);
  --chart-1: oklch(0.654 0.125 160.141);
  --chart-2: oklch(0.478 0.172 306.205);
  --chart-3: oklch(0.603 0.099 69.387);
  --chart-4: oklch(0.501 0.181 306.162);
  --chart-5: oklch(0.662 0.13 159.694);
}