Majestic is a shadcn/ui theme built around a deep violet primary color (#382046) with muted light violet accents (#cec4d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#382046) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #030104black | #f8f6f9whitesmoke |
| Card | #ffffffwhite | #030104black |
| Card foreground | #030104black | #f8f6f9whitesmoke |
| Popover | #ffffffwhite | #030104black |
| Popover foreground | #030104black | #f8f6f9whitesmoke |
| Primary | #382046darkslategray | #382046darkslategray |
| Primary foreground | #d1b9dfthistle | #d1b9dfthistle |
| Secondary | #e3e2e4gainsboro | #151118black |
| Secondary foreground | #4b464edarkslategray | #b19fbcdarkgray |
| Muted | #f3eff5whitesmoke | #0e0a10black |
| Muted foreground | #5b535fdimgray | #a7a0acdarkgray |
| Accent | #cec4d4thistle | #2e2136darkslategray |
| Accent foreground | #352b3bdarkslategray | #c8b6d3thistle |
| Destructive | #81180emaroon | #e62f1ecrimson |
| Destructive foreground | #f9ccc8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #382046darkslategray | #382046darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 6.50:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.38: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.082 0.019 315.617);
--muted: oklch(0.958 0.009 313.55);
--muted-foreground: oklch(0.454 0.022 313.304);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.019 315.617);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.019 315.617);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.293 0.074 311.865);
--primary-foreground: oklch(0.818 0.06 313.158);
--secondary: oklch(0.914 0.004 313.577);
--secondary-foreground: oklch(0.402 0.014 313.398);
--accent: oklch(0.834 0.024 313.432);
--accent-foreground: oklch(0.308 0.03 313.005);
--destructive: oklch(0.392 0.141 29.888);
--destructive-foreground: oklch(0.883 0.051 24.243);
--ring: oklch(0.293 0.074 311.865);
--chart-1: oklch(0.293 0.074 311.865);
--chart-2: oklch(0.914 0.004 313.577);
--chart-3: oklch(0.834 0.024 313.432);
--chart-4: oklch(0.937 0.003 313.586);
--chart-5: oklch(0.292 0.079 311.685);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.017 315.383);
--foreground: oklch(0.975 0.004 313.581);
--muted: oklch(0.152 0.014 313.046);
--muted-foreground: oklch(0.715 0.02 313.434);
--popover: oklch(0.083 0.017 315.383);
--popover-foreground: oklch(0.975 0.004 313.581);
--card: oklch(0.083 0.017 315.383);
--card-foreground: oklch(0.975 0.004 313.581);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.293 0.074 311.865);
--primary-foreground: oklch(0.818 0.06 313.158);
--secondary: oklch(0.186 0.016 313.064);
--secondary-foreground: oklch(0.727 0.047 313.213);
--accent: oklch(0.272 0.043 312.598);
--accent-foreground: oklch(0.8 0.045 313.257);
--destructive: oklch(0.6 0.22 29.978);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.293 0.074 311.865);
--chart-1: oklch(0.293 0.074 311.865);
--chart-2: oklch(0.186 0.016 313.064);
--chart-3: oklch(0.272 0.043 312.598);
--chart-4: oklch(0.217 0.022 312.992);
--chart-5: oklch(0.292 0.079 311.685);
}