Jackfruit is a shadcn/ui theme built around a muted green primary color (#97b894) with muted purple accents (#b494b8). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the muted green primary (#97b894) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #020401black |
| Foreground | #030802black | #ffffffwhite |
| Card | #f5faf5whitesmoke | #030703black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #f9fcf8mintcream | #020401black |
| Popover foreground | #030802black | #ffffffwhite |
| Primary | #97b894darkseagreen | #97b894darkseagreen |
| Primary foreground | #0b0f0ablack | #0b0f0ablack |
| Secondary | #b494b8darkgray | #b494b8darkgray |
| Secondary foreground | #0f0a0fblack | #0f0a0fblack |
| Muted | #ebd9eclavender | #241326black |
| Muted foreground | #453f46darkslategray | #bfb9c0silver |
| Accent | #b494b8darkgray | #b494b8darkgray |
| Accent foreground | #0f0a0fblack | #0f0a0fblack |
| Destructive | #cd240afirebrick | #db260afirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #97b894darkseagreen | #97b894darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 8.80:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 5.47:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 8.80:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Jackfruit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 142.605);
--foreground: oklch(0.122 0.021 141.03);
--muted: oklch(0.906 0.032 322.765);
--muted-foreground: oklch(0.376 0.014 322.771);
--popover: oklch(0.987 0.005 142.605);
--popover-foreground: oklch(0.122 0.021 141.03);
--card: oklch(0.98 0.008 142.594);
--card-foreground: oklch(0.097 0.017 141.03);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.748 0.061 142.289);
--primary-foreground: oklch(0.163 0.013 142.31);
--secondary: oklch(0.707 0.063 322.968);
--secondary-foreground: oklch(0.154 0.013 322.953);
--accent: oklch(0.707 0.063 322.968);
--accent-foreground: oklch(0.154 0.013 322.953);
--destructive: oklch(0.546 0.205 31.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.748 0.061 142.289);
--chart-1: oklch(0.748 0.061 142.289);
--chart-2: oklch(0.707 0.063 322.968);
--chart-3: oklch(0.707 0.063 322.968);
--chart-4: oklch(0.733 0.057 322.927);
--chart-5: oklch(0.752 0.07 142.242);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.014 141.277);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.044 323.333);
--muted-foreground: oklch(0.794 0.011 322.684);
--popover: oklch(0.096 0.014 141.277);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.018 141.277);
--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.748 0.061 142.289);
--primary-foreground: oklch(0.163 0.013 142.31);
--secondary: oklch(0.707 0.063 322.968);
--secondary-foreground: oklch(0.154 0.013 322.953);
--accent: oklch(0.707 0.063 322.968);
--accent-foreground: oklch(0.154 0.013 322.953);
--destructive: oklch(0.574 0.217 31.243);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.748 0.061 142.289);
--chart-1: oklch(0.748 0.061 142.289);
--chart-2: oklch(0.707 0.063 322.968);
--chart-3: oklch(0.707 0.063 322.968);
--chart-4: oklch(0.733 0.057 322.927);
--chart-5: oklch(0.752 0.07 142.242);
}