5S New for shadcn/ui

5S New is a shadcn/ui theme built around a muted green primary color (#68826a) with muted red accents (#826a68). The light mode uses a neutral background (#fbfefb). Dark mode switches to a vivid violet primary (#6100c2) on an indigo-tinted background (#1f1d2b).

Color palette

TokenLightDark
Background
#fbfefbwhite
#1f1d2bblack
Foreground
#051406black
#fcfdfcwhite
Card
#f7fdf7mintcream
#252836darkslategray
Card foreground
#041005black
#ffffffwhite
Popover
#fbfefbwhite
#252836darkslategray
Popover foreground
#051406black
#fcfdfcwhite
Primary
#68826adimgray
#6100c2darkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6a6882dimgray
#6a6882dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f0f5whitesmoke
#353440darkslategray
Muted foreground
#52515cdimgray
#808191lightslategray
Accent
#826a68dimgray
#434049darkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9a1004darkred
#fa4d5etomato
Destructive foreground
#fed6d2bisque
#252836darkslategray
Border
#eceeecwhitesmoke
#494853darkslategray
Input
#eceeecwhitesmoke
#494853darkslategray
Ring
#68826adimgray
#6100c2darkviolet

Contrast

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

Light mode
Text on background18.63:1AAA
Text on card18.80:1AAA
Primary button4.19:1AA Large
Secondary button5.33:1AA
Muted text6.87:1AA
Accent4.97:1AA
Destructive6.41:1AA
Dark mode
Text on background16.22:1AAA
Text on card14.63:1AAA
Primary button9.18:1AAA
Secondary button5.33:1AA
Muted text3.18:1AA Large
Accent10.15:1AAA
Destructive4.38:1AA Large

CSS variables

Paste this into your globals.css to use 5S New in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 147.498);
  --foreground: oklch(0.173 0.036 145.577);
  --muted: oklch(0.957 0.006 289.358);
  --muted-foreground: oklch(0.441 0.017 288.747);
  --popover: oklch(0.994 0.005 147.498);
  --popover-foreground: oklch(0.173 0.036 145.577);
  --card: oklch(0.988 0.01 147.45);
  --card-foreground: oklch(0.157 0.031 145.847);
  --border: oklch(0.948 0.003 147.509);
  --input: oklch(0.948 0.003 147.509);
  --primary: oklch(0.58 0.047 146.704);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.53 0.04 287.997);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.031 22.931);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.438 0.171 30.245);
  --destructive-foreground: oklch(0.909 0.045 24.135);
  --ring: oklch(0.58 0.047 146.704);
  --chart-1: oklch(0.58 0.047 146.704);
  --chart-2: oklch(0.53 0.04 287.997);
  --chart-3: oklch(0.548 0.031 22.931);
  --chart-4: oklch(0.554 0.042 287.986);
  --chart-5: oklch(0.585 0.059 146.477);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.24 0.027 290.789);
  --foreground: oklch(0.993 0.003 147.518);
  --muted: oklch(0.331 0.021 289.016);
  --muted-foreground: oklch(0.608 0.024 282.813);
  --popover: oklch(0.28 0.026 275.176);
  --popover-foreground: oklch(0.993 0.003 147.518);
  --card: oklch(0.28 0.026 275.176);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.407 0.018 289.729);
  --input: oklch(0.407 0.018 289.729);
  --primary: oklch(0.433 0.239 294.446);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.53 0.04 287.997);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.378 0.016 300.827);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.668 0.208 19.491);
  --destructive-foreground: oklch(0.28 0.026 275.176);
  --ring: oklch(0.433 0.239 294.446);
  --chart-1: oklch(0.433 0.239 294.446);
  --chart-2: oklch(0.53 0.04 287.997);
  --chart-3: oklch(0.378 0.016 300.827);
  --chart-4: oklch(0.554 0.042 287.986);
  --chart-5: oklch(0.435 0.242 293.89);
}