Add diagram and pattern glyphs as currentColor SVG components so a parent text class can recolor them.

This commit is contained in:
adilallo committed 2026-11-12 17:50:45 -07:00
1 parent 9a9358ad46
commit bf9ee79c9f
44 files changed
+995

No files matched your search

+2
View File
@@ -208,6 +208,8 @@ Full folder map and PNG audit: **[guides/static-assets.md](./guides/static-asset
- **Imports:** use **`asset/icon`** (named **`Icon`** component), **`asset/Logo`**, **`asset/Avatar`**, etc.—same rule as **`buttons/Button`**, no top-level **`asset/index.tsx`** barrel.
- **`asset/icon/`** — **`Icon.tsx`** maps icon names to SVG modules beside it (`arrow_back.svg`, …); **`index.tsx`** re-exports **`Icon`** and **`ICON_NAME_OPTIONS`** / types.
- **`asset/DiagramGlyph/`** — Figma [**Asset / Diagram Glyph**](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=25359-65776) (25359:65776). 17 inline SVGs on a 48 viewBox; paths use `currentColor`.
- **`asset/PatternGlyph/`** — Figma [**Asset / Pattern Glyph**](https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=25449-199) (25449:199). 18 zine pattern marks; same `currentColor` contract.
- **`public/assets/`** — lowercase kebab-case folders: **`icons/`**, **`logos/`** (incl. **`logos/partners/`**), **`marketing/`**, **`case-study/`**, **`shapes/`**, **`vector/`**, **`template-mark/`**, **`share/`**. Use helpers in **`lib/assetUtils.ts`** (`ASSETS`, `partnerLogoPath`, `vectorMarkPath`, …).
- **`public/assets/vector/<slug>.svg`** — Figma Asset / Vector marks (same kebab **`slug`** convention as **`public/assets/template-mark/`**). Use **`vectorMarkPath(slug)`**.
- **`asset/Logo`** — Community Rule **`Logo`** component (folder PascalCase, like **`Avatar/`**); brand SVG at **`public/assets/logos/community-rule.svg`**.