Sinuosity for shadcn/ui

Sinuosity is a shadcn/ui theme built around a muted teal primary color (#5e8d7f) with muted cyan accents (#5e838d). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#5e8d7f) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#ffffffwhite
#030706black
Foreground
#000000black
#f8fcfbmintcream
Card
#ffffffwhite
#030706black
Card foreground
#000000black
#f8fcfbmintcream
Popover
#ffffffwhite
#030706black
Popover foreground
#000000black
#f8fcfbmintcream
Primary
#5e8d7fslategray
#5e8d7fslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5e8d68dimgray
#5e8d68dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2eee5gainsboro
#111d13black
Muted foreground
#404f43darkslategray
#b0bfb3silver
Accent
#5e838dslategray
#5e838dslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7a1f05maroon
#f5410forangered
Destructive foreground
#fcc5b6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5e8d7fslategray
#5e8d7fslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button3.76:1AA Large
Secondary button3.83:1AA Large
Muted text7.28:1AAA
Accent4.13:1AA Large
Destructive6.81:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button3.76:1AA Large
Secondary button3.83:1AA Large
Muted text9.04:1AAA
Accent4.13:1AA Large
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.938 0.018 152.306);
  --muted-foreground: oklch(0.411 0.028 151.478);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.605 0.055 174.699);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.598 0.076 150.408);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.585 0.044 216.751);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.386 0.13 34.933);
  --destructive-foreground: oklch(0.868 0.067 35.99);
  --ring: oklch(0.605 0.055 174.699);
  --chart-1: oklch(0.605 0.055 174.699);
  --chart-2: oklch(0.598 0.076 150.408);
  --chart-3: oklch(0.585 0.044 216.751);
  --chart-4: oklch(0.626 0.08 150.393);
  --chart-5: oklch(0.612 0.062 174.258);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.012 177.832);
  --foreground: oklch(0.987 0.004 177.6);
  --muted: oklch(0.216 0.026 150.543);
  --muted-foreground: oklch(0.79 0.024 152.126);
  --popover: oklch(0.123 0.012 177.832);
  --popover-foreground: oklch(0.987 0.004 177.6);
  --card: oklch(0.123 0.012 177.832);
  --card-foreground: oklch(0.987 0.004 177.6);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.605 0.055 174.699);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.598 0.076 150.408);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.585 0.044 216.751);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.222 34.274);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.055 174.699);
  --chart-1: oklch(0.605 0.055 174.699);
  --chart-2: oklch(0.598 0.076 150.408);
  --chart-3: oklch(0.585 0.044 216.751);
  --chart-4: oklch(0.626 0.08 150.393);
  --chart-5: oklch(0.612 0.062 174.258);
}