You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look in the relevant theme files (e.g., `colorPalette*.ts`, `global/`, `alias/`) to find tokens that map to the given value.
29
32
30
33
3.**Return the token name and usage:**
34
+
31
35
```tsx
32
36
// Instead of: color: '#0078d4'
33
37
// Use:
34
38
import { tokens } from'@fluentui/react-theme';
35
-
color: tokens.colorBrandBackground
39
+
color: tokens.colorBrandBackground;
36
40
```
37
41
38
42
4.**If no exact match exists**, suggest the closest semantic token and explain the difference. Refer to [docs/architecture/design-tokens.md](docs/architecture/design-tokens.md) for token categories.
Copy file name to clipboardExpand all lines: .agents/skills/v9-component/SKILL.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,22 @@ Create a new v9 component named **$ARGUMENTS** following the exact patterns in [
15
15
1.**Determine the package path.** If creating inside an existing package, use that path. If creating a new package, the path is `packages/react-components/react-<lowercase-name>/library/src/`.
16
16
17
17
2.**Read an existing well-structured component** for reference. Good examples:
0 commit comments