@financedistrict/apps-icons
v0.2.0
Published
Full-color SVG icon libraries for FD apps (logos). Tree-shakeable React components generated from Figma.
Readme
@financedistrict/apps-icons
Full-color SVG icon libraries for FD apps. Colors are baked in from Figma — no color/weight prop. Tree-shakeable React components.
import { ShopwareIcon } from "@financedistrict/apps-icons/logos";
<ShopwareIcon size={32} title="Shopware" />One library: /logos (storefront-platform logos). Network, token AND currency
marks all come from the separate @financedistrict/apps-web3icons package — see
ADR-0033 (networks/tokens) and ADR-0068 (currencies).
Props
size?: number | string— width & height (default 24). viewBox is 0 0 32 32.title?: string— accessible label (adds role="img" + ). Omit for decorative icons (aria-hidden).- plus any native
<svg>prop (className, style, onClick, …). Ref forwards to the<svg>.
Adding a new icon (manual — there is no committed generator)
- In Figma (file
zuahrKaTRfeamriRIvTLSg), export the symbol as SVG. - Keep only the
<g id="<SymbolName>">…</g>group (drop the section background rect/frame paths). - Optimize with SVGO (keep viewBox, prefix ids with the component name).
- Create
src/<library>/<Name>Icon.tsxfollowing an existing icon, pasting the optimized inner markup intoBODY. - Re-export it from
src/<library>/index.ts. It is picked up by the gallery story and test automatically.
