Beginner is a shadcn/ui theme built around a muted deep purple primary color (#563854) with muted deep green accents (#38563b). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the muted deep purple primary (#563854) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #000000black |
| Foreground | #090108black | #fdfbfdsnow |
| Card | #fcf3fblavenderblush | #030303black |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fcf3fblavenderblush | #030303black |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #563854darkslategray | #563854darkslategray |
| Primary foreground | #e7dae6gainsboro | #e7dae6gainsboro |
| Secondary | #38563bdarkslategray | #38563bdarkslategray |
| Secondary foreground | #dae7dbgainsboro | #dae7dbgainsboro |
| Muted | #dfe7e0gainsboro | #182019black |
| Muted foreground | #516153dimgray | #9eae9fdarkgray |
| Accent | #38563bdarkslategray | #38563bdarkslategray |
| Accent foreground | #dae7dbgainsboro | #dae7dbgainsboro |
| Destructive | #7b2b09saddlebrown | #f06f38tomato |
| Destructive foreground | #facfbdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #563854darkslategray | #563854darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 5.22:1 | AA |
| Accent | 6.37:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 20.39:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 7.15:1 | AAA |
| Accent | 6.37:1 | AA |
| Destructive | 7.03:1 | AAA |
Paste this into your globals.css to use Beginner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 328.159);
--foreground: oklch(0.106 0.033 329.809);
--muted: oklch(0.92 0.013 147.917);
--muted-foreground: oklch(0.475 0.031 147.363);
--popover: oklch(0.973 0.014 328.208);
--popover-foreground: oklch(0.084 0.026 329.809);
--card: oklch(0.973 0.014 328.208);
--card-foreground: oklch(0.084 0.026 329.809);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.388 0.06 329.566);
--primary-foreground: oklch(0.902 0.021 328.305);
--secondary: oklch(0.423 0.058 146.498);
--secondary-foreground: oklch(0.914 0.021 147.821);
--accent: oklch(0.423 0.058 146.498);
--accent-foreground: oklch(0.914 0.021 147.821);
--destructive: oklch(0.404 0.119 40.064);
--destructive-foreground: oklch(0.887 0.055 44.463);
--ring: oklch(0.388 0.06 329.566);
--chart-1: oklch(0.388 0.06 329.566);
--chart-2: oklch(0.423 0.058 146.498);
--chart-3: oklch(0.423 0.058 146.498);
--chart-4: oklch(0.453 0.063 146.474);
--chart-5: oklch(0.387 0.068 329.762);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.003 328.098);
--muted: oklch(0.233 0.018 147.223);
--muted-foreground: oklch(0.733 0.028 147.661);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.388 0.06 329.566);
--primary-foreground: oklch(0.902 0.021 328.305);
--secondary: oklch(0.423 0.058 146.498);
--secondary-foreground: oklch(0.914 0.021 147.821);
--accent: oklch(0.423 0.058 146.498);
--accent-foreground: oklch(0.914 0.021 147.821);
--destructive: oklch(0.688 0.173 41.98);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.388 0.06 329.566);
--chart-1: oklch(0.388 0.06 329.566);
--chart-2: oklch(0.423 0.058 146.498);
--chart-3: oklch(0.423 0.058 146.498);
--chart-4: oklch(0.453 0.063 146.474);
--chart-5: oklch(0.387 0.068 329.762);
}