Intentionality for shadcn/ui

Intentionality is a shadcn/ui theme built around a vivid light yellow primary color (#ffffbd) with vivid light indigo accents (#bdbdff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#ffffbd) on a yellow-tinted background (#0f0f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0f05black
Foreground
#161604black
#fdfdfcwhite
Card
#fcfcfcsnow
#131307black
Card foreground
#111103black
#ffffffwhite
Popover
#ffffffwhite
#0f0f05black
Popover foreground
#161604black
#fdfdfcwhite
Primary
#ffffbdlemonchiffon
#ffffbdlemonchiffon
Primary foreground
#242400black
#242400black
Secondary
#bdbdfflightsteelblue
#bdbdfflightsteelblue
Secondary foreground
#010189darkblue
#010189darkblue
Muted
#d9d9e2gainsboro
#1d1d26black
Muted foreground
#424257darkslategray
#a8a8bddarkgray
Accent
#bdbdfflightsteelblue
#bdbdfflightsteelblue
Accent foreground
#010189darkblue
#010189darkblue
Destructive
#c13b06firebrick
#f9682ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffbdlemonchiffon
#ffffbdlemonchiffon

Contrast

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

Light mode
Text on background18.25:1AAA
Text on card18.58:1AAA
Primary button15.24:1AAA
Secondary button8.69:1AAA
Muted text6.98:1AA
Accent8.69:1AAA
Destructive5.39:1AA
Dark mode
Text on background18.88:1AAA
Text on card18.68:1AAA
Primary button15.24:1AAA
Secondary button8.69:1AAA
Muted text7.20:1AAA
Accent8.69:1AAA
Destructive7.04:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.193 0.033 109.143);
  --muted: oklch(0.889 0.013 286.14);
  --muted-foreground: oklch(0.387 0.036 284.585);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.193 0.033 109.143);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.174 0.029 109.089);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.984 0.083 107.837);
  --primary-foreground: oklch(0.25 0.054 109.755);
  --secondary: oklch(0.822 0.092 284.197);
  --secondary-foreground: oklch(0.286 0.197 264.248);
  --accent: oklch(0.822 0.092 284.197);
  --accent-foreground: oklch(0.286 0.197 264.248);
  --destructive: oklch(0.545 0.178 37.224);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.984 0.083 107.837);
  --chart-1: oklch(0.984 0.083 107.837);
  --chart-2: oklch(0.822 0.092 284.197);
  --chart-3: oklch(0.822 0.092 284.197);
  --chart-4: oklch(0.863 0.07 284.845);
  --chart-5: oklch(0.986 0.086 107.871);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.166 0.021 108.471);
  --foreground: oklch(0.994 0.001 106.426);
  --muted: oklch(0.233 0.018 284.936);
  --muted-foreground: oklch(0.738 0.031 285.625);
  --popover: oklch(0.166 0.021 108.471);
  --popover-foreground: oklch(0.994 0.001 106.426);
  --card: oklch(0.183 0.024 108.551);
  --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.984 0.083 107.837);
  --primary-foreground: oklch(0.25 0.054 109.755);
  --secondary: oklch(0.822 0.092 284.197);
  --secondary-foreground: oklch(0.286 0.197 264.248);
  --accent: oklch(0.822 0.092 284.197);
  --accent-foreground: oklch(0.286 0.197 264.248);
  --destructive: oklch(0.691 0.19 40.129);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.984 0.083 107.837);
  --chart-1: oklch(0.984 0.083 107.837);
  --chart-2: oklch(0.822 0.092 284.197);
  --chart-3: oklch(0.822 0.092 284.197);
  --chart-4: oklch(0.863 0.07 284.845);
  --chart-5: oklch(0.986 0.086 107.871);
}