Majestic is a shadcn/ui theme built around a vivid deep orange primary color (#371306) with vivid deep violet accents (#130637). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#371306) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0d0502black | #f9f7f6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0d0502black | #f9f7f6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0d0502black | #f9f7f6whitesmoke |
| Primary | #371306black | #371306black |
| Primary foreground | #f09b7fdarksalmon | #f09b7fdarksalmon |
| Secondary | #063713darkgreen | #063713darkgreen |
| Secondary foreground | #24e554limegreen | #24e554limegreen |
| Muted | #eceeedwhitesmoke | #111311black |
| Muted foreground | #3b453ddarkslategray | #bac4bdsilver |
| Accent | #130637black | #130637black |
| Accent foreground | #9b7ff0mediumpurple | #9b7ff0mediumpurple |
| Destructive | #8f130adarkred | #f1483btomato |
| Destructive foreground | #fcd2cfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #371306black | #371306black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 8.57:1 | AAA |
| Accent | 6.02:1 | AA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 10.42:1 | AAA |
| Accent | 6.02:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Majestic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.127 0.02 48.899);
--muted: oklch(0.948 0.003 153.821);
--muted-foreground: oklch(0.378 0.019 153.014);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.127 0.02 48.899);
--card: oklch(1 0 180);
--card-foreground: oklch(0.127 0.02 48.899);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.24 0.062 38.947);
--primary-foreground: oklch(0.769 0.109 39.19);
--secondary: oklch(0.295 0.08 147.347);
--secondary-foreground: oklch(0.806 0.236 146.145);
--accent: oklch(0.186 0.087 286.051);
--accent-foreground: oklch(0.673 0.163 293.012);
--destructive: oklch(0.417 0.159 29.657);
--destructive-foreground: oklch(0.899 0.047 22.869);
--ring: oklch(0.24 0.062 38.947);
--chart-1: oklch(0.24 0.062 38.947);
--chart-2: oklch(0.295 0.08 147.347);
--chart-3: oklch(0.186 0.087 286.051);
--chart-4: oklch(0.341 0.095 146.911);
--chart-5: oklch(0.241 0.064 39.06);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 39.49);
--muted: oklch(0.183 0.005 153.436);
--muted-foreground: oklch(0.811 0.015 153.551);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 39.49);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 39.49);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.24 0.062 38.947);
--primary-foreground: oklch(0.769 0.109 39.19);
--secondary: oklch(0.295 0.08 147.347);
--secondary-foreground: oklch(0.806 0.236 146.145);
--accent: oklch(0.186 0.087 286.051);
--accent-foreground: oklch(0.673 0.163 293.012);
--destructive: oklch(0.643 0.208 28.449);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.24 0.062 38.947);
--chart-1: oklch(0.24 0.062 38.947);
--chart-2: oklch(0.295 0.08 147.347);
--chart-3: oklch(0.186 0.087 286.051);
--chart-4: oklch(0.341 0.095 146.911);
--chart-5: oklch(0.241 0.064 39.06);
}