Jackfruit is a shadcn/ui theme built around a light violet primary color (#bdaeea) with neutral gray accents (#e5e4e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#bdaeea) on a violet-tinted background (#08060f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08060fblack |
| Foreground | #090514black | #fcfcfdwhite |
| Card | #ffffffwhite | #08060fblack |
| Card foreground | #090514black | #fcfcfdwhite |
| Popover | #ffffffwhite | #08060fblack |
| Popover foreground | #090514black | #fcfcfdwhite |
| Primary | #bdaeealightsteelblue | #bdaeealightsteelblue |
| Primary foreground | #241551midnightblue | #241551midnightblue |
| Secondary | #e5e4e7gainsboro | #252131darkslategray |
| Secondary foreground | #4a4752darkslategray | #bcb6cdsilver |
| Muted | #e7e4f1lavender | #110e1bblack |
| Muted foreground | #64626adimgray | #97959ddarkgray |
| Accent | #e5e4e7gainsboro | #252131darkslategray |
| Accent foreground | #4a4752darkslategray | #bcb6cdsilver |
| Destructive | #7c1a04maroon | #ed3207orangered |
| Destructive foreground | #fdc2b5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bdaeealightsteelblue | #bdaeealightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 4.80:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Jackfruit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.134 0.034 294.72);
--muted: oklch(0.925 0.018 297.482);
--muted-foreground: oklch(0.501 0.013 297.362);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.134 0.034 294.72);
--card: oklch(1 0 180);
--card-foreground: oklch(0.134 0.034 294.72);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.784 0.086 295.828);
--primary-foreground: oklch(0.258 0.104 288.382);
--secondary: oklch(0.92 0.005 297.73);
--secondary-foreground: oklch(0.405 0.018 297.03);
--accent: oklch(0.92 0.005 297.73);
--accent-foreground: oklch(0.405 0.018 297.03);
--destructive: oklch(0.384 0.136 33.455);
--destructive-foreground: oklch(0.863 0.07 32.916);
--ring: oklch(0.784 0.086 295.828);
--chart-1: oklch(0.784 0.086 295.828);
--chart-2: oklch(0.92 0.005 297.73);
--chart-3: oklch(0.92 0.005 297.73);
--chart-4: oklch(0.944 0.003 297.761);
--chart-5: oklch(0.781 0.09 295.712);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.022 296.622);
--foreground: oklch(0.992 0.001 297.804);
--muted: oklch(0.174 0.027 294.935);
--muted-foreground: oklch(0.674 0.012 297.506);
--popover: oklch(0.129 0.022 296.622);
--popover-foreground: oklch(0.992 0.001 297.804);
--card: oklch(0.129 0.022 296.622);
--card-foreground: oklch(0.992 0.001 297.804);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.784 0.086 295.828);
--primary-foreground: oklch(0.258 0.104 288.382);
--secondary: oklch(0.259 0.029 295.772);
--secondary-foreground: oklch(0.789 0.033 297.075);
--accent: oklch(0.259 0.029 295.772);
--accent-foreground: oklch(0.789 0.033 297.075);
--destructive: oklch(0.614 0.226 32.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.784 0.086 295.828);
--chart-1: oklch(0.784 0.086 295.828);
--chart-2: oklch(0.259 0.029 295.772);
--chart-3: oklch(0.259 0.029 295.772);
--chart-4: oklch(0.287 0.034 295.673);
--chart-5: oklch(0.781 0.09 295.712);
}