Attitude for shadcn/ui

Attitude is a shadcn/ui theme built around a muted teal primary color (#3c6256) with muted cyan accents (#3c5b62). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the muted teal primary (#3c6256) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#030706black
Foreground
#02120dblack
#f8fcfbmintcream
Card
#f7fdfbmintcream
#030706black
Card foreground
#02120dblack
#f8fcfbmintcream
Popover
#f7fdfbmintcream
#030706black
Popover foreground
#02120dblack
#f8fcfbmintcream
Primary
#3c6256darkslategray
#3c6256darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3c6243darkslategray
#3c6243darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4ece6gainsboro
#131b15black
Muted foreground
#3d5141darkslategray
#aec2b1silver
Accent
#3c5b62darkslategray
#3c5b62darkslategray
Accent foreground
#e3eceelavender
#e3eceelavender
Destructive
#cf3917firebrick
#d83b18firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c6256darkslategray
#3c6256darkslategray

Contrast

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

Light mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button6.82:1AA
Secondary button6.94:1AA
Muted text7.10:1AAA
Accent6.10:1AA
Destructive4.96:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.82:1AA
Secondary button6.94:1AA
Muted text9.35:1AAA
Accent6.10:1AA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 175.41);
  --foreground: oklch(0.166 0.027 172.252);
  --muted: oklch(0.935 0.011 151.235);
  --muted-foreground: oklch(0.414 0.037 150.053);
  --popover: oklch(0.989 0.007 175.41);
  --popover-foreground: oklch(0.166 0.027 172.252);
  --card: oklch(0.989 0.007 175.41);
  --card-foreground: oklch(0.166 0.027 172.252);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.464 0.048 172.085);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.458 0.066 149.062);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.45 0.038 213.271);
  --accent-foreground: oklch(0.935 0.01 212.673);
  --destructive: oklch(0.566 0.192 33.585);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.464 0.048 172.085);
  --chart-1: oklch(0.464 0.048 172.085);
  --chart-2: oklch(0.458 0.066 149.062);
  --chart-3: oklch(0.45 0.038 213.271);
  --chart-4: oklch(0.489 0.072 149.031);
  --chart-5: oklch(0.469 0.053 171.652);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.012 175.788);
  --foreground: oklch(0.987 0.004 175.492);
  --muted: oklch(0.211 0.016 150.258);
  --muted-foreground: oklch(0.793 0.032 150.823);
  --popover: oklch(0.123 0.012 175.788);
  --popover-foreground: oklch(0.987 0.004 175.492);
  --card: oklch(0.123 0.012 175.788);
  --card-foreground: oklch(0.987 0.004 175.492);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.464 0.048 172.085);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.458 0.066 149.062);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.45 0.038 213.271);
  --accent-foreground: oklch(0.935 0.01 212.673);
  --destructive: oklch(0.585 0.198 33.564);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.464 0.048 172.085);
  --chart-1: oklch(0.464 0.048 172.085);
  --chart-2: oklch(0.458 0.066 149.062);
  --chart-3: oklch(0.45 0.038 213.271);
  --chart-4: oklch(0.489 0.072 149.031);
  --chart-5: oklch(0.469 0.053 171.652);
}