Parser is a shadcn/ui theme built around a muted red primary color (#b99083) with muted yellow accents (#b9ab83). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#b99083) on a red-tinted background (#0e0807).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0807black |
| Foreground | #110703black | #ffffffwhite |
| Card | #ffffffwhite | #0e0807black |
| Card foreground | #110703black | #ffffffwhite |
| Popover | #ffffffwhite | #0e0807black |
| Popover foreground | #110703black | #ffffffwhite |
| Primary | #b99083rosybrown | #b99083rosybrown |
| Primary foreground | #070404black | #070404black |
| Secondary | #b98391rosybrown | #b98391rosybrown |
| Secondary foreground | #070404black | #070404black |
| Muted | #f2e3e7mistyrose | #1c0d11black |
| Muted foreground | #674c53dimgray | #b398a0rosybrown |
| Accent | #b9ab83darkkhaki | #b9ab83darkkhaki |
| Accent foreground | #070604black | #070604black |
| Destructive | #ae0a0afirebrick | #f11313red |
| Destructive foreground | #feececlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b99083rosybrown | #b99083rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 6.18:1 | AA |
| Accent | 8.87:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.10:1 | AAA |
| Accent | 8.87:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Parser in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.023 44.787);
--muted: oklch(0.929 0.017 359.308);
--muted-foreground: oklch(0.447 0.038 1.094);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.023 44.787);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.023 44.787);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.688 0.054 37.596);
--primary-foreground: oklch(0.114 0.007 40.869);
--secondary: oklch(0.668 0.069 1.622);
--secondary-foreground: oklch(0.111 0.009 358.714);
--accent: oklch(0.743 0.057 90.426);
--accent-foreground: oklch(0.12 0.007 92.877);
--destructive: oklch(0.474 0.189 28.659);
--destructive-foreground: oklch(0.957 0.02 17.503);
--ring: oklch(0.688 0.054 37.596);
--chart-1: oklch(0.688 0.054 37.596);
--chart-2: oklch(0.668 0.069 1.622);
--chart-3: oklch(0.743 0.057 90.426);
--chart-4: oklch(0.695 0.063 1.269);
--chart-5: oklch(0.687 0.06 37.603);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.011 40.499);
--foreground: oklch(1 0 180);
--muted: oklch(0.182 0.027 2.828);
--muted-foreground: oklch(0.707 0.033 0.087);
--popover: oklch(0.143 0.011 40.499);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.011 40.499);
--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.688 0.054 37.596);
--primary-foreground: oklch(0.114 0.007 40.869);
--secondary: oklch(0.668 0.069 1.622);
--secondary-foreground: oklch(0.111 0.009 358.714);
--accent: oklch(0.743 0.057 90.426);
--accent-foreground: oklch(0.12 0.007 92.877);
--destructive: oklch(0.607 0.242 28.658);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.688 0.054 37.596);
--chart-1: oklch(0.688 0.054 37.596);
--chart-2: oklch(0.668 0.069 1.622);
--chart-3: oklch(0.743 0.057 90.426);
--chart-4: oklch(0.695 0.063 1.269);
--chart-5: oklch(0.687 0.06 37.603);
}