Pastel is a shadcn/ui theme built around a red primary color (#703b33) with orange accents (#705a33). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#703b33) on a neutral background (#080302).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #080302black |
| Foreground | #0e0302black | #faf5f5whitesmoke |
| Card | #fefbfbsnow | #080302black |
| Card foreground | #0e0302black | #faf5f5whitesmoke |
| Popover | #fefbfbsnow | #080302black |
| Popover foreground | #0e0302black | #faf5f5whitesmoke |
| Primary | #703b33saddlebrown | #703b33saddlebrown |
| Primary foreground | #f2e5e3mistyrose | #f2e5e3mistyrose |
| Secondary | #70334abrown | #70334abrown |
| Secondary foreground | #f2e3e9mistyrose | #f2e3e9mistyrose |
| Muted | #e4dcdfgainsboro | #231b1eblack |
| Muted foreground | #4d4246darkslategray | #bdb2b6silver |
| Accent | #705a33darkolivegreen | #705a33darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8b0f04darkred | #ed1b07red |
| Destructive foreground | #fdc8c4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #703b33saddlebrown | #703b33saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 6.58:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Pastel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 27.95);
--foreground: oklch(0.121 0.025 37.07);
--muted: oklch(0.903 0.009 352.876);
--muted-foreground: oklch(0.391 0.017 353.788);
--popover: oklch(0.991 0.003 27.95);
--popover-foreground: oklch(0.121 0.025 37.07);
--card: oklch(0.991 0.003 27.95);
--card-foreground: oklch(0.121 0.025 37.07);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.418 0.075 29.817);
--primary-foreground: oklch(0.932 0.015 28.017);
--secondary: oklch(0.41 0.089 358.609);
--secondary-foreground: oklch(0.93 0.018 353.123);
--accent: oklch(0.48 0.062 80.126);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.406 0.157 30.284);
--destructive-foreground: oklch(0.879 0.061 24.39);
--ring: oklch(0.418 0.075 29.817);
--chart-1: oklch(0.418 0.075 29.817);
--chart-2: oklch(0.41 0.089 358.609);
--chart-3: oklch(0.48 0.062 80.126);
--chart-4: oklch(0.436 0.096 358.693);
--chart-5: oklch(0.417 0.082 30.027);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.014 33.01);
--foreground: oklch(0.975 0.005 27.958);
--muted: oklch(0.231 0.014 354.197);
--muted-foreground: oklch(0.774 0.014 353.097);
--popover: oklch(0.109 0.014 33.01);
--popover-foreground: oklch(0.975 0.005 27.958);
--card: oklch(0.109 0.014 33.01);
--card-foreground: oklch(0.975 0.005 27.958);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.418 0.075 29.817);
--primary-foreground: oklch(0.932 0.015 28.017);
--secondary: oklch(0.41 0.089 358.609);
--secondary-foreground: oklch(0.93 0.018 353.123);
--accent: oklch(0.48 0.062 80.126);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.602 0.238 30.023);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.075 29.817);
--chart-1: oklch(0.418 0.075 29.817);
--chart-2: oklch(0.41 0.089 358.609);
--chart-3: oklch(0.48 0.062 80.126);
--chart-4: oklch(0.436 0.096 358.693);
--chart-5: oklch(0.417 0.082 30.027);
}