Intentional for shadcn/ui

Intentional is a shadcn/ui theme built around a deep green primary color (#1a350d) with deep violet accents (#280d35). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1a350d) on a green-tinted background (#060b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#060b04black
Foreground
#000000black
#fafbf9snow
Card
#fcfcfcsnow
#080f05black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#060b04black
Popover foreground
#000000black
#fafbf9snow
Primary
#1a350ddarkgreen
#1a350ddarkgreen
Primary foreground
#6dcf3fyellowgreen
#6dcf3fyellowgreen
Secondary
#280d35midnightblue
#280d35midnightblue
Secondary foreground
#c991e3plum
#c991e3plum
Muted
#e7d9edlavender
#201226black
Muted foreground
#5b4a64dimgray
#ad9bb5darkgray
Accent
#280d35midnightblue
#280d35midnightblue
Accent foreground
#c991e3plum
#c991e3plum
Destructive
#db0f00red
#ff3c2etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a350ddarkgreen
#1a350ddarkgreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.82:1AA
Secondary button7.18:1AAA
Muted text5.94:1AA
Accent7.18:1AAA
Destructive5.13:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.02:1AAA
Primary button6.82:1AA
Secondary button7.18:1AAA
Muted text6.92:1AA
Accent7.18:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.902 0.032 315.279);
  --muted-foreground: oklch(0.436 0.047 314.965);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.297 0.072 137.207);
  --primary-foreground: oklch(0.766 0.201 137.545);
  --secondary: oklch(0.226 0.078 313.378);
  --secondary-foreground: oklch(0.74 0.13 314.644);
  --accent: oklch(0.226 0.078 313.378);
  --accent-foreground: oklch(0.74 0.13 314.644);
  --destructive: oklch(0.564 0.227 29.889);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.297 0.072 137.207);
  --chart-1: oklch(0.297 0.072 137.207);
  --chart-2: oklch(0.226 0.078 313.378);
  --chart-3: oklch(0.226 0.078 313.378);
  --chart-4: oklch(0.255 0.092 313.187);
  --chart-5: oklch(0.3 0.075 137.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.021 134.079);
  --foreground: oklch(0.986 0.002 135.437);
  --muted: oklch(0.211 0.044 314.453);
  --muted-foreground: oklch(0.714 0.042 315.179);
  --popover: oklch(0.142 0.021 134.079);
  --popover-foreground: oklch(0.986 0.002 135.437);
  --card: oklch(0.158 0.025 134.759);
  --card-foreground: oklch(0.993 0.001 135.432);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.297 0.072 137.207);
  --primary-foreground: oklch(0.766 0.201 137.545);
  --secondary: oklch(0.226 0.078 313.378);
  --secondary-foreground: oklch(0.74 0.13 314.644);
  --accent: oklch(0.226 0.078 313.378);
  --accent-foreground: oklch(0.74 0.13 314.644);
  --destructive: oklch(0.655 0.232 29.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.297 0.072 137.207);
  --chart-1: oklch(0.297 0.072 137.207);
  --chart-2: oklch(0.226 0.078 313.378);
  --chart-3: oklch(0.226 0.078 313.378);
  --chart-4: oklch(0.255 0.092 313.187);
  --chart-5: oklch(0.3 0.075 137.323);
}