Unsung is a shadcn/ui theme built around a vivid green primary color (#2bc205) with muted light green accents (#d5e0d2). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid green primary (#2bc205) on a neutral background (#040803).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #040803black |
| Foreground | #050c03black | #f9fcf8mintcream |
| Card | #f8fcf7mintcream | #050b04black |
| Card foreground | #030802black | #fcfdfbsnow |
| Popover | #fcfefbwhite | #040803black |
| Popover foreground | #050c03black | #f9fcf8mintcream |
| Primary | #2bc205limegreen | #2bc205limegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e6ebe5gainsboro | #1c221bblack |
| Secondary foreground | #495946darkslategray | #b2c0afsilver |
| Muted | #ebf0ealinen | #10150fblack |
| Muted foreground | #444d42darkslategray | #b4bdb2silver |
| Accent | #d5e0d2gainsboro | #293725darkslategray |
| Accent foreground | #394b34darkslategray | #c1d2bcsilver |
| Destructive | #7e2d01saddlebrown | #ed5502orangered |
| Destructive foreground | #feceb3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2bc205limegreen | #2bc205limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 2.38:1 | Fail |
| Secondary button | 6.20:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 2.38:1 | Fail |
| Secondary button | 8.51:1 | AAA |
| Muted text | 9.56:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Unsung in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 139.443);
--foreground: oklch(0.143 0.027 137.714);
--muted: oklch(0.95 0.01 139.442);
--muted-foreground: oklch(0.409 0.022 139.433);
--popover: oklch(0.994 0.004 139.443);
--popover-foreground: oklch(0.143 0.027 137.714);
--card: oklch(0.988 0.008 139.442);
--card-foreground: oklch(0.124 0.023 137.631);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.709 0.233 141.277);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.935 0.009 139.442);
--secondary-foreground: oklch(0.443 0.036 139.433);
--accent: oklch(0.893 0.022 139.438);
--accent-foreground: oklch(0.391 0.044 139.443);
--destructive: oklch(0.411 0.122 42.323);
--destructive-foreground: oklch(0.886 0.066 49.787);
--ring: oklch(0.709 0.233 141.277);
--chart-1: oklch(0.709 0.233 141.277);
--chart-2: oklch(0.935 0.009 139.442);
--chart-3: oklch(0.893 0.022 139.438);
--chart-4: oklch(0.956 0.006 139.443);
--chart-5: oklch(0.717 0.237 141.356);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.019 137.932);
--foreground: oklch(0.987 0.006 139.443);
--muted: oklch(0.188 0.014 139.433);
--muted-foreground: oklch(0.789 0.019 139.438);
--popover: oklch(0.123 0.019 137.932);
--popover-foreground: oklch(0.987 0.006 139.443);
--card: oklch(0.141 0.022 137.973);
--card-foreground: oklch(0.994 0.003 139.443);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.709 0.233 141.277);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.244 0.016 139.432);
--secondary-foreground: oklch(0.793 0.028 139.436);
--accent: oklch(0.317 0.036 139.442);
--accent-foreground: oklch(0.844 0.034 139.435);
--destructive: oklch(0.647 0.201 40.324);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.233 141.277);
--chart-1: oklch(0.709 0.233 141.277);
--chart-2: oklch(0.244 0.016 139.432);
--chart-3: oklch(0.317 0.036 139.442);
--chart-4: oklch(0.278 0.02 139.432);
--chart-5: oklch(0.717 0.237 141.356);
}