Trove for shadcn/ui

Trove is a shadcn/ui theme built around a muted light violet primary color (#d8d3e4) with muted light green accents (#d3e4d8). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#d8d3e4) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040307black
Foreground
#06020dblack
#ffffffwhite
Card
#fcfbfewhite
#040307black
Card foreground
#06020dblack
#ffffffwhite
Popover
#fcfbfewhite
#040307black
Popover foreground
#06020dblack
#ffffffwhite
Primary
#d8d3e4gainsboro
#d8d3e4gainsboro
Primary foreground
#3c3252darkslategray
#3c3252darkslategray
Secondary
#e4d8d3gainsboro
#e4d8d3gainsboro
Secondary foreground
#523c32darkolivegreen
#523c32darkolivegreen
Muted
#eee9e7linen
#181311black
Muted foreground
#605a57dimgray
#a8a29fdarkgray
Accent
#d3e4d8gainsboro
#d3e4d8gainsboro
Accent foreground
#32523cdarkslategray
#32523cdarkslategray
Destructive
#bc0701firebrick
#e90901red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8d3e4gainsboro
#d8d3e4gainsboro

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button8.09:1AAA
Secondary button7.34:1AAA
Muted text5.64:1AA
Accent6.57:1AA
Destructive6.63:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button8.09:1AAA
Secondary button7.34:1AAA
Muted text7.30:1AAA
Accent6.57:1AA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 300.689);
  --foreground: oklch(0.106 0.035 300.838);
  --muted: oklch(0.938 0.006 46.785);
  --muted-foreground: oklch(0.473 0.009 46.641);
  --popover: oklch(0.989 0.005 300.689);
  --popover-foreground: oklch(0.106 0.035 300.838);
  --card: oklch(0.989 0.005 300.689);
  --card-foreground: oklch(0.106 0.035 300.838);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.875 0.024 300.316);
  --primary-foreground: oklch(0.344 0.056 297.974);
  --secondary: oklch(0.891 0.015 46.672);
  --secondary-foreground: oklch(0.379 0.035 46.003);
  --accent: oklch(0.902 0.024 156.024);
  --accent-foreground: oklch(0.408 0.053 153.658);
  --destructive: oklch(0.501 0.203 29.566);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.024 300.316);
  --chart-1: oklch(0.875 0.024 300.316);
  --chart-2: oklch(0.891 0.015 46.672);
  --chart-3: oklch(0.902 0.024 156.024);
  --chart-4: oklch(0.914 0.012 46.715);
  --chart-5: oklch(0.873 0.027 300.257);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.015 301.025);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.192 0.009 46.389);
  --muted-foreground: oklch(0.715 0.008 46.725);
  --popover: oklch(0.104 0.015 301.025);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.015 301.025);
  --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.875 0.024 300.316);
  --primary-foreground: oklch(0.344 0.056 297.974);
  --secondary: oklch(0.891 0.015 46.672);
  --secondary-foreground: oklch(0.379 0.035 46.003);
  --accent: oklch(0.902 0.024 156.024);
  --accent-foreground: oklch(0.408 0.053 153.658);
  --destructive: oklch(0.589 0.239 29.486);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.024 300.316);
  --chart-1: oklch(0.875 0.024 300.316);
  --chart-2: oklch(0.891 0.015 46.672);
  --chart-3: oklch(0.902 0.024 156.024);
  --chart-4: oklch(0.914 0.012 46.715);
  --chart-5: oklch(0.873 0.027 300.257);
}