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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.63:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 4.19:1 | AA Large |
| Secondary button | 5.33:1 | AA |
| Muted text | 6.87:1 | AA |
| Accent | 4.97:1 | AA |
| Destructive | 6.41:1 | AA |
| Text on background | 16.22:1 | AAA |
| Text on card | 14.63:1 | AAA |
| Primary button | 9.18:1 | AAA |
| Secondary button | 5.33:1 | AA |
| Muted text | 3.18:1 | AA Large |
| Accent | 10.15:1 | AAA |
| Destructive | 4.38:1 | AA Large |
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);
}