Raisin is a shadcn/ui theme built around a pink primary color (#bf408a) with neutral gray accents (#dedede). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the pink primary (#bf408a) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #070305black |
| Foreground | #11040bblack | #fbf9fasnow |
| Card | #fdfcfdwhite | #070305black |
| Card foreground | #11040bblack | #fbf9fasnow |
| Popover | #fdfcfdwhite | #070305black |
| Popover foreground | #11040bblack | #fbf9fasnow |
| Primary | #bf408amediumvioletred | #bf408amediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dededegainsboro | #372a31darkslategray |
| Secondary foreground | #454545darkslategray | #d0c2cbthistle |
| Muted | #ece4e4linen | #1b1318black |
| Muted foreground | #4f4545darkslategray | #bab0b6silver |
| Accent | #dededegainsboro | #372a31darkslategray |
| Accent foreground | #454545darkslategray | #d0c2cbthistle |
| Destructive | #b7390bfirebrick | #e3460dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bf408amediumvioletred | #bf408amediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 4.86:1 | AA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.83:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 4.86:1 | AA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Raisin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 341.063);
--foreground: oklch(0.134 0.033 343.447);
--muted: oklch(0.925 0.009 17.319);
--muted-foreground: oklch(0.4 0.014 17.758);
--popover: oklch(0.991 0.002 341.063);
--popover-foreground: oklch(0.134 0.033 343.447);
--card: oklch(0.991 0.002 341.063);
--card-foreground: oklch(0.134 0.033 343.447);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.573 0.179 348.257);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.9 0 188.746);
--accent-foreground: oklch(0.39 0 165.964);
--destructive: oklch(0.525 0.17 36.991);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.573 0.179 348.257);
--chart-1: oklch(0.573 0.179 348.257);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.9 0 188.746);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.575 0.188 348.7);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.015 341.072);
--foreground: oklch(0.983 0.003 341.089);
--muted: oklch(0.199 0.016 342.829);
--muted-foreground: oklch(0.767 0.014 341.447);
--popover: oklch(0.109 0.015 341.072);
--popover-foreground: oklch(0.983 0.003 341.089);
--card: oklch(0.109 0.015 341.072);
--card-foreground: oklch(0.983 0.003 341.089);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.573 0.179 348.257);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.303 0.022 342.653);
--secondary-foreground: oklch(0.829 0.019 341.541);
--accent: oklch(0.303 0.022 342.653);
--accent-foreground: oklch(0.829 0.019 341.541);
--destructive: oklch(0.614 0.201 36.703);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.573 0.179 348.257);
--chart-1: oklch(0.573 0.179 348.257);
--chart-2: oklch(0.303 0.022 342.653);
--chart-3: oklch(0.303 0.022 342.653);
--chart-4: oklch(0.332 0.025 342.705);
--chart-5: oklch(0.575 0.188 348.7);
}