@nomiedge/icons
v0.1.1
Published
The Nomiedge Focus Line icon set — tree-shakeable, RSC-safe React components.
Downloads
41
Readme
@nomiedge/icons
The Nomiedge Focus Line icon set — 12 tree-shakeable, RSC-safe React components.
Usage
import { ArrowRight, Icon } from "@nomiedge/icons";
<ArrowRight />
<ArrowRight size={16} className="text-accent-9" />
<ArrowRight title="Continue" />
<Icon name="external-link" title="Opens in a new tab" />Adding an icon
- Draw the source at
src/svg/<kebab-name>.svg: viewBox0 0 24 24, live area within a 2px margin,stroke="currentColor"stroke-width="1.5"fill="none"(orfill="currentColor"only if a filled treatment is unavoidable — none of the current 12 need it). - Run
pnpm build:icons— regeneratessrc/icons/<kebab-name>.tsxandsrc/types.ts. Never hand-edit files undersrc/icons/. - Add the new icon to
src/index.tsxby hand: import the generated component, add it to theexport {…}list, and add it to theICONSrecord. Codegen does not touch this file — skipping this step leaves the icon ungenerated-but-unreachable, andICONS: Record<IconName, …>will failpnpm typecheckuntil it's added, which is exactly what catches a missed step. - Run
pnpm validate— fails on a disallowed color, wrong viewBox, or an orphaned source/output. - Run
pnpm test— add the new name toicons.test.ts'sALL_NAMESlist.
