Pastel is a shadcn/ui theme built around a deep violet primary color (#140c1d) with deep green accents (#0c1d14). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#140c1d) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #050208black | #faf9fbghostwhite |
| Card | #ffffffwhite | #030104black |
| Card foreground | #050208black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #030104black |
| Popover foreground | #050208black | #faf9fbghostwhite |
| Primary | #140c1dblack | #140c1dblack |
| Primary foreground | #ac8ccfmediumpurple | #ac8ccfmediumpurple |
| Secondary | #1d140cblack | #1d140cblack |
| Secondary foreground | #cfac8ctan | #cfac8ctan |
| Muted | #f4f0eblinen | #140f0bblack |
| Muted foreground | #665b52dimgray | #ada399darkgray |
| Accent | #0c1d14black | #0c1d14black |
| Accent foreground | #48ad79mediumseagreen | #48ad79mediumseagreen |
| Destructive | #b9390efirebrick | #da4310orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #140c1dblack | #140c1dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 6.27:1 | AA |
| Destructive | 5.75:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 4.38: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.099 0.026 309.618);
--muted: oklch(0.956 0.008 65.872);
--muted-foreground: oklch(0.48 0.02 65.421);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.026 309.618);
--card: oklch(1 0 180);
--card-foreground: oklch(0.099 0.026 309.618);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.175 0.035 305.295);
--primary-foreground: oklch(0.694 0.102 306.042);
--secondary: oklch(0.2 0.021 64.288);
--secondary-foreground: oklch(0.768 0.06 64.842);
--accent: oklch(0.212 0.029 160.072);
--accent-foreground: oklch(0.673 0.122 157.953);
--destructive: oklch(0.529 0.172 36.419);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.175 0.035 305.295);
--chart-1: oklch(0.175 0.035 305.295);
--chart-2: oklch(0.2 0.021 64.288);
--chart-3: oklch(0.212 0.029 160.072);
--chart-4: oklch(0.236 0.027 63.987);
--chart-5: oklch(0.174 0.038 305.074);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.014 309.01);
--foreground: oklch(0.983 0.003 307.748);
--muted: oklch(0.173 0.012 65.046);
--muted-foreground: oklch(0.721 0.018 65.652);
--popover: oklch(0.083 0.014 309.01);
--popover-foreground: oklch(0.983 0.003 307.748);
--card: oklch(0.083 0.014 309.01);
--card-foreground: oklch(0.983 0.003 307.748);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.175 0.035 305.295);
--primary-foreground: oklch(0.694 0.102 306.042);
--secondary: oklch(0.2 0.021 64.288);
--secondary-foreground: oklch(0.768 0.06 64.842);
--accent: oklch(0.212 0.029 160.072);
--accent-foreground: oklch(0.673 0.122 157.953);
--destructive: oklch(0.596 0.196 36.229);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.175 0.035 305.295);
--chart-1: oklch(0.175 0.035 305.295);
--chart-2: oklch(0.2 0.021 64.288);
--chart-3: oklch(0.212 0.029 160.072);
--chart-4: oklch(0.236 0.027 63.987);
--chart-5: oklch(0.174 0.038 305.074);
}