Trigger for shadcn/ui

Trigger is a shadcn/ui theme built around a cyan primary color (#88bcc8) with muted light cyan accents (#c8ced0). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the cyan primary (#88bcc8) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#010304black
Foreground
#000000black
#f8fbfcghostwhite
Card
#f8fbfcghostwhite
#010304black
Card foreground
#000000black
#f8fbfcghostwhite
Popover
#f8fbfcghostwhite
#010304black
Popover foreground
#000000black
#f8fbfcghostwhite
Primary
#88bcc8skyblue
#88bcc8skyblue
Primary foreground
#0a1315black
#0a1315black
Secondary
#c8ced0lightgrey
#141d1fblack
Secondary foreground
#2f3537darkslategray
#a3bcc2silver
Muted
#d8eaeelavender
#112327black
Muted foreground
#494e50darkslategray
#afb4b6darkgray
Accent
#c8ced0lightgrey
#141d1fblack
Accent foreground
#2f3537darkslategray
#a3bcc2silver
Destructive
#cb2715firebrick
#ec5746tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88bcc8skyblue
#88bcc8skyblue

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button8.99:1AAA
Secondary button7.85:1AAA
Muted text6.78:1AA
Accent7.85:1AAA
Destructive5.45:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button8.99:1AAA
Secondary button8.62:1AAA
Muted text7.76:1AAA
Accent8.62:1AAA
Destructive6.00:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 214.326);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.924 0.02 214.393);
  --muted-foreground: oklch(0.421 0.007 214.367);
  --popover: oklch(0.986 0.004 214.326);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.004 214.326);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.762 0.057 214.912);
  --primary-foreground: oklch(0.177 0.014 215.012);
  --secondary: oklch(0.848 0.008 214.341);
  --secondary-foreground: oklch(0.325 0.009 214.433);
  --accent: oklch(0.848 0.008 214.341);
  --accent-foreground: oklch(0.325 0.009 214.433);
  --destructive: oklch(0.546 0.201 30.516);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.762 0.057 214.912);
  --chart-1: oklch(0.762 0.057 214.912);
  --chart-2: oklch(0.848 0.008 214.341);
  --chart-3: oklch(0.848 0.008 214.341);
  --chart-4: oklch(0.871 0.006 214.336);
  --chart-5: oklch(0.765 0.061 214.997);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 210.275);
  --foreground: oklch(0.986 0.003 214.325);
  --muted: oklch(0.242 0.025 215.549);
  --muted-foreground: oklch(0.767 0.006 214.337);
  --popover: oklch(0.096 0.01 210.275);
  --popover-foreground: oklch(0.986 0.003 214.325);
  --card: oklch(0.096 0.01 210.275);
  --card-foreground: oklch(0.986 0.003 214.325);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.762 0.057 214.912);
  --primary-foreground: oklch(0.177 0.014 215.012);
  --secondary: oklch(0.222 0.013 214.67);
  --secondary-foreground: oklch(0.778 0.028 214.481);
  --accent: oklch(0.222 0.013 214.67);
  --accent-foreground: oklch(0.778 0.028 214.481);
  --destructive: oklch(0.652 0.187 29.392);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.762 0.057 214.912);
  --chart-1: oklch(0.762 0.057 214.912);
  --chart-2: oklch(0.222 0.013 214.67);
  --chart-3: oklch(0.222 0.013 214.67);
  --chart-4: oklch(0.256 0.016 214.724);
  --chart-5: oklch(0.765 0.061 214.997);
}