Tense for shadcn/ui

Tense is a shadcn/ui theme built around a muted light violet primary color (#c9b6d3) with muted light teal accents (#b6d3c9). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted light violet primary (#c9b6d3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#000000black
#fdfcfdwhite
Card
#faf8fcghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#faf8fcghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#c9b6d3thistle
#c9b6d3thistle
Primary foreground
#2f2136darkslategray
#2f2136darkslategray
Secondary
#d3c9b6silver
#d3c9b6silver
Secondary foreground
#362f21darkslategray
#362f21darkslategray
Muted
#e9e1d3gainsboro
#2c2516black
Muted foreground
#525251darkslategray
#aeaeaddarkgray
Accent
#b6d3c9silver
#b6d3c9silver
Accent foreground
#21362fdarkslategray
#21362fdarkslategray
Destructive
#d62505firebrick
#f92b06orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9b6d3thistle
#c9b6d3thistle

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card19.92:1AAA
Primary button7.97:1AAA
Secondary button8.08:1AAA
Muted text6.04:1AA
Accent8.04:1AAA
Destructive5.10:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button7.97:1AAA
Secondary button8.08:1AAA
Muted text6.84:1AA
Accent8.04:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 314.814);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.913 0.021 84.592);
  --muted-foreground: oklch(0.438 0.002 84.562);
  --popover: oklch(0.982 0.005 314.801);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 314.801);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.801 0.046 314.549);
  --primary-foreground: oklch(0.273 0.044 314.019);
  --secondary: oklch(0.839 0.029 84.591);
  --secondary-foreground: oklch(0.308 0.026 84.336);
  --accent: oklch(0.842 0.034 173.354);
  --accent-foreground: oklch(0.313 0.031 171.277);
  --destructive: oklch(0.563 0.213 31.557);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.046 314.549);
  --chart-1: oklch(0.801 0.046 314.549);
  --chart-2: oklch(0.839 0.029 84.591);
  --chart-3: oklch(0.842 0.034 173.354);
  --chart-4: oklch(0.861 0.025 84.593);
  --chart-5: oklch(0.799 0.051 314.515);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 314.821);
  --muted: oklch(0.267 0.027 84.132);
  --muted-foreground: oklch(0.75 0.002 84.557);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.801 0.046 314.549);
  --primary-foreground: oklch(0.273 0.044 314.019);
  --secondary: oklch(0.839 0.029 84.591);
  --secondary-foreground: oklch(0.308 0.026 84.336);
  --accent: oklch(0.842 0.034 173.354);
  --accent-foreground: oklch(0.313 0.031 171.277);
  --destructive: oklch(0.63 0.24 31.434);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.046 314.549);
  --chart-1: oklch(0.801 0.046 314.549);
  --chart-2: oklch(0.839 0.029 84.591);
  --chart-3: oklch(0.842 0.034 173.354);
  --chart-4: oklch(0.861 0.025 84.593);
  --chart-5: oklch(0.799 0.051 314.515);
}