Trace for shadcn/ui

Trace is a shadcn/ui theme built around a green primary color (#b6c992) with green accents (#9ac992). The light mode uses a neutral background (#fbfdf6). Dark mode keeps the green primary (#b6c992) on a green-tinted background (#0c0f05).

Color palette

TokenLightDark
Background
#fbfdf6snow
#0c0f05black
Foreground
#060802black
#ffffffwhite
Card
#fbfdf6snow
#0c0f05black
Card foreground
#060802black
#ffffffwhite
Popover
#fbfdf6snow
#0c0f05black
Popover foreground
#060802black
#ffffffwhite
Primary
#b6c992tan
#b6c992tan
Primary foreground
#161b0dblack
#161b0dblack
Secondary
#c9c192tan
#c9c192tan
Secondary foreground
#1b190dblack
#1b190dblack
Muted
#edece8linen
#171612black
Muted foreground
#646254dimgray
#aba99bdarkgray
Accent
#9ac992darkseagreen
#9ac992darkseagreen
Accent foreground
#101b0dblack
#101b0dblack
Destructive
#c23114firebrick
#d93717firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6c992tan
#b6c992tan

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button9.82:1AAA
Secondary button9.66:1AAA
Muted text5.20:1AA
Accent9.41:1AAA
Destructive5.60:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button9.82:1AAA
Secondary button9.66:1AAA
Muted text7.66:1AAA
Accent9.41:1AAA
Destructive4.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.01 122.365);
  --foreground: oklch(0.127 0.018 121.809);
  --muted: oklch(0.943 0.005 98.394);
  --muted-foreground: oklch(0.493 0.022 98.894);
  --popover: oklch(0.992 0.01 122.365);
  --popover-foreground: oklch(0.127 0.018 121.809);
  --card: oklch(0.992 0.01 122.365);
  --card-foreground: oklch(0.127 0.018 121.809);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.808 0.078 123.786);
  --primary-foreground: oklch(0.214 0.027 124.309);
  --secondary: oklch(0.805 0.064 99.243);
  --secondary-foreground: oklch(0.213 0.022 99.409);
  --accent: oklch(0.789 0.092 140.824);
  --accent-foreground: oklch(0.208 0.032 140.768);
  --destructive: oklch(0.537 0.185 32.861);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.078 123.786);
  --chart-1: oklch(0.808 0.078 123.786);
  --chart-2: oklch(0.805 0.064 99.243);
  --chart-3: oklch(0.789 0.092 140.824);
  --chart-4: oklch(0.824 0.058 99.162);
  --chart-5: oklch(0.813 0.084 123.916);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.022 123.353);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.007 98.812);
  --muted-foreground: oklch(0.733 0.02 98.686);
  --popover: oklch(0.162 0.022 123.353);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.022 123.353);
  --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.808 0.078 123.786);
  --primary-foreground: oklch(0.214 0.027 124.309);
  --secondary: oklch(0.805 0.064 99.243);
  --secondary-foreground: oklch(0.213 0.022 99.409);
  --accent: oklch(0.789 0.092 140.824);
  --accent-foreground: oklch(0.208 0.032 140.768);
  --destructive: oklch(0.583 0.203 32.814);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.078 123.786);
  --chart-1: oklch(0.808 0.078 123.786);
  --chart-2: oklch(0.805 0.064 99.243);
  --chart-3: oklch(0.789 0.092 140.824);
  --chart-4: oklch(0.824 0.058 99.162);
  --chart-5: oklch(0.813 0.084 123.916);
}