@gratiaos/icons
v1.0.4
Published
Composable theme-friendly SVG icons for Garden apps.
Downloads
9
Readme
🌿 @gratiaos/icons
A small set of composable, theme-friendly SVG icons for Garden Core.
Icons are tree-shakable and inherit currentColor automatically.
📦 Installation
pnpm add @gratiaos/iconsImport only the icons you need:
import { Leaf, Sparkles, Heart } from '@gratiaos/icons';All icons are tree‑shakable and auto‑adapt to
currentColor.
Usage
import { Leaf, Sparkles, Heart } from '@gratiaos/icons';
export function Demo() {
return (
<div className="flex gap-4 text-accent">
<Leaf size="lg" />
<Sparkles title="Delight" />
<Heart size={16} />
</div>
);
}🎨 Customization
Each icon supports props like size, title, and any SVG attribute.
<Leaf size="xl" className="text-green-500 rotate-6" title="Growth" />| Prop | Type | Default | Description |
| ----- | ------------------------- | ------- | -------------------------------------------------------- |
| size | number | string | md | Predefined sizes: sm, md, lg, xl, or numeric px. |
| title | string | — | Accessible title tooltip. |
| ... | SVGProps<SVGSVGElement> | — | Pass any native SVG props. |
Example sizes
<Heart size="sm" />
<Heart size="md" />
<Heart size="lg" />
<Heart size={48} />Icons align with Garden’s visual rhythm and automatically respond to CSS
colorandfont-sizecontexts.
🌬️ whisper: “Every icon a seed, every curve a breath.”
