Trend for shadcn/ui

Trend is a shadcn/ui theme built around a light green primary color (#eef6e4) with light violet accents (#ece4f6). The light mode uses a neutral background (#fafdf6). Dark mode keeps the light green primary (#eef6e4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafdf6mintcream
#000000black
Foreground
#080d03black
#fafbf8snow
Card
#f8fdf2ivory
#030303black
Card foreground
#050802black
#fdfdfcwhite
Popover
#fafdf6mintcream
#000000black
Popover foreground
#080d03black
#fafbf8snow
Primary
#eef6e4beige
#eef6e4beige
Primary foreground
#233210black
#233210black
Secondary
#ece4f6lavender
#ece4f6lavender
Secondary foreground
#502880darkslateblue
#502880darkslateblue
Muted
#f2eef7whitesmoke
#0c0811black
Muted foreground
#4e4559darkslategray
#afa6badarkgray
Accent
#ece4f6lavender
#ece4f6lavender
Accent foreground
#502880darkslateblue
#502880darkslateblue
Destructive
#db150ared
#e5160bred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eef6e4beige
#eef6e4beige

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.44:1AAA
Primary button12.37:1AAA
Secondary button8.68:1AAA
Muted text7.88:1AAA
Accent8.68:1AAA
Destructive5.08:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.31:1AAA
Primary button12.37:1AAA
Secondary button8.68:1AAA
Muted text8.48:1AAA
Accent8.68:1AAA
Destructive4.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.01 126.554);
  --foreground: oklch(0.148 0.026 125.749);
  --muted: oklch(0.954 0.013 306.25);
  --muted-foreground: oklch(0.407 0.036 305.301);
  --popover: oklch(0.991 0.01 126.554);
  --popover-foreground: oklch(0.148 0.026 125.749);
  --card: oklch(0.986 0.015 126.618);
  --card-foreground: oklch(0.129 0.022 125.37);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.963 0.026 126.778);
  --primary-foreground: oklch(0.296 0.059 129.678);
  --secondary: oklch(0.93 0.026 306.067);
  --secondary-foreground: oklch(0.379 0.141 300.431);
  --accent: oklch(0.93 0.026 306.067);
  --accent-foreground: oklch(0.379 0.141 300.431);
  --destructive: oklch(0.566 0.224 29.485);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.026 126.778);
  --chart-1: oklch(0.963 0.026 126.778);
  --chart-2: oklch(0.93 0.026 306.067);
  --chart-3: oklch(0.93 0.026 306.067);
  --chart-4: oklch(0.96 0.015 306.23);
  --chart-5: oklch(0.964 0.028 126.798);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 126.48);
  --muted: oklch(0.146 0.021 304.847);
  --muted-foreground: oklch(0.738 0.031 305.894);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.004 126.48);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 126.454);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.963 0.026 126.778);
  --primary-foreground: oklch(0.296 0.059 129.678);
  --secondary: oklch(0.93 0.026 306.067);
  --secondary-foreground: oklch(0.379 0.141 300.431);
  --accent: oklch(0.93 0.026 306.067);
  --accent-foreground: oklch(0.379 0.141 300.431);
  --destructive: oklch(0.584 0.232 29.489);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.026 126.778);
  --chart-1: oklch(0.963 0.026 126.778);
  --chart-2: oklch(0.93 0.026 306.067);
  --chart-3: oklch(0.93 0.026 306.067);
  --chart-4: oklch(0.96 0.015 306.23);
  --chart-5: oklch(0.964 0.028 126.798);
}