Tenet for shadcn/ui

Tenet is a shadcn/ui theme built around a yellow primary color (#777737) with purple accents (#773777). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#777737) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#161603black
#fdfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#161603black
#fdfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#161603black
#fdfdfcwhite
Primary
#777737olivedrab
#777737olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#377777seagreen
#377777seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6f4f4whitesmoke
#0b1919black
Muted foreground
#506868dimgray
#97afafdarkgray
Accent
#773777rebeccapurple
#773777rebeccapurple
Accent foreground
#f5eaf5whitesmoke
#f5eaf5whitesmoke
Destructive
#a63603saddlebrown
#fc6a27tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#777737olivedrab
#777737olivedrab

Contrast

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

Light mode
Text on background18.25:1AAA
Text on card18.25:1AAA
Primary button4.70:1AA
Secondary button5.18:1AA
Muted text5.28:1AA
Accent6.94:1AA
Destructive6.66:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button4.70:1AA
Secondary button5.18:1AA
Muted text7.78:1AAA
Accent6.94:1AA
Destructive7.23:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.195 0.035 109.24);
  --muted: oklch(0.957 0.014 196.917);
  --muted-foreground: oklch(0.497 0.028 196.276);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.195 0.035 109.24);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.195 0.035 109.24);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.554 0.086 108.918);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.527 0.066 195.348);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.445 0.124 327.413);
  --accent-foreground: oklch(0.949 0.019 325.728);
  --destructive: oklch(0.492 0.155 39.215);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.554 0.086 108.918);
  --chart-1: oklch(0.554 0.086 108.918);
  --chart-2: oklch(0.527 0.066 195.348);
  --chart-3: oklch(0.445 0.124 327.413);
  --chart-4: oklch(0.56 0.07 195.337);
  --chart-5: oklch(0.562 0.092 109.022);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.001 106.425);
  --muted: oklch(0.199 0.019 195.735);
  --muted-foreground: oklch(0.736 0.026 196.593);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.001 106.425);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.001 106.425);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.554 0.086 108.918);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.527 0.066 195.348);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.445 0.124 327.413);
  --accent-foreground: oklch(0.949 0.019 325.728);
  --destructive: oklch(0.698 0.193 41.907);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.554 0.086 108.918);
  --chart-1: oklch(0.554 0.086 108.918);
  --chart-2: oklch(0.527 0.066 195.348);
  --chart-3: oklch(0.445 0.124 327.413);
  --chart-4: oklch(0.56 0.07 195.337);
  --chart-5: oklch(0.562 0.092 109.022);
}