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
Copy file name to clipboardExpand all lines: .claude/skills/rezi-add-widget/SKILL.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,8 @@ Use this skill when:
56
56
57
57
6.**Add design system support** (if the widget is interactive):
58
58
- Register the new widget kind in `packages/core/src/widgets/protocol.ts`
59
-
- Add DS props as needed (`dsVariant`, `dsTone`, `dsSize`) to the widget's props type
60
-
- Wire recipe-based rendering so DS styling auto-activates when `ThemeDefinition` semantic tokens are available (no `dsVariant` required for baseline styling)
59
+
- Add optional DS props as needed (`dsVariant?`, `dsTone?`, `dsSize?`) for advanced customization
60
+
- Wire recipe-based rendering so baseline DS styling auto-activates when `ThemeDefinition` semantic tokens are available; DS props override defaults when specified
61
61
- See `docs/guide/widget-authoring.md` for the full pattern
62
62
63
63
7.**Export** both props type and factory from `packages/core/src/index.ts`
Copy file name to clipboardExpand all lines: .codex/skills/rezi-add-widget/SKILL.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,8 @@ Use this skill when:
56
56
57
57
6.**Add design system support** (if the widget is interactive):
58
58
- Register the new widget kind in `packages/core/src/widgets/protocol.ts`
59
-
- Add DS props as needed (`dsVariant`, `dsTone`, `dsSize`) to the widget's props type
60
-
- Wire recipe-based rendering so DS styling auto-activates when `ThemeDefinition` semantic tokens are available (no `dsVariant` required for baseline styling)
59
+
- Add optional DS props as needed (`dsVariant?`, `dsTone?`, `dsSize?`) for advanced customization
60
+
- Wire recipe-based rendering so baseline DS styling auto-activates when `ThemeDefinition` semantic tokens are available; DS props override defaults when specified
61
61
- See `docs/guide/widget-authoring.md` for the full pattern
62
62
63
63
7.**Export** both props type and factory from `packages/core/src/index.ts`
0 commit comments