Ashamed is a shadcn/ui theme built around a muted deep violet primary color (#131118) with muted deep green accents (#161811). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#131118) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040208black | #f7f6f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020104black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040208black | #f7f6f9whitesmoke |
| Primary | #131118black | #131118black |
| Primary foreground | #a89ebddarkgray | #a89ebddarkgray |
| Secondary | #161811black | #161811black |
| Secondary foreground | #b3bd9edarkgray | #b3bd9edarkgray |
| Muted | #dee1d5gainsboro | #262a1edarkslategray |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #161811black | #161811black |
| Accent foreground | #b3bd9edarkgray | #b3bd9edarkgray |
| Destructive | #77340dsaddlebrown | #e76a23chocolate |
| Destructive foreground | #f8d4bfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #131118black | #131118black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 9.10:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 9.10:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 9.10:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 9.10:1 | AAA |
| Destructive | 6.48:1 | AA |
Paste this into your globals.css to use Ashamed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.019 301.108);
--muted: oklch(0.905 0.017 121.074);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.019 301.108);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.08 0.015 301.108);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.182 0.016 299.296);
--primary-foreground: oklch(0.718 0.046 299.712);
--secondary: oklch(0.205 0.015 122.027);
--secondary-foreground: oklch(0.782 0.044 121.709);
--accent: oklch(0.205 0.015 122.027);
--accent-foreground: oklch(0.782 0.044 121.709);
--destructive: oklch(0.411 0.106 46.004);
--destructive-foreground: oklch(0.894 0.05 51.873);
--ring: oklch(0.182 0.016 299.296);
--chart-1: oklch(0.182 0.016 299.296);
--chart-2: oklch(0.205 0.015 122.027);
--chart-3: oklch(0.205 0.015 122.027);
--chart-4: oklch(0.242 0.02 122.174);
--chart-5: oklch(0.181 0.019 299.037);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.004 300.701);
--muted: oklch(0.276 0.022 122.126);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.004 300.701);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.003 300.724);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.182 0.016 299.296);
--primary-foreground: oklch(0.718 0.046 299.712);
--secondary: oklch(0.205 0.015 122.027);
--secondary-foreground: oklch(0.782 0.044 121.709);
--accent: oklch(0.205 0.015 122.027);
--accent-foreground: oklch(0.782 0.044 121.709);
--destructive: oklch(0.666 0.173 45.86);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.182 0.016 299.296);
--chart-1: oklch(0.182 0.016 299.296);
--chart-2: oklch(0.205 0.015 122.027);
--chart-3: oklch(0.205 0.015 122.027);
--chart-4: oklch(0.242 0.02 122.174);
--chart-5: oklch(0.181 0.019 299.037);
}