Trivial for shadcn/ui

Trivial is a shadcn/ui theme built around a vivid indigo primary color (#564bec) with neutral gray accents (#e6e6e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#564bec) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030307black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#020204black
Popover foreground
#000000black
#ffffffwhite
Primary
#564becroyalblue
#564becroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6e6e6gainsboro
#2d2d2fdarkslategray
Secondary foreground
#4d4d4ddarkslategray
#c5c5c9silver
Muted
#eee7e7linen
#111118black
Muted foreground
#755757dimgray
#8c8aa8lightslategray
Accent
#e6e6e6gainsboro
#2d2d2fdarkslategray
Accent foreground
#4d4d4ddarkslategray
#c5c5c9silver
Destructive
#721d08maroon
#db380forangered
Destructive foreground
#fac1b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#564becroyalblue
#564becroyalblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.81:1AA
Secondary button6.74:1AA
Muted text5.28:1AA
Accent6.74:1AA
Destructive7.01:1AAA
Dark mode
Text on background20.78:1AAA
Text on card20.56:1AAA
Primary button5.81:1AA
Secondary button8.02:1AAA
Muted text5.65:1AA
Accent8.02:1AAA
Destructive4.56:1AA

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 0 0);
  --muted: oklch(0.933 0.008 17.299);
  --muted-foreground: oklch(0.488 0.041 18.652);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.529 0.232 277.879);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.923 0 153.435);
  --secondary-foreground: oklch(0.418 0 173.29);
  --accent: oklch(0.923 0 153.435);
  --accent-foreground: oklch(0.418 0 173.29);
  --destructive: oklch(0.37 0.123 34.418);
  --destructive-foreground: oklch(0.858 0.069 34.433);
  --ring: oklch(0.529 0.232 277.879);
  --chart-1: oklch(0.529 0.232 277.879);
  --chart-2: oklch(0.923 0 153.435);
  --chart-3: oklch(0.923 0 153.435);
  --chart-4: oklch(0.947 0 180);
  --chart-5: oklch(0.526 0.239 277.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.011 287.495);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.181 0.015 287.852);
  --muted-foreground: oklch(0.645 0.045 288.11);
  --popover: oklch(0.081 0.011 287.495);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.103 0.014 287.495);
  --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.529 0.232 277.879);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.296 0.005 289.165);
  --secondary-foreground: oklch(0.825 0.005 289.373);
  --accent: oklch(0.296 0.005 289.165);
  --accent-foreground: oklch(0.825 0.005 289.373);
  --destructive: oklch(0.588 0.205 33.784);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.529 0.232 277.879);
  --chart-1: oklch(0.529 0.232 277.879);
  --chart-2: oklch(0.296 0.005 289.165);
  --chart-3: oklch(0.296 0.005 289.165);
  --chart-4: oklch(0.326 0.006 289.154);
  --chart-5: oklch(0.526 0.239 277.236);
}