Trivial for shadcn/ui

Trivial is a shadcn/ui theme built around a muted deep purple primary color (#423342) with muted deep teal accents (#334242). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#423342) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050ablack
Foreground
#150514black
#f8f7f8whitesmoke
Card
#ffffffwhite
#0a050ablack
Card foreground
#150514black
#f8f7f8whitesmoke
Popover
#ffffffwhite
#0a050ablack
Popover foreground
#150514black
#f8f7f8whitesmoke
Primary
#423342darkslategray
#423342darkslategray
Primary foreground
#d9ced9lightgrey
#d9ced9lightgrey
Secondary
#424233darkslategray
#424233darkslategray
Secondary foreground
#d9d9celightgrey
#d9d9celightgrey
Muted
#efefe6linen
#181910black
Muted foreground
#65665cdimgray
#a2a399darkgray
Accent
#334242darkslategray
#334242darkslategray
Accent foreground
#ced9d9lightgrey
#ced9d9lightgrey
Destructive
#c82609firebrick
#e52c0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#423342darkslategray
#423342darkslategray

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.72:1AAA
Secondary button7.16:1AAA
Muted text5.03:1AA
Accent7.31:1AAA
Destructive5.63:1AA
Dark mode
Text on background18.91:1AAA
Text on card18.91:1AAA
Primary button7.72:1AAA
Secondary button7.16:1AAA
Muted text6.94:1AA
Accent7.31:1AAA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.042 329.192);
  --muted: oklch(0.95 0.012 108.941);
  --muted-foreground: oklch(0.506 0.015 109.251);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.042 329.192);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.042 329.192);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.344 0.032 327.869);
  --primary-foreground: oklch(0.864 0.019 327.24);
  --secondary: oklch(0.375 0.025 109.909);
  --secondary-foreground: oklch(0.883 0.015 109.027);
  --accent: oklch(0.365 0.019 200.333);
  --accent-foreground: oklch(0.876 0.012 200.73);
  --destructive: oklch(0.538 0.2 31.777);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.344 0.032 327.869);
  --chart-1: oklch(0.344 0.032 327.869);
  --chart-2: oklch(0.375 0.025 109.909);
  --chart-3: oklch(0.365 0.019 200.333);
  --chart-4: oklch(0.406 0.028 109.932);
  --chart-5: oklch(0.343 0.04 328.052);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.018 327.993);
  --foreground: oklch(0.976 0.003 327.064);
  --muted: oklch(0.209 0.017 110.151);
  --muted-foreground: oklch(0.712 0.014 109.065);
  --popover: oklch(0.127 0.018 327.993);
  --popover-foreground: oklch(0.976 0.003 327.064);
  --card: oklch(0.127 0.018 327.993);
  --card-foreground: oklch(0.976 0.003 327.064);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.344 0.032 327.869);
  --primary-foreground: oklch(0.864 0.019 327.24);
  --secondary: oklch(0.375 0.025 109.909);
  --secondary-foreground: oklch(0.883 0.015 109.027);
  --accent: oklch(0.365 0.019 200.333);
  --accent-foreground: oklch(0.876 0.012 200.73);
  --destructive: oklch(0.595 0.222 31.698);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.344 0.032 327.869);
  --chart-1: oklch(0.344 0.032 327.869);
  --chart-2: oklch(0.375 0.025 109.909);
  --chart-3: oklch(0.365 0.019 200.333);
  --chart-4: oklch(0.406 0.028 109.932);
  --chart-5: oklch(0.343 0.04 328.052);
}