Functionality for shadcn/ui

Functionality is a shadcn/ui theme built around a muted teal primary color (#7ea9a7) with muted red accents (#a97e81). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#7ea9a7) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#ffffffwhite
#030707black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#050a0ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#050a0ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#7ea9a7cadetblue
#7ea9a7cadetblue
Primary foreground
#000000black
#000000black
Secondary
#a97e81rosybrown
#a97e81rosybrown
Secondary foreground
#000000black
#000000black
Muted
#e0d7d7gainsboro
#281f20black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#a97e81rosybrown
#a97e81rosybrown
Accent foreground
#000000black
#000000black
Destructive
#9d2207firebrick
#f64d28tomato
Destructive foreground
#fddfd8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7ea9a7cadetblue
#7ea9a7cadetblue

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 button8.15:1AAA
Secondary button6.01:1AA
Muted text5.98:1AA
Accent6.01:1AA
Destructive6.28:1AA
Dark mode
Text on background20.24:1AAA
Text on card19.89:1AAA
Primary button8.15:1AAA
Secondary button6.01:1AA
Muted text7.63:1AAA
Accent6.01:1AA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.886 0.009 13.819);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.992 0 161.565);
  --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.704 0.046 192.306);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.637 0.053 15.337);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.637 0.053 15.337);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.455 0.162 33.103);
  --destructive-foreground: oklch(0.926 0.035 32.717);
  --ring: oklch(0.704 0.046 192.306);
  --chart-1: oklch(0.704 0.046 192.306);
  --chart-2: oklch(0.637 0.053 15.337);
  --chart-3: oklch(0.637 0.053 15.337);
  --chart-4: oklch(0.664 0.049 15.116);
  --chart-5: oklch(0.711 0.052 192.14);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 192.812);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.013 14.678);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.139 0.01 192.809);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.01 192.809);
  --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.704 0.046 192.306);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.637 0.053 15.337);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.637 0.053 15.337);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.655 0.211 33.881);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.704 0.046 192.306);
  --chart-1: oklch(0.704 0.046 192.306);
  --chart-2: oklch(0.637 0.053 15.337);
  --chart-3: oklch(0.637 0.053 15.337);
  --chart-4: oklch(0.664 0.049 15.116);
  --chart-5: oklch(0.711 0.052 192.14);
}