Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
Glorious is a shadcn/ui theme built around a near-black primary color (#0b0804) with near-black accents (#0b0b04). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the near-black primary (#0b0804) on an orange-tinted background (#0e0a06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #0e0a06black |
| Foreground | #100a05black | #fbfaf8snow |
| Card | #fdfcfbsnow | #0e0a06black |
| Card foreground | #100a05black | #fbfaf8snow |
| Popover | #fdfcfbsnow | #0e0a06black |
| Popover foreground | #100a05black | #fbfaf8snow |
| Primary | #0b0804black | #0b0804black |
| Primary foreground | #cfa272darkkhaki | #cfa272darkkhaki |
| Secondary | #0b0404black | #0b0404black |
| Secondary foreground | #cf7472indianred | #cf7472indianred |
| Muted | #f7ededlinen | #120808black |
| Muted foreground | #665c5cdimgray | #a39999darkgray |
| Accent | #0b0b04black | #0b0b04black |
| Accent foreground | #a2a338yellowgreen | #a2a338yellowgreen |
| Destructive | #bd1105firebrick | #f91b0bred |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b0804black | #0b0804black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 8.63:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 5.64:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 8.63:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Glorious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 69.633);
--foreground: oklch(0.151 0.016 73.185);
--muted: oklch(0.955 0.011 18.532);
--muted-foreground: oklch(0.485 0.012 18.76);
--popover: oklch(0.993 0.002 69.633);
--popover-foreground: oklch(0.151 0.016 73.185);
--card: oklch(0.993 0.002 69.633);
--card-foreground: oklch(0.151 0.016 73.185);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.136 0.013 76.129);
--primary-foreground: oklch(0.743 0.083 67.862);
--secondary: oklch(0.121 0.017 21.383);
--secondary-foreground: oklch(0.66 0.115 21.663);
--accent: oklch(0.148 0.018 109.092);
--accent-foreground: oklch(0.695 0.128 110.24);
--destructive: oklch(0.506 0.201 29.832);
--destructive-foreground: oklch(0.979 0.01 22.327);
--ring: oklch(0.136 0.013 76.129);
--chart-1: oklch(0.136 0.013 76.129);
--chart-2: oklch(0.121 0.017 21.383);
--chart-3: oklch(0.148 0.018 109.092);
--chart-4: oklch(0.158 0.027 21.704);
--chart-5: oklch(0.137 0.014 76.448);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.15 0.013 72.224);
--foreground: oklch(0.986 0.003 69.623);
--muted: oklch(0.149 0.018 20.651);
--muted-foreground: oklch(0.692 0.011 18.612);
--popover: oklch(0.15 0.013 72.224);
--popover-foreground: oklch(0.986 0.003 69.623);
--card: oklch(0.15 0.013 72.224);
--card-foreground: oklch(0.986 0.003 69.623);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.136 0.013 76.129);
--primary-foreground: oklch(0.743 0.083 67.862);
--secondary: oklch(0.121 0.017 21.383);
--secondary-foreground: oklch(0.66 0.115 21.663);
--accent: oklch(0.148 0.018 109.092);
--accent-foreground: oklch(0.695 0.128 110.24);
--destructive: oklch(0.623 0.246 29.754);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.136 0.013 76.129);
--chart-1: oklch(0.136 0.013 76.129);
--chart-2: oklch(0.121 0.017 21.383);
--chart-3: oklch(0.148 0.018 109.092);
--chart-4: oklch(0.158 0.027 21.704);
--chart-5: oklch(0.137 0.014 76.448);
}