Mealy is a shadcn/ui theme built around a light green primary color (#dbf0bc) with light green accents (#c1f0bc). The light mode uses a neutral background (#fbfdf6). Dark mode keeps the light green primary (#dbf0bc) on a green-tinted background (#0b0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf6snow | #0b0f05black |
| Foreground | #030401black | #f8faf5whitesmoke |
| Card | #f8fdf2ivory | #0e1307black |
| Card foreground | #000000black | #fafcf8snow |
| Popover | #fbfdf6snow | #0b0f05black |
| Popover foreground | #030401black | #f8faf5whitesmoke |
| Primary | #dbf0bcpalegoldenrod | #dbf0bcpalegoldenrod |
| Primary foreground | #0c1104black | #0c1104black |
| Secondary | #f0ebbcwheat | #f0ebbcwheat |
| Secondary foreground | #110f04black | #110f04black |
| Muted | #f2f0e3linen | #1c1a0dblack |
| Muted foreground | #42413edarkslategray | #c1c1bdsilver |
| Accent | #c1f0bclightgrey | #c1f0bclightgrey |
| Accent foreground | #051104black | #051104black |
| Destructive | #9b0b03darkred | #fb4137tomato |
| Destructive foreground | #fed4d2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dbf0bcpalegoldenrod | #dbf0bcpalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 15.71:1 | AAA |
| Secondary button | 15.84:1 | AAA |
| Muted text | 8.93:1 | AAA |
| Accent | 15.16:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 18.40:1 | AAA |
| Text on card | 18.26:1 | AAA |
| Primary button | 15.71:1 | AAA |
| Secondary button | 15.84:1 | AAA |
| Muted text | 9.66:1 | AAA |
| Accent | 15.16:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Mealy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 124.485);
--foreground: oklch(0.102 0.016 123.616);
--muted: oklch(0.954 0.017 101.566);
--muted-foreground: oklch(0.376 0.006 101.528);
--popover: oklch(0.991 0.01 124.485);
--popover-foreground: oklch(0.102 0.016 123.616);
--card: oklch(0.987 0.015 124.557);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.928 0.072 125.498);
--primary-foreground: oklch(0.166 0.029 125.426);
--secondary: oklch(0.933 0.061 102.235);
--secondary-foreground: oklch(0.168 0.025 103.789);
--accent: oklch(0.91 0.085 142.241);
--accent-foreground: oklch(0.16 0.035 140.875);
--destructive: oklch(0.437 0.174 29.708);
--destructive-foreground: oklch(0.906 0.047 21.611);
--ring: oklch(0.928 0.072 125.498);
--chart-1: oklch(0.928 0.072 125.498);
--chart-2: oklch(0.933 0.061 102.235);
--chart-3: oklch(0.91 0.085 142.241);
--chart-4: oklch(0.945 0.05 102.069);
--chart-5: oklch(0.93 0.075 125.549);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.022 125.219);
--foreground: oklch(0.982 0.007 124.444);
--muted: oklch(0.216 0.023 102.706);
--muted-foreground: oklch(0.81 0.005 101.381);
--popover: oklch(0.161 0.022 125.219);
--popover-foreground: oklch(0.982 0.007 124.444);
--card: oklch(0.177 0.025 126.148);
--card-foreground: oklch(0.988 0.005 124.41);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.928 0.072 125.498);
--primary-foreground: oklch(0.166 0.029 125.426);
--secondary: oklch(0.933 0.061 102.235);
--secondary-foreground: oklch(0.168 0.025 103.789);
--accent: oklch(0.91 0.085 142.241);
--accent-foreground: oklch(0.16 0.035 140.875);
--destructive: oklch(0.653 0.223 28.176);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.928 0.072 125.498);
--chart-1: oklch(0.928 0.072 125.498);
--chart-2: oklch(0.933 0.061 102.235);
--chart-3: oklch(0.91 0.085 142.241);
--chart-4: oklch(0.945 0.05 102.069);
--chart-5: oklch(0.93 0.075 125.549);
}