Trivial for shadcn/ui

Trivial is a shadcn/ui theme built around a vivid green primary color (#48ea8c) with vivid orange accents (#ea8c48). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#48ea8c) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#020905black
#f8fcfamintcream
Card
#ffffffwhite
#010402black
Card foreground
#020905black
#f8fcfamintcream
Popover
#ffffffwhite
#010402black
Popover foreground
#020905black
#f8fcfamintcream
Primary
#48ea8cmediumaquamarine
#48ea8cmediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#8c48eablueviolet
#8c48eablueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edeaf0lavender
#110f15black
Muted foreground
#444148darkslategray
#bab7besilver
Accent
#ea8c48coral
#ea8c48coral
Accent foreground
#000000black
#000000black
Destructive
#8d260csaddlebrown
#dd3b13orangered
Destructive foreground
#fbd9d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#48ea8cmediumaquamarine
#48ea8cmediumaquamarine

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button13.37:1AAA
Secondary button4.96:1AA
Muted text8.42:1AAA
Accent8.30:1AAA
Destructive6.61:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button13.37:1AAA
Secondary button4.96:1AA
Muted text9.61:1AAA
Accent8.30:1AAA
Destructive4.46: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.125 0.02 160.932);
  --muted: oklch(0.941 0.008 304.927);
  --muted-foreground: oklch(0.382 0.012 304.607);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.02 160.932);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.02 160.932);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.831 0.187 153.27);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.571 0.229 297.732);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.726 0.141 53.884);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.429 0.142 34.365);
  --destructive-foreground: oklch(0.911 0.04 34.321);
  --ring: oklch(0.831 0.187 153.27);
  --chart-1: oklch(0.831 0.187 153.27);
  --chart-2: oklch(0.571 0.229 297.732);
  --chart-3: oklch(0.726 0.141 53.884);
  --chart-4: oklch(0.599 0.215 298.905);
  --chart-5: oklch(0.838 0.192 153.003);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.013 160.948);
  --foreground: oklch(0.987 0.005 160.902);
  --muted: oklch(0.174 0.012 304.072);
  --muted-foreground: oklch(0.783 0.01 304.866);
  --popover: oklch(0.098 0.013 160.948);
  --popover-foreground: oklch(0.987 0.005 160.902);
  --card: oklch(0.098 0.013 160.948);
  --card-foreground: oklch(0.987 0.005 160.902);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.831 0.187 153.27);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.571 0.229 297.732);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.726 0.141 53.884);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.593 0.203 34.015);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.187 153.27);
  --chart-1: oklch(0.831 0.187 153.27);
  --chart-2: oklch(0.571 0.229 297.732);
  --chart-3: oklch(0.726 0.141 53.884);
  --chart-4: oklch(0.599 0.215 298.905);
  --chart-5: oklch(0.838 0.192 153.003);
}