Pastel is a shadcn/ui theme built around a green primary color (#637c36) with green accents (#407c36). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#637c36) on a green-tinted background (#0b0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0d07black |
| Foreground | #090c03black | #ffffffwhite |
| Card | #fcfcfcsnow | #0e1109black |
| Card foreground | #060802black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0d07black |
| Popover foreground | #090c03black | #ffffffwhite |
| Primary | #637c36darkolivegreen | #637c36darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7c7336olivedrab | #7c7336olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1f0e4linen | #1b190eblack |
| Muted foreground | #65624edimgray | #b1ae9adarkgray |
| Accent | #407c36darkolivegreen | #407c36darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d7120ffirebrick | #f0302dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #637c36darkolivegreen | #637c36darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 4.82:1 | AA |
| Muted text | 5.36:1 | AA |
| Accent | 5.05:1 | AA |
| Destructive | 5.28:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 4.82:1 | AA |
| Muted text | 7.85:1 | AAA |
| Accent | 5.05:1 | AA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Pastel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.023 122.73);
--muted: oklch(0.952 0.016 99.578);
--muted-foreground: oklch(0.492 0.031 100.166);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.023 122.73);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.129 0.02 122.375);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.55 0.101 126.255);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.55 0.082 100.685);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.529 0.12 141.083);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.556 0.221 28.892);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.55 0.101 126.255);
--chart-1: oklch(0.55 0.101 126.255);
--chart-2: oklch(0.55 0.082 100.685);
--chart-3: oklch(0.529 0.12 141.083);
--chart-4: oklch(0.583 0.087 100.682);
--chart-5: oklch(0.557 0.107 126.493);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.014 123.671);
--foreground: oklch(1 0 180);
--muted: oklch(0.213 0.021 100.521);
--muted-foreground: oklch(0.749 0.028 99.865);
--popover: oklch(0.156 0.014 123.671);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.17 0.016 124.394);
--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.55 0.101 126.255);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.55 0.082 100.685);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.529 0.12 141.083);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.621 0.226 27.569);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.55 0.101 126.255);
--chart-1: oklch(0.55 0.101 126.255);
--chart-2: oklch(0.55 0.082 100.685);
--chart-3: oklch(0.529 0.12 141.083);
--chart-4: oklch(0.583 0.087 100.682);
--chart-5: oklch(0.557 0.107 126.493);
}