Trivial for shadcn/ui

Trivial is a shadcn/ui theme built around a muted deep pink primary color (#47393e) with muted deep blue accents (#393e47). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted deep pink primary (#47393e) on a pink-tinted background (#0e0609).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0e0609black
Foreground
#0c0306black
#fbf8f9snow
Card
#fcf8f9snow
#12080bblack
Card foreground
#080204black
#fdfcfcsnow
Popover
#fefbfcsnow
#0e0609black
Popover foreground
#0c0306black
#fbf8f9snow
Primary
#47393edarkslategray
#47393edarkslategray
Primary foreground
#ddd5d7gainsboro
#ddd5d7gainsboro
Secondary
#3e4739darkslategray
#3e4739darkslategray
Secondary foreground
#d7ddd5gainsboro
#d7ddd5gainsboro
Muted
#dbe9d3gainsboro
#1e2c16black
Muted foreground
#4e5c47darkolivegreen
#aab8a3darkgray
Accent
#393e47darkslategray
#393e47darkslategray
Accent foreground
#d5d7ddgainsboro
#d5d7ddgainsboro
Destructive
#a5180dfirebrick
#ef4539tomato
Destructive foreground
#fde9e7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#47393edarkslategray
#47393edarkslategray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.49:1AAA
Primary button7.61:1AAA
Secondary button7.04:1AAA
Muted text5.62:1AA
Accent7.50:1AAA
Destructive6.57:1AA
Dark mode
Text on background18.95:1AAA
Text on card19.28:1AAA
Primary button7.61:1AAA
Secondary button7.04:1AAA
Muted text7.06:1AAA
Accent7.50:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 353.649);
  --foreground: oklch(0.12 0.024 353.483);
  --muted: oklch(0.917 0.033 134.424);
  --muted-foreground: oklch(0.457 0.038 134.713);
  --popover: oklch(0.991 0.003 353.649);
  --popover-foreground: oklch(0.12 0.024 353.483);
  --card: oklch(0.982 0.005 353.726);
  --card-foreground: oklch(0.105 0.02 353.175);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.36 0.021 355.212);
  --primary-foreground: oklch(0.879 0.01 353.902);
  --secondary: oklch(0.384 0.026 134.619);
  --secondary-foreground: oklch(0.891 0.013 134.3);
  --accent: oklch(0.361 0.017 262.903);
  --accent-foreground: oklch(0.88 0.008 263.036);
  --destructive: oklch(0.464 0.176 29.656);
  --destructive-foreground: oklch(0.949 0.022 22.489);
  --ring: oklch(0.36 0.021 355.212);
  --chart-1: oklch(0.36 0.021 355.212);
  --chart-2: oklch(0.384 0.026 134.619);
  --chart-3: oklch(0.361 0.017 262.903);
  --chart-4: oklch(0.414 0.029 134.627);
  --chart-5: oklch(0.358 0.027 355.668);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 354.651);
  --foreground: oklch(0.983 0.004 353.681);
  --muted: oklch(0.274 0.043 135.29);
  --muted-foreground: oklch(0.766 0.033 134.47);
  --popover: oklch(0.138 0.017 354.651);
  --popover-foreground: oklch(0.983 0.004 353.681);
  --card: oklch(0.15 0.02 356.486);
  --card-foreground: oklch(0.991 0.002 353.627);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.36 0.021 355.212);
  --primary-foreground: oklch(0.879 0.01 353.902);
  --secondary: oklch(0.384 0.026 134.619);
  --secondary-foreground: oklch(0.891 0.013 134.3);
  --accent: oklch(0.361 0.017 262.903);
  --accent-foreground: oklch(0.88 0.008 263.036);
  --destructive: oklch(0.636 0.208 28.543);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.36 0.021 355.212);
  --chart-1: oklch(0.36 0.021 355.212);
  --chart-2: oklch(0.384 0.026 134.619);
  --chart-3: oklch(0.361 0.017 262.903);
  --chart-4: oklch(0.414 0.029 134.627);
  --chart-5: oklch(0.358 0.027 355.668);
}