Size for shadcn/ui

Size is a shadcn/ui theme built around a muted deep teal primary color (#344644) with muted deep red accents (#463436). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the muted deep teal primary (#344644) on a neutral background (#040706).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#040706black
Foreground
#010404black
#ffffffwhite
Card
#f7fdfcmintcream
#040706black
Card foreground
#010404black
#ffffffwhite
Popover
#f7fdfcmintcream
#040706black
Popover foreground
#010404black
#ffffffwhite
Primary
#344644darkslategray
#344644darkslategray
Primary foreground
#d0dcdbgainsboro
#d0dcdbgainsboro
Secondary
#463436darkslategray
#463436darkslategray
Secondary foreground
#dcd0d2lightgrey
#dcd0d2lightgrey
Muted
#e6e0e1gainsboro
#1f191ablack
Muted foreground
#685557dimgray
#aa9799rosybrown
Accent
#463436darkslategray
#463436darkslategray
Accent foreground
#dcd0d2lightgrey
#dcd0d2lightgrey
Destructive
#ca4316chocolate
#e6501echocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#344644darkslategray
#344644darkslategray

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button7.06:1AAA
Secondary button7.73:1AAA
Muted text5.32:1AA
Accent7.73:1AAA
Destructive4.84:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.06:1AAA
Secondary button7.73:1AAA
Muted text6.25:1AA
Accent7.73:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 188.748);
  --foreground: oklch(0.099 0.011 188.281);
  --muted: oklch(0.912 0.006 9.07);
  --muted-foreground: oklch(0.469 0.025 10.176);
  --popover: oklch(0.989 0.007 188.748);
  --popover-foreground: oklch(0.099 0.011 188.281);
  --card: oklch(0.989 0.007 188.748);
  --card-foreground: oklch(0.099 0.011 188.281);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.379 0.024 187.373);
  --primary-foreground: oklch(0.886 0.013 188.551);
  --secondary: oklch(0.346 0.027 10.733);
  --secondary-foreground: oklch(0.868 0.014 9.283);
  --accent: oklch(0.346 0.027 10.733);
  --accent-foreground: oklch(0.868 0.014 9.283);
  --destructive: oklch(0.57 0.179 36.948);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.024 187.373);
  --chart-1: oklch(0.379 0.024 187.373);
  --chart-2: oklch(0.346 0.027 10.733);
  --chart-3: oklch(0.346 0.027 10.733);
  --chart-4: oklch(0.374 0.029 10.776);
  --chart-5: oklch(0.383 0.028 187.091);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 188.516);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.221 0.009 9.865);
  --muted-foreground: oklch(0.694 0.023 9.676);
  --popover: oklch(0.121 0.008 188.516);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.008 188.516);
  --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.379 0.024 187.373);
  --primary-foreground: oklch(0.886 0.013 188.551);
  --secondary: oklch(0.346 0.027 10.733);
  --secondary-foreground: oklch(0.868 0.014 9.283);
  --accent: oklch(0.346 0.027 10.733);
  --accent-foreground: oklch(0.868 0.014 9.283);
  --destructive: oklch(0.631 0.195 37.148);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.024 187.373);
  --chart-1: oklch(0.379 0.024 187.373);
  --chart-2: oklch(0.346 0.027 10.733);
  --chart-3: oklch(0.346 0.027 10.733);
  --chart-4: oklch(0.374 0.029 10.776);
  --chart-5: oklch(0.383 0.028 187.091);
}