Second-hand is a shadcn/ui theme built around an orange primary color (#ebad89) with muted orange accents (#c9b6ab). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#ebad89) on an orange-tinted background (#0b0704).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0b0704black |
| Foreground | #080402black | #ffffffwhite |
| Card | #fefcfbsnow | #0b0704black |
| Card foreground | #080402black | #ffffffwhite |
| Popover | #fefcfbsnow | #0b0704black |
| Popover foreground | #080402black | #ffffffwhite |
| Primary | #ebad89burlywood | #ebad89burlywood |
| Primary foreground | #391b0ablack | #391b0ablack |
| Secondary | #d3cac5lightgrey | #3c312adarkslategray |
| Secondary foreground | #3a312cdarkslategray | #d5cac3lightgrey |
| Muted | #e8d5cagainsboro | #352217black |
| Muted foreground | #544740darkolivegreen | #bfb2abdarkgray |
| Accent | #c9b6absilver | #614738darkolivegreen |
| Accent foreground | #281f1ablack | #ece4dfantiquewhite |
| Destructive | #94210adarkred | #f15637tomato |
| Destructive foreground | #fcdbd4mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebad89burlywood | #ebad89burlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 6.27:1 | AA |
| Accent | 8.28:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 6.12:1 | AA |
Paste this into your globals.css to use Second-hand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 52.549);
--foreground: oklch(0.115 0.012 60.261);
--muted: oklch(0.885 0.026 52.198);
--muted-foreground: oklch(0.41 0.022 51.9);
--popover: oklch(0.992 0.002 52.549);
--popover-foreground: oklch(0.115 0.012 60.261);
--card: oklch(0.992 0.002 52.549);
--card-foreground: oklch(0.115 0.012 60.261);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.797 0.088 51.14);
--primary-foreground: oklch(0.26 0.054 48.66);
--secondary: oklch(0.845 0.012 52.383);
--secondary-foreground: oklch(0.322 0.016 51.944);
--accent: oklch(0.79 0.027 52.136);
--accent-foreground: oklch(0.249 0.017 51.69);
--destructive: oklch(0.438 0.154 32.738);
--destructive-foreground: oklch(0.916 0.038 31.18);
--ring: oklch(0.797 0.088 51.14);
--chart-1: oklch(0.797 0.088 51.14);
--chart-2: oklch(0.845 0.012 52.383);
--chart-3: oklch(0.79 0.027 52.136);
--chart-4: oklch(0.869 0.01 52.417);
--chart-5: oklch(0.798 0.091 51.07);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.012 59.068);
--foreground: oklch(1 0 180);
--muted: oklch(0.274 0.035 50.85);
--muted-foreground: oklch(0.773 0.018 52.265);
--popover: oklch(0.132 0.012 59.068);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.012 59.068);
--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.797 0.088 51.14);
--primary-foreground: oklch(0.26 0.054 48.66);
--secondary: oklch(0.322 0.019 51.811);
--secondary-foreground: oklch(0.845 0.015 52.342);
--accent: oklch(0.422 0.043 51.245);
--accent-foreground: oklch(0.923 0.012 52.409);
--destructive: oklch(0.657 0.196 33.212);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.797 0.088 51.14);
--chart-1: oklch(0.797 0.088 51.14);
--chart-2: oklch(0.322 0.019 51.811);
--chart-3: oklch(0.422 0.043 51.245);
--chart-4: oklch(0.352 0.022 51.79);
--chart-5: oklch(0.798 0.091 51.07);
}