Fruitful is a shadcn/ui theme built around a vivid blue primary color (#1c59d4) with vivid green accents (#59d41c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#1c59d4) on a neutral background (#040507).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040507black |
| Foreground | #03060dblack | #fcfcfdwhite |
| Card | #ffffffwhite | #040507black |
| Card foreground | #03060dblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #040507black |
| Popover foreground | #03060dblack | #fcfcfdwhite |
| Primary | #1c59d4royalblue | #1c59d4royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d41c59crimson | #d41c59crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ded4d7gainsboro | #2b2125darkslategray |
| Muted foreground | #686465dimgray | #9b9798darkgray |
| Accent | #59d41climegreen | #59d41climegreen |
| Accent foreground | #0d2004black | #0d2004black |
| Destructive | #963c08saddlebrown | #f2610dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c59d4royalblue | #1c59d4royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 5.10:1 | AA |
| Muted text | 4.02:1 | AA Large |
| Accent | 8.87:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 5.10:1 | AA |
| Muted text | 5.38:1 | AA |
| Accent | 8.87:1 | AAA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Fruitful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.12 0.02 255.191);
--muted: oklch(0.878 0.012 354.973);
--muted-foreground: oklch(0.507 0.006 354.902);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.12 0.02 255.191);
--card: oklch(1 0 180);
--card-foreground: oklch(0.12 0.02 255.191);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.505 0.2 262.124);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.565 0.213 9.867);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.77 0.232 138.468);
--accent-foreground: oklch(0.218 0.055 136.146);
--destructive: oklch(0.474 0.134 43.903);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.505 0.2 262.124);
--chart-1: oklch(0.505 0.2 262.124);
--chart-2: oklch(0.565 0.213 9.867);
--chart-3: oklch(0.77 0.232 138.468);
--chart-4: oklch(0.592 0.224 9.985);
--chart-5: oklch(0.505 0.206 262.15);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.008 260.472);
--foreground: oklch(0.992 0.001 264.547);
--muted: oklch(0.262 0.016 356.312);
--muted-foreground: oklch(0.68 0.005 354.806);
--popover: oklch(0.111 0.008 260.472);
--popover-foreground: oklch(0.992 0.001 264.547);
--card: oklch(0.111 0.008 260.472);
--card-foreground: oklch(0.992 0.001 264.547);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.505 0.2 262.124);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.565 0.213 9.867);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.77 0.232 138.468);
--accent-foreground: oklch(0.218 0.055 136.146);
--destructive: oklch(0.67 0.195 42.868);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.505 0.2 262.124);
--chart-1: oklch(0.505 0.2 262.124);
--chart-2: oklch(0.565 0.213 9.867);
--chart-3: oklch(0.77 0.232 138.468);
--chart-4: oklch(0.592 0.224 9.985);
--chart-5: oklch(0.505 0.206 262.15);
}