Intentionality for shadcn/ui

Intentionality is a shadcn/ui theme built around a deep violet primary color (#14091b) with deep teal accents (#091b14). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#14091b) on a violet-tinted background (#09030c).

Color palette

TokenLightDark
Background
#fdfbfewhite
#09030cblack
Foreground
#060208black
#f8f5fawhitesmoke
Card
#fbf7fdghostwhite
#0c0410black
Card foreground
#030104black
#faf8fbghostwhite
Popover
#fdfbfewhite
#09030cblack
Popover foreground
#060208black
#f8f5fawhitesmoke
Primary
#14091bblack
#14091bblack
Primary foreground
#b782d4orchid
#b782d4orchid
Secondary
#1b1409black
#1b1409black
Secondary foreground
#d4b782tan
#d4b782tan
Muted
#eee6d8antiquewhite
#271f11black
Muted foreground
#645c4fdimgray
#b0a99bdarkgray
Accent
#091b14black
#091b14black
Accent foreground
#3db389mediumseagreen
#3db389mediumseagreen
Destructive
#b93209firebrick
#f44d1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#14091bblack
#14091bblack

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card19.64:1AAA
Primary button6.59:1AA
Secondary button9.44:1AAA
Muted text5.32:1AA
Accent6.81:1AA
Destructive5.96:1AA
Dark mode
Text on background18.86:1AAA
Text on card19.10:1AAA
Primary button6.59:1AA
Secondary button9.44:1AAA
Muted text6.95:1AA
Accent6.81:1AA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 314.198);
  --foreground: oklch(0.104 0.023 316.09);
  --muted: oklch(0.928 0.021 83.062);
  --muted-foreground: oklch(0.479 0.024 82.996);
  --popover: oklch(0.991 0.004 314.198);
  --popover-foreground: oklch(0.104 0.023 316.09);
  --card: oklch(0.981 0.008 314.175);
  --card-foreground: oklch(0.083 0.018 316.09);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.167 0.039 312.82);
  --primary-foreground: oklch(0.689 0.13 313.119);
  --secondary: oklch(0.197 0.023 82.242);
  --secondary-foreground: oklch(0.793 0.078 82.541);
  --accent: oklch(0.203 0.027 168.768);
  --accent-foreground: oklch(0.689 0.122 165.943);
  --destructive: oklch(0.522 0.178 35.064);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.167 0.039 312.82);
  --chart-1: oklch(0.167 0.039 312.82);
  --chart-2: oklch(0.197 0.023 82.242);
  --chart-3: oklch(0.203 0.027 168.768);
  --chart-4: oklch(0.238 0.031 81.851);
  --chart-5: oklch(0.166 0.041 312.738);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.029 315.928);
  --foreground: oklch(0.974 0.007 314.181);
  --muted: oklch(0.245 0.027 82.304);
  --muted-foreground: oklch(0.737 0.021 83.055);
  --popover: oklch(0.118 0.029 315.928);
  --popover-foreground: oklch(0.974 0.007 314.181);
  --card: oklch(0.131 0.033 314.494);
  --card-foreground: oklch(0.983 0.005 314.194);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.167 0.039 312.82);
  --primary-foreground: oklch(0.689 0.13 313.119);
  --secondary: oklch(0.197 0.023 82.242);
  --secondary-foreground: oklch(0.793 0.078 82.541);
  --accent: oklch(0.203 0.027 168.768);
  --accent-foreground: oklch(0.689 0.122 165.943);
  --destructive: oklch(0.651 0.211 35.815);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.167 0.039 312.82);
  --chart-1: oklch(0.167 0.039 312.82);
  --chart-2: oklch(0.197 0.023 82.242);
  --chart-3: oklch(0.203 0.027 168.768);
  --chart-4: oklch(0.238 0.031 81.851);
  --chart-5: oklch(0.166 0.041 312.738);
}