← Back to list

mai-ui-iconography-and-assets
by bradsingley
My clone repository
⭐ 0🍴 0📅 Jan 22, 2026
SKILL.md
name: mai-ui-iconography-and-assets description: Source Fluent icons, manage imagery placeholders, and keep MAI UI asset usage compliant. metadata: author: yu.he@microsoft.com version: "1.0"
Load this skill whenever a design requires icons, logos, or imagery decisions.
Icon rules
- Only use
@fluentui/svg-iconsassets. - Icons must remain monochrome and inherit semantic color tokens.
- Size icons using 4px increments (16, 20, 24, 28, 32, 48px max).
Extraction steps
- Install the icons package if it is not already present:
npm install @fluentui/svg-icons. - Run the helper script to print the
dattribute (no manual copy/paste required):
node ./skills/mai-ui-iconography-and-assets/scripts/get-fluent-icon-path.mjs --icon heart --size 20 --variant regular
- Inline the returned path data inside MAI components that accept SVG slots or use the icon component if one exists.
cat node_modules/@fluentui/svg-icons/icons/heart_20_regular.svg
Do / Don’t
- ✅ Reference icons via semantic tokens (e.g.,
color: var(--colorIconPrimary)) - ✅ Keep stroke widths untouched
- ❌ Use emojis or hand-drawn paths
- ❌ Alter geometry to fake new icons
Exceptions
- Official brand logos are allowed when brand recognition is essential; store them in your repo’s
assets/directory and document licensing constraints.
Imagery guidance
- When the brief requires imagery but none is provided, use
https://picsum.photos/<width>/<height>with a stable seed query to keep previews deterministic. - Maintain consistent aspect ratios across responsive breakpoints.
- Supply descriptive
alttext communicating intent. - Use the placeholder generator to keep size/seed metadata consistent across docs and PRs:
The script returns a JSON blob containing the Picsum URL and recommended alt text.node ./skills/mai-ui-iconography-and-assets/scripts/seeded-placeholder.mjs --width 960 --height 540 --seed marketing-hero --intent "marketing dashboard"
Asset organization
- Check assets into version control under
assets/orpublic/(depending on framework conventions). - Keep an index file (e.g.,
assets/README.md) listing sources, usage rights, and last refresh date. - Reference fonts from
skills/mai-theme-copilot/fonts/(or the active theme’s font bundle) when typography assets are requested; reuse rather than duplicating binaries.
Script reference
scripts/get-fluent-icon-path.mjs: extracts the official FluentUI SVG path for a given icon/size/variant.scripts/seeded-placeholder.mjs: produces deterministic Picsum URLs plus descriptivealttext, ensuring placeholder imagery remains consistent across iterations.
Related skills
mai-ui-foundationsto align typography + tokens before assigning icon colorsmai-ui-components-and-patternsfor selecting the component slots that host these icons or images
Score
Total Score
40/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon