@canonical/design-system 0.43.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/data/apps/component/file_tree.ttl +1 -1
  2. package/data/apps/component/inline_panel.ttl +17 -0
  3. package/data/apps/component/key_value_pair.ttl +1 -1
  4. package/data/apps/{subcomponent → component}/log.ttl +1 -1
  5. package/data/apps/component/navigation.ttl +1 -1
  6. package/data/apps/component/notification.ttl +1 -1
  7. package/data/apps/component/side_navigation.ttl +50 -6
  8. package/data/apps/group/key_value_pairs.ttl +1 -1
  9. package/data/apps/group/notifications.ttl +1 -1
  10. package/data/apps/layout/application_layout.ttl +1 -1
  11. package/data/apps/layout/content_layout.ttl +2 -3
  12. package/data/apps/layout/empty_layout.ttl +1 -1
  13. package/data/apps/layout/empty_state.ttl +1 -1
  14. package/data/{apps_workplaceengineering/pattern/group_card.ttl → apps/layout/login_layout.ttl} +4 -5
  15. package/data/apps/layout/side_panel_form_layout.ttl +13 -0
  16. package/data/apps/pattern/action_bar.ttl +2 -2
  17. package/data/apps/pattern/code_diff.ttl +1 -1
  18. package/data/apps/pattern/datatable.ttl +30 -31
  19. package/data/apps/pattern/destructive_modal.ttl +1 -1
  20. package/data/apps/pattern/drawer.ttl +1 -1
  21. package/data/apps/pattern/notification_center.ttl +2 -2
  22. package/data/apps/pattern/page_header.ttl +13 -0
  23. package/data/apps/pattern/side_panel.ttl +258 -10
  24. package/data/apps/subcomponent/data_table-action_bar.ttl +6 -6
  25. package/data/apps/subcomponent/data_table-body_cell.ttl +26 -26
  26. package/data/apps/subcomponent/data_table-group_header_row.ttl +8 -8
  27. package/data/apps/subcomponent/data_table-header_cell.ttl +13 -13
  28. package/data/apps/subcomponent/data_table-pagination_bar.ttl +9 -9
  29. package/data/apps/subcomponent/data_table-persistent_selection.ttl +10 -10
  30. package/data/apps/subcomponent/data_table-settings_menu.ttl +15 -15
  31. package/data/apps/subcomponent/drawer-content.ttl +1 -1
  32. package/data/apps/subcomponent/drawer-footer.ttl +1 -1
  33. package/data/apps/subcomponent/drawer-header.ttl +1 -1
  34. package/data/apps/subcomponent/side_navigation-content.ttl +13 -0
  35. package/data/apps/subcomponent/side_navigation-context_switcher.ttl +53 -0
  36. package/data/apps/subcomponent/side_navigation-item.ttl +80 -0
  37. package/data/apps/subcomponent/side_navigation-item_group.ttl +13 -0
  38. package/data/apps/subcomponent/side_panel-content.ttl +2 -2
  39. package/data/apps/subcomponent/side_panel-footer.ttl +196 -3
  40. package/data/apps/subcomponent/side_panel-header.ttl +212 -3
  41. package/data/apps_anbox/component/theme_switcher.ttl +1 -1
  42. package/data/apps_anbox/pattern/side_menu.ttl +0 -1
  43. package/data/{tagcategory/lpupstream.ttl → apps_identity.ttl} +2 -2
  44. package/data/apps_landscape/component/checkbox_group.ttl +24 -24
  45. package/data/apps_landscape/component/code_editor.ttl +35 -35
  46. package/data/apps_landscape/component/cron_schedule.ttl +4 -4
  47. package/data/apps_landscape/component/expandable_radio_group.ttl +47 -47
  48. package/data/apps_landscape/component/expandable_truncation.ttl +20 -20
  49. package/data/apps_landscape/component/form_section.ttl +4 -4
  50. package/data/apps_landscape/component/gpg_key_field.ttl +27 -27
  51. package/data/apps_landscape/component/grouped_select.ttl +25 -25
  52. package/data/apps_landscape/component/loading_state.ttl +8 -8
  53. package/data/apps_landscape/component/managed_file_input.ttl +18 -18
  54. package/data/apps_landscape/component/multi_select_field.ttl +50 -50
  55. package/data/apps_landscape/component/password_constraints.ttl +1 -1
  56. package/data/apps_landscape/component/progress_bar.ttl +20 -20
  57. package/data/apps_landscape/component/read_only_field.ttl +15 -15
  58. package/data/apps_landscape/component/search_help_popup.ttl +10 -10
  59. package/data/apps_landscape/component/search_query_editor.ttl +33 -33
  60. package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
  61. package/data/apps_landscape/pattern/content_blocks.ttl +20 -20
  62. package/data/apps_landscape/pattern/dashboard_page_composition.ttl +37 -37
  63. package/data/apps_landscape/pattern/delivery_scheduling.ttl +6 -6
  64. package/data/apps_landscape/pattern/form_field_help.ttl +28 -28
  65. package/data/apps_landscape/pattern/header_search_controls.ttl +41 -41
  66. package/data/apps_landscape/pattern/ignorable_notification.ttl +16 -16
  67. package/data/apps_landscape/pattern/information_grid.ttl +14 -14
  68. package/data/apps_landscape/pattern/instance_association.ttl +5 -5
  69. package/data/apps_landscape/pattern/process_flow.ttl +11 -11
  70. package/data/apps_landscape/pattern/progressively_expandable_table.ttl +32 -32
  71. package/data/apps_landscape/pattern/recurring_schedule.ttl +3 -3
  72. package/data/apps_landscape/pattern/responsive_action_group.ttl +12 -12
  73. package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
  74. package/data/apps_landscape/pattern/responsive_table_filters.ttl +11 -11
  75. package/data/apps_landscape/pattern/side_panel_form_actions.ttl +40 -40
  76. package/data/apps_landscape/pattern/sortable_list.ttl +14 -14
  77. package/data/apps_landscape/pattern/table_filter.ttl +57 -57
  78. package/data/apps_landscape/pattern/table_filter_chips.ttl +67 -67
  79. package/data/apps_landscape/pattern/table_pagination.ttl +63 -63
  80. package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +22 -22
  81. package/data/apps_landscape/subcomponent/bold_substring.ttl +4 -4
  82. package/data/apps_landscape/subcomponent/inline_cell_input.ttl +8 -8
  83. package/data/apps_landscape/subcomponent/label_with_description.ttl +14 -14
  84. package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +8 -8
  85. package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
  86. package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +12 -12
  87. package/data/apps_launchpad/component/avatar.ttl +2 -2
  88. package/data/apps_launchpad/component/badge.ttl +2 -2
  89. package/data/apps_launchpad/component/breadcrumbs.ttl +1 -1
  90. package/data/apps_launchpad/component/button.ttl +2 -2
  91. package/data/apps_launchpad/component/checkbox_input.ttl +4 -4
  92. package/data/apps_launchpad/component/combobox.ttl +2 -2
  93. package/data/apps_launchpad/component/drawer.ttl +4 -4
  94. package/data/apps_launchpad/component/modal.ttl +6 -14
  95. package/data/apps_launchpad/component/radio_input.ttl +5 -5
  96. package/data/apps_launchpad/component/select_input.ttl +1 -1
  97. package/data/apps_launchpad/component/switch.ttl +5 -5
  98. package/data/apps_launchpad/component/text_input.ttl +8 -8
  99. package/data/apps_launchpad/component/textarea_input.ttl +10 -10
  100. package/data/apps_launchpad/component/tooltip.ttl +3 -3
  101. package/data/apps_launchpad/subcomponent/combobox-loading.ttl +2 -2
  102. package/data/apps_launchpad/subcomponent/combobox-search.ttl +4 -4
  103. package/data/apps_launchpad/subcomponent/description_list-item.ttl +1 -1
  104. package/data/apps_launchpad/subcomponent/modal-content.ttl +2 -2
  105. package/data/apps_lxd/component/back_link.ttl +1 -1
  106. package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
  107. package/data/apps_lxd/component/doc_link.ttl +2 -2
  108. package/data/apps_lxd/component/meter.ttl +5 -5
  109. package/data/apps_lxd/component/output_field.ttl +2 -3
  110. package/data/apps_lxd/component/rename_header.ttl +15 -15
  111. package/data/apps_lxd/component/tab_links.ttl +4 -4
  112. package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -2
  113. package/data/apps_lxd/view/network_topology.ttl +3 -4
  114. package/data/apps_portal/layout/details_view.ttl +0 -1
  115. package/data/apps_workplaceengineering/component/label-highlight.ttl +2 -3
  116. package/data/apps_workplaceengineering/component/org_chart.ttl +12 -0
  117. package/data/apps_workplaceengineering/component/theme_switcher.ttl +1 -1
  118. package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -2
  119. package/data/apps_workplaceengineering/pattern/{event_timeline.ttl → org_event_card.ttl} +3 -4
  120. package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +1 -1
  121. package/data/concept/Filtering-patterns.ttl +11 -0
  122. package/data/concept/Foundations-Grid--Layout.ttl +2 -2
  123. package/data/concept/Foundations-Surfaces.ttl +1 -1
  124. package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +3 -3
  125. package/data/concept/How-to-indicate-required-fields-in-forms.ttl +1 -1
  126. package/data/concept/Overflow.ttl +11 -0
  127. package/data/concept/Question-mark-vs-information-icon.ttl +1 -1
  128. package/data/documentation/layout/content_page_layout.ttl +13 -0
  129. package/data/documentation/layout/documentation_layout.ttl +2 -1
  130. package/data/documentation/layout/library_layout.ttl +13 -0
  131. package/data/documentation/layout/search_page_layout.ttl +13 -0
  132. package/data/documentation/pattern/library_side_navigation.ttl +3 -3
  133. package/data/global/component/accordion.ttl +6 -185
  134. package/data/global/component/announcement.ttl +2 -3
  135. package/data/global/component/avatar.ttl +1 -1
  136. package/data/global/component/badge.ttl +5 -7
  137. package/data/global/component/breadcrumbs.ttl +7 -6
  138. package/data/global/component/button.ttl +5 -23
  139. package/data/global/component/card.ttl +3 -8
  140. package/data/global/component/checkbox_field.ttl +1 -1
  141. package/data/global/component/chip.ttl +4 -6
  142. package/data/global/component/choices_field.ttl +11 -3
  143. package/data/global/component/code_snippet.ttl +2 -3
  144. package/data/global/component/color_field.ttl +1 -1
  145. package/data/global/component/combobox_field.ttl +2 -18
  146. package/data/global/component/contextual_menu.ttl +4 -6
  147. package/data/global/component/data_tooltip.ttl +4 -4
  148. package/data/global/component/date_field.ttl +1 -1
  149. package/data/global/component/date_time_field.ttl +1 -1
  150. package/data/global/component/drag_and_drop_list.ttl +2 -2
  151. package/data/global/component/dropdown_button.ttl +4 -5
  152. package/data/global/component/file_upload_field.ttl +1 -1
  153. package/data/global/component/heading.ttl +4 -4
  154. package/data/global/component/hidden_field.ttl +1 -1
  155. package/data/global/component/icon.ttl +2 -2
  156. package/data/global/component/icon_button.ttl +13 -0
  157. package/data/global/component/icon_in_container.ttl +7 -2
  158. package/data/global/component/inline_code.ttl +1 -1
  159. package/data/global/component/keyboard_key.ttl +1 -1
  160. package/data/global/{layout/form_layout.ttl → component/link.ttl} +3 -3
  161. package/data/global/component/links.ttl +12 -0
  162. package/data/global/component/mode_switcher.ttl +1 -1
  163. package/data/global/component/notification_toast.ttl +1 -1
  164. package/data/global/component/pagination.ttl +2 -2
  165. package/data/global/component/password_field.ttl +1 -1
  166. package/data/global/component/phone_field.ttl +1 -1
  167. package/data/global/component/popover.ttl +1 -1
  168. package/data/global/component/query_builder.ttl +12 -0
  169. package/data/global/component/range_field.ttl +1 -1
  170. package/data/global/component/rating_field.ttl +1 -1
  171. package/data/global/component/relative_timestamp.ttl +2 -1
  172. package/data/global/component/rich_choices_field.ttl +1 -1
  173. package/data/global/component/rich_text_editor.ttl +12 -0
  174. package/data/global/component/rich_text_field.ttl +1 -1
  175. package/data/global/component/search_field.ttl +1 -1
  176. package/data/global/component/segmented_control.ttl +13 -0
  177. package/data/global/component/segmented_control_field.ttl +1 -1
  178. package/data/global/component/select_field.ttl +1 -1
  179. package/data/global/component/switch_field.ttl +1 -1
  180. package/data/global/component/table.ttl +2 -2
  181. package/data/global/component/tabs.ttl +1 -1
  182. package/data/global/component/tag.ttl +2 -2
  183. package/data/global/component/text_field.ttl +1 -1
  184. package/data/global/component/textarea_field.ttl +1 -1
  185. package/data/global/component/tile.ttl +3 -6
  186. package/data/global/component/time_field.ttl +1 -1
  187. package/data/global/component/timestamp.ttl +2 -1
  188. package/data/global/component/tooltip.ttl +43 -45
  189. package/data/global/component/tooltip_wrapper.ttl +2 -2
  190. package/data/global/group/buttons.ttl +1 -8
  191. package/data/global/group/cards.ttl +1 -5
  192. package/data/global/group/code_snippets.ttl +1 -1
  193. package/data/global/group/keyboard_keys.ttl +1 -1
  194. package/data/global/group/tiles.ttl +1 -1
  195. package/data/global/modifier/information.ttl +1 -1
  196. package/data/global/pattern/field.ttl +1 -1
  197. package/data/global/pattern/filter.ttl +13 -0
  198. package/data/global/pattern/form_login.ttl +1 -1
  199. package/data/global/pattern/modal.ttl +5 -21
  200. package/data/global/pattern/navigation.ttl +1 -1
  201. package/data/global/pattern/stepper.ttl +1 -1
  202. package/data/global/pattern/table_of_contents.ttl +1 -1
  203. package/data/global/pattern/timeline.ttl +15 -20
  204. package/data/global/subcomponent/accordion-item.ttl +3 -156
  205. package/data/global/subcomponent/card-content.ttl +1 -1
  206. package/data/global/subcomponent/card-footer.ttl +1 -1
  207. package/data/global/subcomponent/card-header.ttl +1 -1
  208. package/data/global/subcomponent/card-image.ttl +2 -2
  209. package/data/global/subcomponent/card-thumbnail.ttl +1 -1
  210. package/data/global/subcomponent/checkbox_input.ttl +1 -1
  211. package/data/global/subcomponent/color_input.ttl +1 -1
  212. package/data/global/subcomponent/combobox_input.ttl +2 -18
  213. package/data/global/subcomponent/date_input.ttl +1 -1
  214. package/data/global/subcomponent/date_time_input.ttl +1 -1
  215. package/data/global/subcomponent/field-description.ttl +1 -1
  216. package/data/global/subcomponent/field-label.ttl +1 -1
  217. package/data/global/subcomponent/file_upload_input.ttl +1 -1
  218. package/data/global/subcomponent/hidden_input.ttl +1 -1
  219. package/data/global/subcomponent/modal-content.ttl +1 -1
  220. package/data/global/subcomponent/modal-footer.ttl +2 -18
  221. package/data/global/subcomponent/modal-header.ttl +5 -21
  222. package/data/global/subcomponent/password_input.ttl +1 -1
  223. package/data/global/subcomponent/phone_input.ttl +1 -1
  224. package/data/global/subcomponent/radio_input.ttl +1 -1
  225. package/data/global/subcomponent/range_input.ttl +1 -1
  226. package/data/global/subcomponent/rating_input.ttl +1 -1
  227. package/data/global/subcomponent/rich_text_input.ttl +1 -1
  228. package/data/global/subcomponent/search_input.ttl +3 -4
  229. package/data/global/subcomponent/segmented_control_input.ttl +1 -1
  230. package/data/global/subcomponent/select_input.ttl +1 -1
  231. package/data/global/subcomponent/spinner.ttl +2 -2
  232. package/data/global/subcomponent/switch_input.ttl +1 -1
  233. package/data/global/subcomponent/text_input.ttl +1 -1
  234. package/data/global/subcomponent/textarea_input.ttl +1 -1
  235. package/data/global/subcomponent/tile-content.ttl +1 -1
  236. package/data/global/subcomponent/time_input.ttl +1 -1
  237. package/data/global/subcomponent/timeline-content.ttl +2 -2
  238. package/data/global/subcomponent/timeline-event.ttl +5 -5
  239. package/data/global/subcomponent/timeline-expansion_indicator.ttl +1 -1
  240. package/data/global/subcomponent/timeline-header.ttl +1 -1
  241. package/data/global/variant/tooltip_dense.ttl +1 -1
  242. package/data/sites/component/store_card.ttl +92 -0
  243. package/data/sites/pattern/hero.ttl +295 -4
  244. package/data/{stores.ttl → sites_stores.ttl} +2 -2
  245. package/data/tag/designin-progress.ttl +9 -0
  246. package/data/tag/devbatch1.ttl +1 -1
  247. package/data/tag/devbatch2.ttl +1 -1
  248. package/data/tag/devbatch3.ttl +1 -1
  249. package/data/tag/devdone.ttl +9 -0
  250. package/data/tag/devin-progress.ttl +9 -0
  251. package/data/tag/devin-review.ttl +9 -0
  252. package/data/tag/devpre-approved.ttl +9 -0
  253. package/data/tag/{stylesready.ttl → devreactdone.ttl} +3 -3
  254. package/data/tag/devreactpreapproved.ttl +1 -1
  255. package/data/tag/{devreactapproved.ttl → devsveltepreapproved.ttl} +3 -3
  256. package/data/tag/divergent.ttl +1 -1
  257. package/data/tag/docscomplete.ttl +1 -1
  258. package/data/tag/global-docs-missing.ttl +1 -1
  259. package/data/tag/has-no-global-entry.ttl +1 -1
  260. package/data/tag/implementationcomplete.ttl +9 -0
  261. package/data/tag/lpto-be-upstreamed.ttl +1 -1
  262. package/data/tag/lptriageblocked-reqs-design.ttl +1 -1
  263. package/data/tag/lptriageno-upstream.ttl +1 -1
  264. package/data/tag/lptriagereimplement-and-deprecate.ttl +1 -1
  265. package/data/tag/lptriagereimplement-and-keep.ttl +1 -1
  266. package/data/tag/lptriageupstream-and-deprecate.ttl +1 -1
  267. package/data/tag/{needsdefinition.ttl → needscoredocumentation.ttl} +3 -3
  268. package/data/tag/needsdesign.ttl +9 -0
  269. package/data/tag/{needsdocumentation.ttl → needsfulldocumentation.ttl} +3 -3
  270. package/data/tag/needsimplementation.ttl +9 -0
  271. package/data/tag/needstriage.ttl +1 -1
  272. package/data/tag/specialadoption-docs.ttl +1 -1
  273. package/data/tag/triagedbacklog.ttl +2 -2
  274. package/data/tag/triagedrejected.ttl +2 -2
  275. package/data/tag/upstream-candidate.ttl +1 -1
  276. package/data/tag/upstream-compliant.ttl +1 -1
  277. package/data/tag/waiting-for-delta-review.ttl +1 -1
  278. package/data/tag/wpeinital-implementation.ttl +1 -1
  279. package/data/tag/wpetriageupstream-and-deprecate.ttl +1 -0
  280. package/data/tagcategory/design--documentation-status.ttl +6 -0
  281. package/data/tagcategory/{documentation-stage.ttl → implementationnotes.ttl} +2 -2
  282. package/data/tagcategory/implementationstatus.ttl +6 -0
  283. package/data/tagcategory/implementationworkflow.ttl +6 -0
  284. package/package.json +10 -10
  285. package/skills/adoption-a1-styles/SKILL.md +38 -8
  286. package/skills/adoption-a2-components/SKILL.md +44 -4
  287. package/skills/adoption-a3-forms/SKILL.md +1 -1
  288. package/skills/anatomy-author/SKILL.md +26 -2
  289. package/skills/design-auditor/SKILL.md +1 -1
  290. package/skills/implement-component/SKILL.md +1 -1
  291. package/skills/specify-component/SKILL.md +1 -1
  292. package/skills/specify-pattern/SKILL.md +1 -1
  293. package/src/collect/types.ts +1 -1
  294. package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +0 -14
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.devbatch3 a ds:Tag;
6
6
  ds:name "dev:batch3";
7
- ds:category ds:tagcategory.implementation-status;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -0,0 +1,9 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tag.devdone a ds:Tag;
6
+ ds:name "dev:done";
7
+ ds:category ds:tagcategory.implementationstatus;
8
+ ds:whenToApply "";
9
+ ds:whenToRemove "".
@@ -0,0 +1,9 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tag.devin-progress a ds:Tag;
6
+ ds:name "dev:in-progress";
7
+ ds:category ds:tagcategory.implementationstatus;
8
+ ds:whenToApply "";
9
+ ds:whenToRemove "".
@@ -0,0 +1,9 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tag.devin-review a ds:Tag;
6
+ ds:name "dev:in-review";
7
+ ds:category ds:tagcategory.implementationstatus;
8
+ ds:whenToApply "";
9
+ ds:whenToRemove "".
@@ -0,0 +1,9 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tag.devpre-approved a ds:Tag;
6
+ ds:name "dev:pre-approved";
7
+ ds:category ds:tagcategory.implementationstatus;
8
+ ds:whenToApply "";
9
+ ds:whenToRemove "".
@@ -2,8 +2,8 @@
2
2
  @prefix anatomy: <https://anatomy.canonical.com/>.
3
3
  @prefix dt: <https://dt.canonical.com/>.
4
4
 
5
- ds:tag.stylesready a ds:Tag;
6
- ds:name "styles:ready";
5
+ ds:tag.devreactdone a ds:Tag;
6
+ ds:name "dev:react:done";
7
7
  ds:category ds:tagcategory.implementation-status;
8
- ds:whenToApply "";
8
+ ds:whenToApply "Implementation: stable. Design: approved";
9
9
  ds:whenToRemove "".
@@ -5,5 +5,5 @@
5
5
  ds:tag.devreactpreapproved a ds:Tag;
6
6
  ds:name "dev:react:pre_approved";
7
7
  ds:category ds:tagcategory.implementation-status;
8
- ds:whenToApply "Design : approved but requires follow-up";
8
+ ds:whenToApply "Design : approved for careful use, requires follow-up";
9
9
  ds:whenToRemove "".
@@ -2,8 +2,8 @@
2
2
  @prefix anatomy: <https://anatomy.canonical.com/>.
3
3
  @prefix dt: <https://dt.canonical.com/>.
4
4
 
5
- ds:tag.devreactapproved a ds:Tag;
6
- ds:name "dev:react:approved";
5
+ ds:tag.devsveltepreapproved a ds:Tag;
6
+ ds:name "dev:svelte:pre_approved";
7
7
  ds:category ds:tagcategory.implementation-status;
8
- ds:whenToApply "Design : approved";
8
+ ds:whenToApply "Design : approved for careful use, requires follow-up";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.divergent a ds:Tag;
6
6
  ds:name "divergent";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.docscomplete a ds:Tag;
6
6
  ds:name "docs:complete";
7
- ds:category ds:tagcategory.documentation-stage;
7
+ ds:category ds:tagcategory.design--documentation-status;
8
8
  ds:whenToApply "UIBlock documentation has been reviewed and accepted";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.global-docs-missing a ds:Tag;
6
6
  ds:name "global-docs-missing";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.has-no-global-entry a ds:Tag;
6
6
  ds:name "has-no-global-entry";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -0,0 +1,9 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tag.implementationcomplete a ds:Tag;
6
+ ds:name "implementation:complete";
7
+ ds:category ds:tagcategory.implementationworkflow;
8
+ ds:whenToApply "A UI Block has implementation complete in all supported frameworks";
9
+ ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.lpto-be-upstreamed a ds:Tag;
6
6
  ds:name "lp:to-be-upstreamed";
7
- ds:category ds:tagcategory.implementation-status;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.lptriageblocked-reqs-design a ds:Tag;
6
6
  ds:name "lp:triage:blocked-reqs-design";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.lptriageno-upstream a ds:Tag;
6
6
  ds:name "lp:triage:no-upstream";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.lptriagereimplement-and-deprecate a ds:Tag;
6
6
  ds:name "lp:triage:reimplement-and-deprecate";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.lptriagereimplement-and-keep a ds:Tag;
6
6
  ds:name "lp:triage:reimplement-and-keep";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.lptriageupstream-and-deprecate a ds:Tag;
6
6
  ds:name "lp:triage:upstream-and-deprecate";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -2,8 +2,8 @@
2
2
  @prefix anatomy: <https://anatomy.canonical.com/>.
3
3
  @prefix dt: <https://dt.canonical.com/>.
4
4
 
5
- ds:tag.needsdefinition a ds:Tag;
6
- ds:name "needs:definition";
7
- ds:category ds:tagcategory.documentation-stage;
5
+ ds:tag.needscoredocumentation a ds:Tag;
6
+ ds:name "needs:core_documentation";
7
+ ds:category ds:tagcategory.design--documentation-status;
8
8
  ds:whenToApply "UIBlock needs summary, usage, anatomy_dsl and anatomy_classic fields filled";
9
9
  ds:whenToRemove "".
@@ -0,0 +1,9 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tag.needsdesign a ds:Tag;
6
+ ds:name "needs:design";
7
+ ds:category ds:tagcategory.design--documentation-status;
8
+ ds:whenToApply "UI block, has been triaged, validated, and needs design";
9
+ ds:whenToRemove "".
@@ -2,8 +2,8 @@
2
2
  @prefix anatomy: <https://anatomy.canonical.com/>.
3
3
  @prefix dt: <https://dt.canonical.com/>.
4
4
 
5
- ds:tag.needsdocumentation a ds:Tag;
6
- ds:name "needs:documentation";
7
- ds:category ds:tagcategory.documentation-stage;
5
+ ds:tag.needsfulldocumentation a ds:Tag;
6
+ ds:name "needs:full_documentation";
7
+ ds:category ds:tagcategory.design--documentation-status;
8
8
  ds:whenToApply "Base definition is complete but other fields are missing (i.e. needs variant guidelines, properties definitions) and pending review";
9
9
  ds:whenToRemove "".
@@ -0,0 +1,9 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tag.needsimplementation a ds:Tag;
6
+ ds:name "needs:implementation";
7
+ ds:category ds:tagcategory.implementationworkflow;
8
+ ds:whenToApply "A UI block has summary, anatomy and styling ready and added to coda and has all other necessary documents ready for implementation";
9
+ ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.needstriage a ds:Tag;
6
6
  ds:name "needs:triage";
7
- ds:category ds:tagcategory.documentation-stage;
7
+ ds:category ds:tagcategory.design--documentation-status;
8
8
  ds:whenToApply "UIBlock is proposed to be included in DS";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.specialadoption-docs a ds:Tag;
6
6
  ds:name "special:adoption-docs";
7
- ds:category ds:tagcategory.documentation-stage;
7
+ ds:category ds:tagcategory.design--documentation-status;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.triagedbacklog a ds:Tag;
6
6
  ds:name "triaged:backlog";
7
- ds:category ds:tagcategory.documentation-stage;
8
- ds:whenToApply "UIBlock inclusion to the DS is postponed";
7
+ ds:category ds:tagcategory.design--documentation-status;
8
+ ds:whenToApply "UIBlock inclusion to the DS has been accepted, but the design of it is postponed";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.triagedrejected a ds:Tag;
6
6
  ds:name "triaged:rejected";
7
- ds:category ds:tagcategory.documentation-stage;
8
- ds:whenToApply "UIBlock proposal was rejected because it was assessed not to be a valuable addition to the design system. ";
7
+ ds:category ds:tagcategory.design--documentation-status;
8
+ ds:whenToApply "UIBlock proposal was rejected because it was assessed not to be a valuable addition to the design system.";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.upstream-candidate a ds:Tag;
6
6
  ds:name "upstream-candidate";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.upstream-compliant a ds:Tag;
6
6
  ds:name "upstream-compliant";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "Tag to be used by Launchpad in cycle 26.10 to mark components that should be upstreamed";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.waiting-for-delta-review a ds:Tag;
6
6
  ds:name "waiting-for-delta-review";
7
- ds:category ds:tagcategory.lpupstream;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,6 +4,6 @@
4
4
 
5
5
  ds:tag.wpeinital-implementation a ds:Tag;
6
6
  ds:name "wpe:inital-implementation";
7
- ds:category ds:tagcategory.implementation-status;
7
+ ds:category ds:tagcategory.implementationnotes;
8
8
  ds:whenToApply "";
9
9
  ds:whenToRemove "".
@@ -4,5 +4,6 @@
4
4
 
5
5
  ds:tag.wpetriageupstream-and-deprecate a ds:Tag;
6
6
  ds:name "wpe:triage:upstream-and-deprecate";
7
+ ds:category ds:tagcategory.implementationnotes;
7
8
  ds:whenToApply "";
8
9
  ds:whenToRemove "".
@@ -0,0 +1,6 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tagcategory.design--documentation-status a ds:TagCategory;
6
+ ds:name "design & documentation status".
@@ -2,5 +2,5 @@
2
2
  @prefix anatomy: <https://anatomy.canonical.com/>.
3
3
  @prefix dt: <https://dt.canonical.com/>.
4
4
 
5
- ds:tagcategory.documentation-stage a ds:TagCategory;
6
- ds:name "documentation stage".
5
+ ds:tagcategory.implementationnotes a ds:TagCategory;
6
+ ds:name "implementation:notes".
@@ -0,0 +1,6 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tagcategory.implementationstatus a ds:TagCategory;
6
+ ds:name "implementation:status".
@@ -0,0 +1,6 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:tagcategory.implementationworkflow a ds:TagCategory;
6
+ ds:name "implementation:workflow".
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "types": "src/index.ts",
5
5
  "type": "module",
6
6
  "license": "LGPL-3.0",
7
- "version": "0.43.0",
7
+ "version": "0.46.0",
8
8
  "bin": {
9
9
  "collect-implementations": "./src/collect-implementations.ts"
10
10
  },
@@ -29,22 +29,22 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@biomejs/biome": "^2.3.14",
32
- "@canonical/biome-config": "^0.43.0",
33
- "@canonical/typescript-config": "^0.43.0",
32
+ "@canonical/biome-config": "^0.46.0",
33
+ "@canonical/typescript-config": "^0.46.0",
34
34
  "@types/bun": "latest",
35
35
  "@types/jsonld": "^1.5.15",
36
36
  "@types/n3": "^1.26.1",
37
- "@types/node": "^24.10.1",
38
- "@vitest/coverage-v8": "^4.1.9",
37
+ "@types/node": "^26.0.0",
38
+ "@vitest/coverage-v8": "^5.0.0",
39
39
  "openapi-typescript": "^7.12.0",
40
40
  "typescript": "^7.0.2",
41
- "vite": "^7.2.6",
41
+ "vite": "^8.0.0",
42
42
  "vite-tsconfig-paths": "^6.1.0",
43
- "vitest": "^4.1.9"
43
+ "vitest": "^5.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@canonical/anatomy-dsl": "^0.43.0",
47
- "@canonical/token-ontology": "^0.43.0",
46
+ "@canonical/anatomy-dsl": "^0.46.0",
47
+ "@canonical/token-ontology": "^0.46.0",
48
48
  "ajv": "^8.17.1",
49
49
  "jsonld": "^9.0.0",
50
50
  "n3": "^2.0.1",
@@ -68,5 +68,5 @@
68
68
  "url": "https://github.com/canonical/pragma-core/issues"
69
69
  },
70
70
  "homepage": "https://github.com/canonical/pragma-core#readme",
71
- "gitHead": "79f70779057238803359b820183de972b4a1220c"
71
+ "gitHead": "7a4c4cee18e814e78e71fe62e4679a3e07db4735"
72
72
  }
@@ -114,9 +114,19 @@ bun add @canonical/styles @canonical/ds-assets
114
114
  One import of `@canonical/styles` aggregates the normalize/reset, typography, and design
115
115
  tokens. Two things come with it:
116
116
 
117
- - Cascade layers `@layer normalize, ds.reset, ds.modifiers, ds.components` — component
118
- styles beat modifiers beat reset regardless of import order, so adopting apps do not
119
- fight specificity.
117
+ - Cascade layers — the order is fixed in `@canonical/styles`' `layers.css`, and the
118
+ current statement is
119
+
120
+ ```css
121
+ @layer normalize, ds.tokens, ds.reset, ds.typography, ds.modifiers, ds.surfaces,
122
+ ds.states, ds.components, ds.components.global, ds.components.sites,
123
+ ds.components.documentation, ds.components.stores, ds.components.apps, lib, app;
124
+ ```
125
+
126
+ Component styles beat modifiers beat reset regardless of import order, so
127
+ adopting apps do not fight specificity. `app` is the reserved top layer, for the
128
+ application's own CSS: write your styles in `@layer app { … }` —
129
+ `@canonical/styles` already declares the layer, so there is nothing to add.
120
130
  - `color-scheme: light dark` on `:root` — the foundation is theme-aware out of the box.
121
131
 
122
132
  ## Which variable to write
@@ -137,8 +147,8 @@ exist). Filter to what an app may read with `--visibility public`: a variable ma
137
147
  `variable lookup` takes the name WITHOUT its leading dashes and answers with the
138
148
  `- Symbol:` behind it and a `### Declarations` list — one row per declaration, each
139
149
  naming the `selector`, the `inAtRule` cascade layer, what it `emits` and the
140
- `file:line`. The layer in that row is the one the install's `@layer` order above is
141
- about, so a variable that is not doing what you expect is usually a layer question
150
+ `file:line`. The layer in that row is a name in the install's `@layer` order above,
151
+ so a variable that is not doing what you expect is usually a layer question
142
152
  with a visible answer. A name the graph does not know comes back `ENTITY_NOT_FOUND`,
143
153
  which is what an app-local property looks like. (MCP: `variable_list`,
144
154
  `variable_lookup`.)
@@ -163,6 +173,25 @@ propose a change to the standard itself. The standards apply even when the app h
163
173
  pragma dependency, and they are open to contribution: a missing or wrong standard is
164
174
  something to propose a change for, not to silently work around.
165
175
 
176
+ ## Read the foundations before writing app CSS
177
+
178
+ The type scale, spacing and grid are documented concepts, and app CSS should be
179
+ written against them rather than rediscovered from the tokens. Read them before the
180
+ first stylesheet edit:
181
+
182
+ ```bash
183
+ pragma concept list --search Foundations # the live set of foundation concepts
184
+ pragma concept lookup "Foundations: Typography" # per-tier heading hierarchies
185
+ pragma concept lookup "Foundations: Spacing" # inter- and intra-component spacing
186
+ pragma concept lookup "Foundations: Grid & Layout"
187
+ pragma concept lookup "Foundations: Density & the form channel"
188
+ ```
189
+
190
+ `concept list` is the live source of concept names — take them from its output, never
191
+ from memory or this list. `concept lookup` answers with the concept's content, which
192
+ carries the per-tier guidance (heading hierarchies, spacing models, grid columns) the
193
+ app's own tier falls under. (MCP: `concept_list`, `concept_lookup { name: [...] }`.)
194
+
166
195
  ## Fonts before styles
167
196
 
168
197
  Fonts are opt-in and must be imported FIRST. The canonical form, in the root stylesheet:
@@ -271,8 +300,9 @@ imported preview.
271
300
  value on a class-less root passes visual inspection and still fails this check
272
301
  on non-app surfaces.
273
302
  - [ ] `/icons/<name>.svg` returns 200 with SVG content, and an icon visibly renders.
274
- - [ ] The `@layer normalize, ds.reset, ds.modifiers, ds.components` rule is present in
275
- the served CSS.
303
+ - [ ] The served CSS's `@layer` statement starts with `normalize` and ends with
304
+ `lib, app` — check it against `@canonical/styles`' `layers.css`, not a fixed
305
+ short list.
276
306
  - [ ] Typography baseline behaves. Note: the baseline grid is computed with the CSS
277
307
  `mod()` function and cannot be downleveled — check the support table in the
278
308
  `@canonical/styles-typography` README against the browsers you target.
@@ -287,7 +317,7 @@ If this skill leads somewhere broken — a command that errors, guidance that
287
317
  contradicts what the live system answers, a gap the flow cannot cover — you are not
288
318
  stuck:
289
319
 
290
- - Raise an issue in the pragma repo: https://github.com/canonical/pragma/issues —
320
+ - Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues —
291
321
  include the skill name, what was run, and expected vs. actual outcome.
292
322
  - Or contact the design-system team owners directly through your organization's
293
323
  professional messaging channels for assistance.
@@ -108,6 +108,28 @@ So, asked what this skill is:
108
108
 
109
109
  Then, and only then, the breakdown.
110
110
 
111
+ ## What "migrate" means
112
+
113
+ In a one-shot migration — the person asks for the whole app in one change —
114
+ "migrate" means re-platforming the app onto pragma's structure and conventions, not
115
+ rendering the old app's look with pragma parts. The app keeps its FUNCTIONAL
116
+ behaviour: its pages, routes, data and interactions. Its layout and visual
117
+ decisions are replaced by pragma's.
118
+
119
+ For an application, the structure starts with the shell from
120
+ `@canonical/react-ds-app`: `ApplicationLayout` with `SideNavigation`, and
121
+ `ViewLayout` for each page (the package also exports `ContentLayout` and
122
+ `SidePanel`). Its router peers (`@canonical/router-core`, `@canonical/router-react`)
123
+ are optional, and `SideNavigation` takes a `LinkComponent` prop, so the app's own
124
+ router link plugs in. A custom top navigation bar, a username and logout in the
125
+ top-right corner, or a product name styled as a heading are the old app's
126
+ decisions, not features to keep: the navigation moves into `SideNavigation`, the
127
+ user and logout into its footer, and the product name into its header.
128
+
129
+ If that reading cannot be assumed, ask exactly one scope question before starting:
130
+
131
+ > Same look, or pragma conventions?
132
+
111
133
  ## Install
112
134
 
113
135
  ```bash
@@ -255,9 +277,8 @@ Do NOT assume a 1:1 mapping from Vanilla names and `p-*` classes. Boundaries mov
255
277
  what was one blob may now be a component plus subcomponents (e.g. `Accordion` with
256
278
  `Accordion.Item`), and icon semantics changed to `currentColor`. The block's `ds:usage`
257
279
  When-to-use / When-not-to-use guidance decides what replaces what — read it with
258
- `pragma graph inspect <block IRI>` (the IRI from the block's `pragma block list` row;
259
- `block lookup` does not render the usage field today) — often the honest swap is a
260
- DIFFERENT component than the old name suggests.
280
+ `pragma block lookup <Name or ds: IRI>` (MCP: `block_lookup`) — often the honest swap
281
+ is a DIFFERENT component than the old name suggests.
261
282
 
262
283
  ## Accessibility warnings are contract
263
284
 
@@ -283,10 +304,29 @@ prop's values are the family's values lowercased with spaces as underscores
283
304
  the lowercase form. A family listed on the block may have no prop on the component
284
305
  yet — check the component's types before writing it.
285
306
 
307
+ ## Inputs come with their form
308
+
309
+ Standalone inputs (`TextInput`, `SelectInput`, …) carry input chrome but no spacing
310
+ of their own: the gaps between fields are owned by `Field`/`Form`, the
311
+ react-hook-form model of `adoption-a3-forms`. The standalone inputs exist for
312
+ controls that live outside a form — a filter bar, a theme picker. Placing them by
313
+ hand to build a form — stacking bare inputs in a modal or a settings panel — is the
314
+ failure mode: the fields render with no gaps, because the spacing lives in the form
315
+ system that a component swap never reaches.
316
+
317
+ So a form is not a type to swap piecemeal. In a one-shot migration forms are in
318
+ scope: run the A3 steps for each form as part of the change, and the `Field`/`Form`
319
+ frame brings the label, description, error wiring and field spacing with it. A
320
+ presentational, non-react-hook-form layout is not shipped yet — report that as a
321
+ finding rather than hand-stacking the inputs.
322
+
286
323
  ## Verify per PR
287
324
 
288
325
  - [ ] Root context and density classes present (track A1) — swapped components size
289
326
  from the `--density-*` channel, not from luck.
327
+ - [ ] Heading sizes and weights follow the tier's scale in "Foundations: Typography",
328
+ with no app CSS overriding them; the outline is real: one `h1` per page, in
329
+ the page header, and the product name is not a heading.
290
330
  - [ ] Zero dev-console warnings from the swapped components.
291
331
  - [ ] Keyboard pass on each swapped instance (focus, activation, escape where relevant).
292
332
  - [ ] Visual pass against the component's Storybook stories.
@@ -301,7 +341,7 @@ If this skill leads somewhere broken — a command that errors, guidance that
301
341
  contradicts what the live system answers, a gap the flow cannot cover — you are not
302
342
  stuck:
303
343
 
304
- - Raise an issue in the pragma repo: https://github.com/canonical/pragma/issues —
344
+ - Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues —
305
345
  include the skill name, what was run, and expected vs. actual outcome.
306
346
  - Or contact the design-system team owners directly through your organization's
307
347
  professional messaging channels for assistance.
@@ -254,7 +254,7 @@ If this skill leads somewhere broken — a command that errors, guidance that
254
254
  contradicts what the live system answers, a gap the flow cannot cover — you are not
255
255
  stuck:
256
256
 
257
- - Raise an issue in the pragma repo: https://github.com/canonical/pragma/issues —
257
+ - Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues —
258
258
  include the skill name, what was run, and expected vs. actual outcome.
259
259
  - Or contact the design-system team owners directly through your organization's
260
260
  professional messaging channels for assistance.
@@ -386,6 +386,30 @@ There is no derivation step, no `references.yaml` and no register category for a
386
386
  stylesheet fact: reading an implementation and choosing the node, the key and the
387
387
  symbol is judgement, which is why it happens in a file under review.
388
388
 
389
+ ## Commenting Guidelines
390
+
391
+ ### General rules
392
+
393
+ - **Purpose:** Explain **why** decisions were made rather than repeat **what** the Anatomy DSL already describes.
394
+ - **Brevity:** Keep comments concise and factual.
395
+ - **Maintenance:** Review and update comments whenever the anatomy changes.
396
+ - **Placement:** Place comments immediately above the relevant property or node, not inline.
397
+
398
+ ### Required comments
399
+
400
+ Include the following comments when applicable:
401
+
402
+ - **Non-obvious decisions:** Explain structural choices, exceptions, agreed assumptions, or limitations when the reason is not clear from the DSL. This includes CSS pseudo-elements and anonymous nodes used for components that do not yet exist.
403
+ - **Differences:** Explain any known differences between the documented anatomy and the design or implementation specifications, identifying what differs and why.
404
+
405
+ ### Excluded comments
406
+
407
+ - **Redundant information:** Avoid repeating node names, roles, properties, tokens, or relationships already expressed in the DSL.
408
+ - **Outdated information:** Remove previous-version details, old decisions, and resolved limitations. Keep historical information in version history or changelogs instead.
409
+ - **Irrelevant implementation details:** Exclude implementation details that do not help explain the anatomy.
410
+ - **Unverified information:** Do not present unsupported assumptions or guesses as facts, including speculation about future implementations. Flag open decisions for review instead.
411
+ - **Source references:** Do not include references to design files, component URLs, implementation files, CSS selectors, repositories, documentation, or any other source materials.
412
+
389
413
  ## DSL Reference
390
414
 
391
415
  ### YAML Format
@@ -1596,7 +1620,7 @@ When creating an anatomy, respond with:
1596
1620
  2. **Use discovery**: Query existing components for patterns and consistency
1597
1621
  3. **Name thoughtfully**: URIs are identifiers - choose clear, consistent names
1598
1622
  (see the URI Encoding Convention table above)
1599
- 4. **Annotate decisions**: Use YAML comments for non-obvious choices
1623
+ 4. **Annotate decisions**: Follow the [Commenting Guidelines](#commenting-guidelines)
1600
1624
  5. **Validate cardinality**: Think through edge cases (empty states, maximums)
1601
1625
  6. **Separate concerns**: Structural styles vs themeable styles
1602
1626
  7. **Anonymous nodes are OK**: Don't force DS identity on pure wrappers
@@ -1923,7 +1947,7 @@ If this skill leads somewhere broken — a command that errors, guidance that
1923
1947
  contradicts what the live system answers, a gap the flow cannot cover — you are not
1924
1948
  stuck:
1925
1949
 
1926
- - Raise an issue in the pragma repo: https://github.com/canonical/pragma/issues —
1950
+ - Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues —
1927
1951
  include the skill name, what was run, and expected vs. actual outcome.
1928
1952
  - Or contact the design-system team owners directly through your organization's
1929
1953
  professional messaging channels for assistance.
@@ -573,7 +573,7 @@ If this skill leads somewhere broken — a command that errors, guidance that
573
573
  contradicts what the live system answers, a gap the flow cannot cover — you are not
574
574
  stuck:
575
575
 
576
- - Raise an issue in the pragma repo: https://github.com/canonical/pragma/issues —
576
+ - Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues —
577
577
  include the skill name, what was run, and expected vs. actual outcome.
578
578
  - Or contact the design-system team owners directly through your organization's
579
579
  professional messaging channels for assistance.