Trifling for shadcn/ui

Trifling is a shadcn/ui theme built around a muted cyan primary color (#a7bcc3) with muted blue accents (#a7aec3). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the muted cyan primary (#a7bcc3) on a cyan-tinted background (#060c0e).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#060c0eblack
Foreground
#000000black
#fcfdfdwhite
Card
#f7fbfdghostwhite
#060c0eblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#f7fbfdghostwhite
#060c0eblack
Popover foreground
#000000black
#fcfdfdwhite
Primary
#a7bcc3silver
#a7bcc3silver
Primary foreground
#171f21black
#171f21black
Secondary
#a7c3bcsilver
#a7c3bcsilver
Secondary foreground
#17211fblack
#17211fblack
Muted
#d9e3e1gainsboro
#1c2624black
Muted foreground
#48615adarkslategray
#9eb7b1darkgray
Accent
#a7aec3darkgray
#a7aec3darkgray
Accent foreground
#171921black
#171921black
Destructive
#a61603darkred
#f11f04red
Destructive foreground
#fee0dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a7bcc3silver
#a7bcc3silver

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.47:1AAA
Secondary button8.78:1AAA
Muted text5.11:1AA
Accent7.92:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button8.47:1AAA
Secondary button8.78:1AAA
Muted text7.26:1AAA
Accent7.92:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 219.542);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.908 0.012 179.488);
  --muted-foreground: oklch(0.469 0.032 177.758);
  --popover: oklch(0.986 0.005 219.542);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.005 219.542);
  --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.782 0.025 219.799);
  --primary-foreground: oklch(0.231 0.013 220.107);
  --secondary: oklch(0.795 0.032 178.671);
  --secondary-foreground: oklch(0.238 0.016 177.789);
  --accent: oklch(0.752 0.031 270.976);
  --accent-foreground: oklch(0.216 0.016 270.556);
  --destructive: oklch(0.463 0.179 30.948);
  --destructive-foreground: oklch(0.93 0.034 26.728);
  --ring: oklch(0.782 0.025 219.799);
  --chart-1: oklch(0.782 0.025 219.799);
  --chart-2: oklch(0.795 0.032 178.671);
  --chart-3: oklch(0.752 0.031 270.976);
  --chart-4: oklch(0.816 0.029 178.833);
  --chart-5: oklch(0.783 0.029 219.856);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.011 218.753);
  --foreground: oklch(0.993 0.001 219.512);
  --muted: oklch(0.259 0.016 178.017);
  --muted-foreground: oklch(0.76 0.029 178.732);
  --popover: oklch(0.149 0.011 218.753);
  --popover-foreground: oklch(0.993 0.001 219.512);
  --card: oklch(0.149 0.011 218.753);
  --card-foreground: oklch(0.993 0.001 219.512);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.782 0.025 219.799);
  --primary-foreground: oklch(0.231 0.013 220.107);
  --secondary: oklch(0.795 0.032 178.671);
  --secondary-foreground: oklch(0.238 0.016 177.789);
  --accent: oklch(0.752 0.031 270.976);
  --accent-foreground: oklch(0.216 0.016 270.556);
  --destructive: oklch(0.611 0.239 30.609);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.025 219.799);
  --chart-1: oklch(0.782 0.025 219.799);
  --chart-2: oklch(0.795 0.032 178.671);
  --chart-3: oklch(0.752 0.031 270.976);
  --chart-4: oklch(0.816 0.029 178.833);
  --chart-5: oklch(0.783 0.029 219.856);
}