Glorious is a shadcn/ui theme built around a neutral gray primary color (#515853) with muted light green accents (#cce1d4). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the neutral gray primary (#515853) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #010402black |
| Foreground | #010904black | #ffffffwhite |
| Card | #f4fbf7mintcream | #030705black |
| Card foreground | #010402black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #010402black |
| Popover foreground | #010904black | #ffffffwhite |
| Primary | #515853darkslategray | #515853darkslategray |
| Primary foreground | #eceeedwhitesmoke | #eceeedwhitesmoke |
| Secondary | #e0ebe4gainsboro | #233429darkslategray |
| Secondary foreground | #3d5c49darkslategray | #b9cfc2silver |
| Muted | #edf3efwhitesmoke | #0c120fblack |
| Muted foreground | #56675cdimgray | #98a99fdarkgray |
| Accent | #cce1d4lightgrey | #2b4a37darkslategray |
| Accent foreground | #2d4d39darkslategray | #c8dfd1lightgrey |
| Destructive | #9d1801darkred | #f42601orangered |
| Destructive foreground | #ffd8d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #515853darkslategray | #515853darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 6.06:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Glorious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 159.34);
--foreground: oklch(0.125 0.022 159.254);
--muted: oklch(0.958 0.008 159.287);
--muted-foreground: oklch(0.496 0.026 158.222);
--popover: oklch(0.987 0.006 159.34);
--popover-foreground: oklch(0.125 0.022 159.254);
--card: oklch(0.981 0.009 159.274);
--card-foreground: oklch(0.099 0.017 159.254);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.451 0.011 158.925);
--primary-foreground: oklch(0.947 0.002 159.424);
--secondary: oklch(0.929 0.014 159.137);
--secondary-foreground: oklch(0.444 0.048 156.774);
--accent: oklch(0.89 0.029 158.73);
--accent-foreground: oklch(0.39 0.051 156.098);
--destructive: oklch(0.448 0.17 31.898);
--destructive-foreground: oklch(0.913 0.044 29.717);
--ring: oklch(0.451 0.011 158.925);
--chart-1: oklch(0.451 0.011 158.925);
--chart-2: oklch(0.929 0.014 159.137);
--chart-3: oklch(0.89 0.029 158.73);
--chart-4: oklch(0.951 0.01 159.244);
--chart-5: oklch(0.455 0.019 158.515);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.011 159.331);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.012 157.89);
--muted-foreground: oklch(0.719 0.024 158.696);
--popover: oklch(0.097 0.011 159.331);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.014 159.331);
--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.451 0.011 158.925);
--primary-foreground: oklch(0.947 0.002 159.424);
--secondary: oklch(0.305 0.028 157.18);
--secondary-foreground: oklch(0.835 0.031 158.627);
--accent: oklch(0.379 0.049 156.125);
--accent-foreground: oklch(0.883 0.031 158.675);
--destructive: oklch(0.618 0.238 31.298);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.451 0.011 158.925);
--chart-1: oklch(0.451 0.011 158.925);
--chart-2: oklch(0.305 0.028 157.18);
--chart-3: oklch(0.379 0.049 156.125);
--chart-4: oklch(0.338 0.033 157.093);
--chart-5: oklch(0.455 0.019 158.515);
}