Second-hand is a shadcn/ui theme built around a muted green primary color (#5e6151) with muted green accents (#566151). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the muted green primary (#5e6151) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf7snow | #000000black |
| Foreground | #0d1005black | #fdfdfcwhite |
| Card | #fafcf3floralwhite | #030303black |
| Card foreground | #0a0c04black | #ffffffwhite |
| Popover | #fcfdf7snow | #000000black |
| Popover foreground | #0d1005black | #fdfdfcwhite |
| Primary | #5e6151dimgray | #5e6151dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #615c51dimgray | #615c51dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8e3d9gainsboro | #262217black |
| Muted foreground | #4c4942darkslategray | #bdbab3silver |
| Accent | #566151dimgray | #566151dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d30e03red | #fc362corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e6151dimgray | #5e6151dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 6.60:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 6.48:1 | AA |
| Destructive | 5.48:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 6.60:1 | AA |
| Muted text | 8.22:1 | AAA |
| Accent | 6.48:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Second-hand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 115.732);
--foreground: oklch(0.165 0.023 117.419);
--muted: oklch(0.917 0.015 87.496);
--muted-foreground: oklch(0.407 0.012 87.542);
--popover: oklch(0.991 0.008 115.732);
--popover-foreground: oklch(0.165 0.023 117.419);
--card: oklch(0.987 0.012 115.809);
--card-foreground: oklch(0.148 0.02 116.41);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.486 0.025 116.531);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.477 0.019 87.562);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.479 0.029 136.252);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.548 0.22 29.617);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.025 116.531);
--chart-1: oklch(0.486 0.025 116.531);
--chart-2: oklch(0.477 0.019 87.562);
--chart-3: oklch(0.479 0.029 136.252);
--chart-4: oklch(0.506 0.02 87.562);
--chart-5: oklch(0.493 0.033 116.821);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 115.595);
--muted: oklch(0.252 0.019 87.508);
--muted-foreground: oklch(0.788 0.01 87.484);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 115.595);
--card: oklch(0.092 0 180);
--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.486 0.025 116.531);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.477 0.019 87.562);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.479 0.029 136.252);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.645 0.233 28.703);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.025 116.531);
--chart-1: oklch(0.486 0.025 116.531);
--chart-2: oklch(0.477 0.019 87.562);
--chart-3: oklch(0.479 0.029 136.252);
--chart-4: oklch(0.506 0.02 87.562);
--chart-5: oklch(0.493 0.033 116.821);
}