Tenet for shadcn/ui

Tenet is a shadcn/ui theme built around a vivid pink primary color (#b80a5e) with vivid red accents (#b80d0a). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the vivid pink primary (#b80a5e) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdf7fasnow
#040103black
Foreground
#040102black
#f9f5f7whitesmoke
Card
#fdf7fasnow
#040103black
Card foreground
#040102black
#f9f5f7whitesmoke
Popover
#fdf7fasnow
#040103black
Popover foreground
#040102black
#f9f5f7whitesmoke
Primary
#b80a5emediumvioletred
#b80a5emediumvioletred
Primary foreground
#fef5fasnow
#fef5fasnow
Secondary
#b80ab5darkviolet
#b80ab5darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddaddgainsboro
#252225darkslategray
Muted foreground
#5a4e5adimgray
#b1a5b1darkgray
Accent
#b80d0afirebrick
#b80d0afirebrick
Accent foreground
#fef5f5lavenderblush
#fef5f5lavenderblush
Destructive
#96360dsaddlebrown
#d84e13chocolate
Destructive foreground
#fce4d9antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b80a5emediumvioletred
#b80a5emediumvioletred

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button6.05:1AA
Secondary button5.59:1AA
Muted text5.65:1AA
Accent6.31:1AA
Destructive6.07:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button6.05:1AA
Secondary button5.59:1AA
Muted text6.65:1AA
Accent6.31:1AA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 346.201);
  --foreground: oklch(0.083 0.02 345.73);
  --muted: oklch(0.891 0.006 326.109);
  --muted-foreground: oklch(0.441 0.024 326.483);
  --popover: oklch(0.982 0.007 346.201);
  --popover-foreground: oklch(0.083 0.02 345.73);
  --card: oklch(0.982 0.007 346.201);
  --card-foreground: oklch(0.083 0.02 345.73);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.509 0.202 1.408);
  --primary-foreground: oklch(0.979 0.011 346.324);
  --secondary: oklch(0.55 0.248 329.184);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.496 0.198 28.946);
  --accent-foreground: oklch(0.978 0.01 18.514);
  --destructive: oklch(0.466 0.138 39.95);
  --destructive-foreground: oklch(0.935 0.03 44.684);
  --ring: oklch(0.509 0.202 1.408);
  --chart-1: oklch(0.509 0.202 1.408);
  --chart-2: oklch(0.55 0.248 329.184);
  --chart-3: oklch(0.496 0.198 28.946);
  --chart-4: oklch(0.582 0.262 329.191);
  --chart-5: oklch(0.514 0.204 1.991);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.015 345.795);
  --foreground: oklch(0.975 0.005 346.162);
  --muted: oklch(0.257 0.008 326.312);
  --muted-foreground: oklch(0.735 0.021 326.283);
  --popover: oklch(0.085 0.015 345.795);
  --popover-foreground: oklch(0.975 0.005 346.162);
  --card: oklch(0.085 0.015 345.795);
  --card-foreground: oklch(0.975 0.005 346.162);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.509 0.202 1.408);
  --primary-foreground: oklch(0.979 0.011 346.324);
  --secondary: oklch(0.55 0.248 329.184);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.496 0.198 28.946);
  --accent-foreground: oklch(0.978 0.01 18.514);
  --destructive: oklch(0.605 0.184 39.404);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.509 0.202 1.408);
  --chart-1: oklch(0.509 0.202 1.408);
  --chart-2: oklch(0.55 0.248 329.184);
  --chart-3: oklch(0.496 0.198 28.946);
  --chart-4: oklch(0.582 0.262 329.191);
  --chart-5: oklch(0.514 0.204 1.991);
}