Esteemed is a shadcn/ui theme built around a muted deep violet primary color (#0a080c) with muted deep green accents (#080c0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#0a080c) on a violet-tinted background (#07050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07050ablack |
| Foreground | #07020dblack | #f7f5fawhitesmoke |
| Card | #fcfcfcsnow | #0a060eblack |
| Card foreground | #050109black | #faf8fcghostwhite |
| Popover | #ffffffwhite | #07050ablack |
| Popover foreground | #07020dblack | #f7f5fawhitesmoke |
| Primary | #0a080cblack | #0a080cblack |
| Primary foreground | #a18fb7darkgray | #a18fb7darkgray |
| Secondary | #0c0a08black | #0c0a08black |
| Secondary foreground | #b7a18frosybrown | #b7a18frosybrown |
| Muted | #e9d9cegainsboro | #312216black |
| Muted foreground | #695a4fdimgray | #b0a196darkgray |
| Accent | #080c0ablack | #080c0ablack |
| Accent foreground | #8fb7a1darkseagreen | #8fb7a1darkseagreen |
| Destructive | #b43b13firebrick | #e95a2bchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a080cblack | #0a080cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 4.82:1 | AA |
| Accent | 8.84:1 | AAA |
| Destructive | 5.86:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 8.84:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Esteemed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.035 307.032);
--muted: oklch(0.896 0.023 59.925);
--muted-foreground: oklch(0.479 0.026 59.518);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.035 307.032);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.095 0.031 307.622);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.139 0.011 305.485);
--primary-foreground: oklch(0.679 0.062 304.527);
--secondary: oklch(0.147 0.006 61.673);
--secondary-foreground: oklch(0.723 0.037 59.568);
--accent: oklch(0.15 0.009 161.023);
--accent-foreground: oklch(0.745 0.054 159.901);
--destructive: oklch(0.523 0.164 36.962);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.139 0.011 305.485);
--chart-1: oklch(0.139 0.011 305.485);
--chart-2: oklch(0.147 0.006 61.673);
--chart-3: oklch(0.15 0.009 161.023);
--chart-4: oklch(0.183 0.01 59.506);
--chart-5: oklch(0.138 0.012 305.465);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.016 306.492);
--foreground: oklch(0.972 0.007 305.637);
--muted: oklch(0.267 0.031 58.318);
--muted-foreground: oklch(0.72 0.023 59.835);
--popover: oklch(0.122 0.016 306.492);
--popover-foreground: oklch(0.972 0.007 305.637);
--card: oklch(0.134 0.018 305.396);
--card-foreground: oklch(0.982 0.005 305.672);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.139 0.011 305.485);
--primary-foreground: oklch(0.679 0.062 304.527);
--secondary: oklch(0.147 0.006 61.673);
--secondary-foreground: oklch(0.723 0.037 59.568);
--accent: oklch(0.15 0.009 161.023);
--accent-foreground: oklch(0.745 0.054 159.901);
--destructive: oklch(0.648 0.187 37.841);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.139 0.011 305.485);
--chart-1: oklch(0.139 0.011 305.485);
--chart-2: oklch(0.147 0.006 61.673);
--chart-3: oklch(0.15 0.009 161.023);
--chart-4: oklch(0.183 0.01 59.506);
--chart-5: oklch(0.138 0.012 305.465);
}