icons
Conventions for picking, sizing, and bundling Fluent icons. USE WHEN: adding or changing an icon in a `*.tsx` file, or picking an icon name.
- License 许可
- MIT
- 所属仓库
- github/replica
- 最近更新
- 2026-11-14
- Stars
- ★ 267
- Forks
- 33
01 前言 Front Matter
- name
- icons
- description
- Conventions for picking, sizing, and bundling Fluent icons. USE WHEN: adding or changing an icon in a `*.tsx` file, or picking an icon name.
03 SKILL.md 正文
Icon Usage
When looking for icon names,
- Prefer searching the installed
@fluentui/react-iconsexports so the names match the version the app actually uses. Run this from this app's directory, replacing the search expression with the concept you need:
node -e "const icons = require('@fluentui/react-icons'); console.log(Object.keys(icons).filter(name => /document.*add/i.test(name) && !/\d/.test(name) && /(?:Regular|Filled)$/.test(name)).join('\n'));"
The example searches document-add icons, excludes numbered-size exports, and keeps filled/regular styles.
- As an alternate, search the icon repo names for discovery or visual previews:
https://github.com/microsoft/fluentui-system-icons/blob/main/icons_regular.mdorhttps://github.com/microsoft/fluentui-system-icons/blob/main/icons_filled.md. - After choosing an icon through an alternate method, verify that its exact export name exists in the installed
@fluentui/react-iconspackage; the online catalog may include icons from newer versions.
Prefer using the unsized icons without the number suffix, e.g. TextBulletListTreeFilled instead of TextBulletListTree20Filled. This allows the icon to scale dynamically within buttons and other components.
When adding icons to Fluent components, use the bundleIcon utility from @fluentui/react-icons to combine filled and regular icons. For example:
const TraceIcon = bundleIcon(TextBulletListTreeFilled, TextBulletListTreeRegular);
<Button icon={<TraceIcon />} />;
04 同仓库更多 Skills
visual-design-review
Reviews page hierarchy, grouping, density, actions and state design using consumer-owned product and design-system guidance. Use when asked for a visual design review, page critique or whether a new page communicates its task clearly.
setup-skills
Configures shared sources and drafts context with independent writers. Plain/fresh setup offers installation of user-named packages and reuses built-in browser capabilities, adding browser tooling only for an evidenced required-check gap. Use for setup, source repair, writing context or refreshing drafts. Configure-only skips tooling and authoring; installations and activation require separate approval.
review-hub-feedback
Review Hub feedback for reusable design themes through discovery, independent judging and synthesis. No diagnosis or optimization.
responsive-audit
Audits UI layout, overflow and navigation across product-defined viewports using consumer context and browser tools. Use when asked to check responsiveness, test mobile layout or audit breakpoint behavior.
prototype-controls
Create and wire Replica prototype controls. Use when asked to add or change dropdowns, sliders, input fields, toggles or action buttons that configure variants, scenarios, visible UI, app state or data sources, even without canvas terminology. Covers declarations, typed bindings, defaults, conditions, resets and actions. Product UI form fields and filters alone belong to create-prototype.
product-design
Guides product-design decisions using the consuming repository's design-system, product, and repository context. Use when designing UI, choosing layout or navigation, handling states and forms, messaging, disclosure, onboarding, visualization, copy, delete, filter, or search interactions. Triggers on 'design guidance', 'how to design', 'UI pattern', 'product design', 'scenario pattern', 'confirmation dialog', 'delete flow', 'copy to clipboard', 'filter', and 'search'.