@salesforce/afv-skills 1.14.0 → 1.16.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 (365) hide show
  1. package/package.json +1 -1
  2. package/skills/activating-datacloud/SKILL.md +0 -1
  3. package/skills/analyzing-omnistudio-dependencies/SKILL.md +0 -1
  4. package/skills/applying-slds/SKILL.md +322 -0
  5. package/skills/applying-slds/checklists.md +83 -0
  6. package/skills/applying-slds/examples.md +283 -0
  7. package/skills/applying-slds/guidance/README.md +83 -0
  8. package/skills/applying-slds/guidance/blueprints-index.md +213 -0
  9. package/skills/applying-slds/guidance/icons-guidance.md +186 -0
  10. package/skills/applying-slds/guidance/overviews/borders.md +236 -0
  11. package/skills/applying-slds/guidance/overviews/color.md +266 -0
  12. package/skills/applying-slds/guidance/overviews/display-density.md +366 -0
  13. package/skills/applying-slds/guidance/overviews/icons.md +240 -0
  14. package/skills/applying-slds/guidance/overviews/illustrations.md +235 -0
  15. package/skills/applying-slds/guidance/overviews/shadows.md +176 -0
  16. package/skills/applying-slds/guidance/overviews/spacing.md +216 -0
  17. package/skills/applying-slds/guidance/overviews/typography.md +323 -0
  18. package/skills/applying-slds/guidance/overviews/utilities.md +542 -0
  19. package/skills/applying-slds/guidance/slds-development-guide.md +288 -0
  20. package/skills/applying-slds/guidance/styling-hooks/borders.md +202 -0
  21. package/skills/applying-slds/guidance/styling-hooks/color/expressive-palette-hooks.md +153 -0
  22. package/skills/applying-slds/guidance/styling-hooks/color/index.md +171 -0
  23. package/skills/applying-slds/guidance/styling-hooks/color/semantic/accent-hooks.md +204 -0
  24. package/skills/applying-slds/guidance/styling-hooks/color/semantic/feedback-hooks.md +768 -0
  25. package/skills/applying-slds/guidance/styling-hooks/color/semantic/surface-hooks.md +337 -0
  26. package/skills/applying-slds/guidance/styling-hooks/color/system-hooks.md +132 -0
  27. package/skills/applying-slds/guidance/styling-hooks/index.md +327 -0
  28. package/skills/applying-slds/guidance/styling-hooks/shadows.md +238 -0
  29. package/skills/applying-slds/guidance/styling-hooks/spacing.md +254 -0
  30. package/skills/applying-slds/guidance/styling-hooks/typography.md +448 -0
  31. package/skills/applying-slds/guidance/utilities/alignment.md +119 -0
  32. package/skills/applying-slds/guidance/utilities/borders.md +131 -0
  33. package/skills/applying-slds/guidance/utilities/box.md +125 -0
  34. package/skills/applying-slds/guidance/utilities/color.md +165 -0
  35. package/skills/applying-slds/guidance/utilities/dark-mode.md +111 -0
  36. package/skills/applying-slds/guidance/utilities/description-list.md +168 -0
  37. package/skills/applying-slds/guidance/utilities/floats.md +117 -0
  38. package/skills/applying-slds/guidance/utilities/grid.md +264 -0
  39. package/skills/applying-slds/guidance/utilities/horizontal-list.md +110 -0
  40. package/skills/applying-slds/guidance/utilities/hyphenation.md +84 -0
  41. package/skills/applying-slds/guidance/utilities/index.md +205 -0
  42. package/skills/applying-slds/guidance/utilities/interactions.md +89 -0
  43. package/skills/applying-slds/guidance/utilities/layout.md +109 -0
  44. package/skills/applying-slds/guidance/utilities/line-clamp.md +131 -0
  45. package/skills/applying-slds/guidance/utilities/margin.md +155 -0
  46. package/skills/applying-slds/guidance/utilities/media-object.md +161 -0
  47. package/skills/applying-slds/guidance/utilities/name-value-list.md +152 -0
  48. package/skills/applying-slds/guidance/utilities/padding.md +155 -0
  49. package/skills/applying-slds/guidance/utilities/position.md +177 -0
  50. package/skills/applying-slds/guidance/utilities/print.md +114 -0
  51. package/skills/applying-slds/guidance/utilities/scrollable.md +126 -0
  52. package/skills/applying-slds/guidance/utilities/sizing.md +190 -0
  53. package/skills/applying-slds/guidance/utilities/themes.md +121 -0
  54. package/skills/applying-slds/guidance/utilities/truncate.md +127 -0
  55. package/skills/applying-slds/guidance/utilities/typography.md +166 -0
  56. package/skills/applying-slds/guidance/utilities/vertical-list.md +166 -0
  57. package/skills/applying-slds/guidance/utilities/visibility.md +228 -0
  58. package/skills/applying-slds/metadata/README.md +84 -0
  59. package/skills/applying-slds/metadata/blueprints/components/accordion.yaml +304 -0
  60. package/skills/applying-slds/metadata/blueprints/components/activity-timeline.yaml +92 -0
  61. package/skills/applying-slds/metadata/blueprints/components/alert.yaml +103 -0
  62. package/skills/applying-slds/metadata/blueprints/components/app-launcher.yaml +94 -0
  63. package/skills/applying-slds/metadata/blueprints/components/avatar-group.yaml +81 -0
  64. package/skills/applying-slds/metadata/blueprints/components/avatar.yaml +97 -0
  65. package/skills/applying-slds/metadata/blueprints/components/badges.yaml +102 -0
  66. package/skills/applying-slds/metadata/blueprints/components/brand-band.yaml +198 -0
  67. package/skills/applying-slds/metadata/blueprints/components/breadcrumbs.yaml +95 -0
  68. package/skills/applying-slds/metadata/blueprints/components/builder-header.yaml +192 -0
  69. package/skills/applying-slds/metadata/blueprints/components/button-groups.yaml +82 -0
  70. package/skills/applying-slds/metadata/blueprints/components/button-icons.yaml +295 -0
  71. package/skills/applying-slds/metadata/blueprints/components/buttons.yaml +230 -0
  72. package/skills/applying-slds/metadata/blueprints/components/cards.yaml +124 -0
  73. package/skills/applying-slds/metadata/blueprints/components/carousel.yaml +140 -0
  74. package/skills/applying-slds/metadata/blueprints/components/chat.yaml +179 -0
  75. package/skills/applying-slds/metadata/blueprints/components/checkbox-button-group.yaml +192 -0
  76. package/skills/applying-slds/metadata/blueprints/components/checkbox-button.yaml +204 -0
  77. package/skills/applying-slds/metadata/blueprints/components/checkbox-toggle.yaml +177 -0
  78. package/skills/applying-slds/metadata/blueprints/components/checkbox.yaml +108 -0
  79. package/skills/applying-slds/metadata/blueprints/components/color-picker.yaml +172 -0
  80. package/skills/applying-slds/metadata/blueprints/components/combobox.yaml +136 -0
  81. package/skills/applying-slds/metadata/blueprints/components/counter.yaml +147 -0
  82. package/skills/applying-slds/metadata/blueprints/components/data-tables.yaml +157 -0
  83. package/skills/applying-slds/metadata/blueprints/components/datepickers.yaml +130 -0
  84. package/skills/applying-slds/metadata/blueprints/components/datetime-picker.yaml +155 -0
  85. package/skills/applying-slds/metadata/blueprints/components/docked-composer.yaml +201 -0
  86. package/skills/applying-slds/metadata/blueprints/components/docked-form-footer.yaml +161 -0
  87. package/skills/applying-slds/metadata/blueprints/components/docked-utility-bar.yaml +175 -0
  88. package/skills/applying-slds/metadata/blueprints/components/drop-zone.yaml +115 -0
  89. package/skills/applying-slds/metadata/blueprints/components/dueling-picklist.yaml +196 -0
  90. package/skills/applying-slds/metadata/blueprints/components/dynamic-icons.yaml +128 -0
  91. package/skills/applying-slds/metadata/blueprints/components/dynamic-menu.yaml +141 -0
  92. package/skills/applying-slds/metadata/blueprints/components/expandable-section.yaml +115 -0
  93. package/skills/applying-slds/metadata/blueprints/components/expression.yaml +143 -0
  94. package/skills/applying-slds/metadata/blueprints/components/feeds.yaml +125 -0
  95. package/skills/applying-slds/metadata/blueprints/components/file-selector.yaml +154 -0
  96. package/skills/applying-slds/metadata/blueprints/components/files.yaml +119 -0
  97. package/skills/applying-slds/metadata/blueprints/components/form-element.yaml +145 -0
  98. package/skills/applying-slds/metadata/blueprints/components/global-header.yaml +120 -0
  99. package/skills/applying-slds/metadata/blueprints/components/global-navigation.yaml +100 -0
  100. package/skills/applying-slds/metadata/blueprints/components/icons.yaml +138 -0
  101. package/skills/applying-slds/metadata/blueprints/components/illustration.yaml +205 -0
  102. package/skills/applying-slds/metadata/blueprints/components/input.yaml +151 -0
  103. package/skills/applying-slds/metadata/blueprints/components/list-builder.yaml +127 -0
  104. package/skills/applying-slds/metadata/blueprints/components/lookups.yaml +132 -0
  105. package/skills/applying-slds/metadata/blueprints/components/map.yaml +118 -0
  106. package/skills/applying-slds/metadata/blueprints/components/menus.yaml +134 -0
  107. package/skills/applying-slds/metadata/blueprints/components/modals.yaml +152 -0
  108. package/skills/applying-slds/metadata/blueprints/components/notifications.yaml +88 -0
  109. package/skills/applying-slds/metadata/blueprints/components/page-headers.yaml +135 -0
  110. package/skills/applying-slds/metadata/blueprints/components/panels.yaml +149 -0
  111. package/skills/applying-slds/metadata/blueprints/components/path.yaml +154 -0
  112. package/skills/applying-slds/metadata/blueprints/components/picklist.yaml +125 -0
  113. package/skills/applying-slds/metadata/blueprints/components/pills.yaml +154 -0
  114. package/skills/applying-slds/metadata/blueprints/components/popovers.yaml +120 -0
  115. package/skills/applying-slds/metadata/blueprints/components/progress-bar.yaml +110 -0
  116. package/skills/applying-slds/metadata/blueprints/components/progress-indicator.yaml +133 -0
  117. package/skills/applying-slds/metadata/blueprints/components/progress-ring.yaml +102 -0
  118. package/skills/applying-slds/metadata/blueprints/components/prompt.yaml +126 -0
  119. package/skills/applying-slds/metadata/blueprints/components/publishers.yaml +178 -0
  120. package/skills/applying-slds/metadata/blueprints/components/radio-button-group.yaml +172 -0
  121. package/skills/applying-slds/metadata/blueprints/components/radio-group.yaml +112 -0
  122. package/skills/applying-slds/metadata/blueprints/components/rich-text-editor.yaml +135 -0
  123. package/skills/applying-slds/metadata/blueprints/components/scoped-notifications.yaml +188 -0
  124. package/skills/applying-slds/metadata/blueprints/components/scoped-tabs.yaml +97 -0
  125. package/skills/applying-slds/metadata/blueprints/components/select.yaml +127 -0
  126. package/skills/applying-slds/metadata/blueprints/components/setup-assistant.yaml +152 -0
  127. package/skills/applying-slds/metadata/blueprints/components/slider.yaml +111 -0
  128. package/skills/applying-slds/metadata/blueprints/components/spinners.yaml +135 -0
  129. package/skills/applying-slds/metadata/blueprints/components/split-view.yaml +112 -0
  130. package/skills/applying-slds/metadata/blueprints/components/summary-detail.yaml +103 -0
  131. package/skills/applying-slds/metadata/blueprints/components/tabs.yaml +138 -0
  132. package/skills/applying-slds/metadata/blueprints/components/textarea.yaml +116 -0
  133. package/skills/applying-slds/metadata/blueprints/components/tiles.yaml +108 -0
  134. package/skills/applying-slds/metadata/blueprints/components/timepicker.yaml +111 -0
  135. package/skills/applying-slds/metadata/blueprints/components/toast.yaml +154 -0
  136. package/skills/applying-slds/metadata/blueprints/components/tooltips.yaml +107 -0
  137. package/skills/applying-slds/metadata/blueprints/components/tree-grid.yaml +116 -0
  138. package/skills/applying-slds/metadata/blueprints/components/trees.yaml +116 -0
  139. package/skills/applying-slds/metadata/blueprints/components/trial-bar.yaml +112 -0
  140. package/skills/applying-slds/metadata/blueprints/components/vertical-navigation.yaml +130 -0
  141. package/skills/applying-slds/metadata/blueprints/components/vertical-tabs.yaml +140 -0
  142. package/skills/applying-slds/metadata/blueprints/components/visual-picker.yaml +150 -0
  143. package/skills/applying-slds/metadata/blueprints/components/welcome-mat.yaml +136 -0
  144. package/skills/applying-slds/metadata/hooks-index.json +6272 -0
  145. package/skills/applying-slds/metadata/icon-metadata.json +38466 -0
  146. package/skills/applying-slds/metadata/utilities-index.json +21912 -0
  147. package/skills/applying-slds/references/component-selection.md +112 -0
  148. package/skills/applying-slds/references/icons-decision-guide.md +124 -0
  149. package/skills/applying-slds/references/styling-decision-guide.md +228 -0
  150. package/skills/applying-slds/references/utilities-quick-ref.md +125 -0
  151. package/skills/applying-slds/scripts/search-blueprints.cjs +117 -0
  152. package/skills/applying-slds/scripts/search-hooks.cjs +139 -0
  153. package/skills/applying-slds/scripts/search-icons.cjs +174 -0
  154. package/skills/applying-slds/scripts/search-utilities.cjs +161 -0
  155. package/skills/building-mobile-apps/SKILL.md +0 -1
  156. package/skills/building-omnistudio-callable-apex/SKILL.md +0 -1
  157. package/skills/building-omnistudio-datamapper/SKILL.md +0 -1
  158. package/skills/building-omnistudio-flexcard/SKILL.md +0 -1
  159. package/skills/building-omnistudio-integration-procedure/SKILL.md +0 -1
  160. package/skills/building-omnistudio-omniscript/SKILL.md +0 -1
  161. package/skills/building-sf-integrations/SKILL.md +0 -1
  162. package/skills/configuring-connected-apps/SKILL.md +0 -1
  163. package/skills/connecting-datacloud/SKILL.md +0 -1
  164. package/skills/creating-b2b-commerce-store/SKILL.md +0 -1
  165. package/skills/debugging-apex-logs/SKILL.md +0 -1
  166. package/skills/deploying-metadata/SKILL.md +0 -1
  167. package/skills/deploying-omnistudio-datapacks/SKILL.md +0 -1
  168. package/skills/developing-agentforce/SKILL.md +0 -1
  169. package/skills/fetching-salesforce-docs/SKILL.md +0 -1
  170. package/skills/generating-custom-lightning-type/SKILL.md +17 -39
  171. package/skills/generating-custom-lightning-type/assets/primitive-types-and-constraints.md +41 -0
  172. package/skills/generating-custom-lightning-type/references/widget-rendition.md +124 -0
  173. package/skills/generating-lwc-components/SKILL.md +0 -1
  174. package/skills/generating-mermaid-diagrams/SKILL.md +0 -1
  175. package/skills/generating-visual-diagrams/SKILL.md +0 -1
  176. package/skills/handling-sf-data/SKILL.md +0 -1
  177. package/skills/harmonizing-datacloud/SKILL.md +0 -1
  178. package/skills/integrating-b2b-commerce-open-code-components/SKILL.md +0 -1
  179. package/skills/investigating-agentforce-architecture/README.md +156 -0
  180. package/skills/investigating-agentforce-architecture/SKILL.md +230 -0
  181. package/skills/investigating-agentforce-architecture/assets/cli/describe_sobject.yaml +16 -0
  182. package/skills/investigating-agentforce-architecture/assets/cli/describe_tooling_sobject.yaml +17 -0
  183. package/skills/investigating-agentforce-architecture/assets/cli/list_metadata_genaiprompttemplate.yaml +17 -0
  184. package/skills/investigating-agentforce-architecture/assets/cli/org_display.yaml +15 -0
  185. package/skills/investigating-agentforce-architecture/assets/cli/retrieve_genai_plugin.yaml +18 -0
  186. package/skills/investigating-agentforce-architecture/assets/cli/show_access_token.yaml +27 -0
  187. package/skills/investigating-agentforce-architecture/assets/mermaid/action_tree.mmd +20 -0
  188. package/skills/investigating-agentforce-architecture/assets/mermaid/data_flow.mmd +19 -0
  189. package/skills/investigating-agentforce-architecture/assets/mermaid/dependency_graph.mmd +19 -0
  190. package/skills/investigating-agentforce-architecture/assets/mermaid/invocation_sequence.mmd +20 -0
  191. package/skills/investigating-agentforce-architecture/assets/mermaid/planner_state.mmd +18 -0
  192. package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_ids.soql +3 -0
  193. package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_names.soql +3 -0
  194. package/skills/investigating-agentforce-architecture/assets/soql/bot_definition_details.soql +3 -0
  195. package/skills/investigating-agentforce-architecture/assets/soql/bot_version_lookup.soql +4 -0
  196. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_by_ids.soql +3 -0
  197. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_ids_by_names.soql +3 -0
  198. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_view_by_durable_ids.soql +4 -0
  199. package/skills/investigating-agentforce-architecture/assets/soql/flow_metadata_by_id.soql +3 -0
  200. package/skills/investigating-agentforce-architecture/assets/soql/functions_by_plugins.soql +5 -0
  201. package/skills/investigating-agentforce-architecture/assets/soql/planner_attrs_by_parent_ids.soql +3 -0
  202. package/skills/investigating-agentforce-architecture/assets/soql/planner_bundle_functions.soql +3 -0
  203. package/skills/investigating-agentforce-architecture/assets/soql/planner_definition_by_agent_chain.soql +3 -0
  204. package/skills/investigating-agentforce-architecture/assets/soql/plugin_functions_by_plugin_ids.soql +3 -0
  205. package/skills/investigating-agentforce-architecture/assets/soql/plugin_instructions_by_plugin_ids.soql +3 -0
  206. package/skills/investigating-agentforce-architecture/assets/soql/plugins_by_planner.soql +4 -0
  207. package/skills/investigating-agentforce-architecture/references/architecture_sections.md +243 -0
  208. package/skills/investigating-agentforce-architecture/references/contract.json +244 -0
  209. package/skills/investigating-agentforce-architecture/references/soql_fields.md +512 -0
  210. package/skills/investigating-agentforce-architecture/scripts/_shared/__init__.py +1 -0
  211. package/skills/investigating-agentforce-architecture/scripts/_shared/fs_guard.py +329 -0
  212. package/skills/investigating-agentforce-architecture/scripts/_shared/paths.py +110 -0
  213. package/skills/investigating-agentforce-architecture/scripts/_shared/runtime.py +59 -0
  214. package/skills/investigating-agentforce-architecture/scripts/_shared/sql.py +10 -0
  215. package/skills/investigating-agentforce-architecture/scripts/cache_check.py +234 -0
  216. package/skills/investigating-agentforce-architecture/scripts/config.py +131 -0
  217. package/skills/investigating-agentforce-architecture/scripts/fetch_soql.py +689 -0
  218. package/skills/investigating-agentforce-architecture/scripts/finalize.py +295 -0
  219. package/skills/investigating-agentforce-architecture/scripts/main.py +2835 -0
  220. package/skills/investigating-agentforce-architecture/scripts/metadata_listing.py +265 -0
  221. package/skills/investigating-agentforce-architecture/scripts/parallel_retrieve.py +69 -0
  222. package/skills/investigating-agentforce-architecture/scripts/parse_bundle.py +215 -0
  223. package/skills/investigating-agentforce-architecture/scripts/parse_wave.py +845 -0
  224. package/skills/investigating-agentforce-architecture/scripts/probe_channels.py +302 -0
  225. package/skills/investigating-agentforce-architecture/scripts/render_architecture.py +1043 -0
  226. package/skills/investigating-agentforce-architecture/scripts/resolve_bot.py +255 -0
  227. package/skills/investigating-agentforce-architecture/scripts/resolve_invocation_target.py +130 -0
  228. package/skills/investigating-agentforce-architecture/scripts/rest_client.py +763 -0
  229. package/skills/investigating-agentforce-architecture/scripts/retrieve_planner.py +13 -0
  230. package/skills/investigating-agentforce-architecture/scripts/sf_cli.py +242 -0
  231. package/skills/investigating-agentforce-architecture/scripts/soql_loader.py +253 -0
  232. package/skills/investigating-agentforce-architecture/scripts/summarize_tree.py +143 -0
  233. package/skills/investigating-agentforce-architecture/scripts/tests/__init__.py +0 -0
  234. package/skills/investigating-agentforce-architecture/scripts/tests/_bootstrap.py +23 -0
  235. package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/__init__.py +0 -0
  236. package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/genai_payloads.py +400 -0
  237. package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check.py +307 -0
  238. package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check_main.py +283 -0
  239. package/skills/investigating-agentforce-architecture/scripts/tests/test_config.py +115 -0
  240. package/skills/investigating-agentforce-architecture/scripts/tests/test_end_to_end_fixture.py +651 -0
  241. package/skills/investigating-agentforce-architecture/scripts/tests/test_finalize.py +278 -0
  242. package/skills/investigating-agentforce-architecture/scripts/tests/test_flow_children_inflation.py +582 -0
  243. package/skills/investigating-agentforce-architecture/scripts/tests/test_fs_guard.py +113 -0
  244. package/skills/investigating-agentforce-architecture/scripts/tests/test_iterative_wave_b.py +478 -0
  245. package/skills/investigating-agentforce-architecture/scripts/tests/test_main_pipeline.py +3359 -0
  246. package/skills/investigating-agentforce-architecture/scripts/tests/test_parallel_retrieve.py +131 -0
  247. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_bundle.py +400 -0
  248. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave.py +644 -0
  249. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_classifiers.py +224 -0
  250. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_helpers.py +380 -0
  251. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_main.py +397 -0
  252. package/skills/investigating-agentforce-architecture/scripts/tests/test_per_branch_visited.py +244 -0
  253. package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_channels.py +359 -0
  254. package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_cli_recipes.py +185 -0
  255. package/skills/investigating-agentforce-architecture/scripts/tests/test_render_architecture.py +810 -0
  256. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_bot.py +203 -0
  257. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_creds.py +157 -0
  258. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_invocation_target.py +145 -0
  259. package/skills/investigating-agentforce-architecture/scripts/tests/test_rest_client.py +1253 -0
  260. package/skills/investigating-agentforce-architecture/scripts/tests/test_runtime_override.py +100 -0
  261. package/skills/investigating-agentforce-architecture/scripts/tests/test_sf_cli.py +261 -0
  262. package/skills/investigating-agentforce-architecture/scripts/tests/test_signature_stamping.py +466 -0
  263. package/skills/investigating-agentforce-architecture/scripts/tests/test_soql_loader.py +501 -0
  264. package/skills/investigating-agentforce-architecture/scripts/tests/test_summarize_tree.py +241 -0
  265. package/skills/investigating-agentforce-architecture/scripts/tests/test_write_emit_ctx.py +480 -0
  266. package/skills/investigating-agentforce-architecture/tools/emit_env.py +157 -0
  267. package/skills/investigating-agentforce-architecture/tools/emit_result.py +262 -0
  268. package/skills/investigating-agentforce-architecture/tools/sanitize.py +33 -0
  269. package/skills/investigating-agentforce-architecture/tools/write_emit_ctx.py +332 -0
  270. package/skills/investigating-agentforce-d360/README.md +123 -0
  271. package/skills/investigating-agentforce-d360/SKILL.md +163 -0
  272. package/skills/investigating-agentforce-d360/assets/dc/app_generation.sql +51 -0
  273. package/skills/investigating-agentforce-d360/assets/dc/content_category.sql +44 -0
  274. package/skills/investigating-agentforce-d360/assets/dc/content_quality.sql +41 -0
  275. package/skills/investigating-agentforce-d360/assets/dc/discover_sessions.sql +36 -0
  276. package/skills/investigating-agentforce-d360/assets/dc/feedback.sql +47 -0
  277. package/skills/investigating-agentforce-d360/assets/dc/feedback_details.sql +38 -0
  278. package/skills/investigating-agentforce-d360/assets/dc/gateway_records.sql +45 -0
  279. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_llm.sql +50 -0
  280. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_metadata.sql +44 -0
  281. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_tags.sql +42 -0
  282. package/skills/investigating-agentforce-d360/assets/dc/gateway_requests.sql +89 -0
  283. package/skills/investigating-agentforce-d360/assets/dc/gateway_responses.sql +43 -0
  284. package/skills/investigating-agentforce-d360/assets/dc/generations.sql +52 -0
  285. package/skills/investigating-agentforce-d360/assets/dc/interactions.sql +53 -0
  286. package/skills/investigating-agentforce-d360/assets/dc/messages.sql +53 -0
  287. package/skills/investigating-agentforce-d360/assets/dc/messaging_session.sql +37 -0
  288. package/skills/investigating-agentforce-d360/assets/dc/moment_interactions.sql +34 -0
  289. package/skills/investigating-agentforce-d360/assets/dc/moments.sql +39 -0
  290. package/skills/investigating-agentforce-d360/assets/dc/participants.sql +48 -0
  291. package/skills/investigating-agentforce-d360/assets/dc/sessions.sql +78 -0
  292. package/skills/investigating-agentforce-d360/assets/dc/steps.sql +64 -0
  293. package/skills/investigating-agentforce-d360/assets/dc/tag_associations.sql +46 -0
  294. package/skills/investigating-agentforce-d360/assets/dc/tag_definition_associations.sql +37 -0
  295. package/skills/investigating-agentforce-d360/assets/dc/tag_definitions.sql +50 -0
  296. package/skills/investigating-agentforce-d360/assets/dc/tags.sql +37 -0
  297. package/skills/investigating-agentforce-d360/assets/dc/telemetry_spans.sql +55 -0
  298. package/skills/investigating-agentforce-d360/references/artifacts.md +50 -0
  299. package/skills/investigating-agentforce-d360/references/dc_dmo_fields.md +823 -0
  300. package/skills/investigating-agentforce-d360/references/dc_pipeline_contract.md +608 -0
  301. package/skills/investigating-agentforce-d360/scripts/_shared/__init__.py +2 -0
  302. package/skills/investigating-agentforce-d360/scripts/_shared/cli_override.py +98 -0
  303. package/skills/investigating-agentforce-d360/scripts/_shared/fs_guard.py +334 -0
  304. package/skills/investigating-agentforce-d360/scripts/_shared/paths.py +155 -0
  305. package/skills/investigating-agentforce-d360/scripts/_shared/runtime.py +59 -0
  306. package/skills/investigating-agentforce-d360/scripts/_shared/sql.py +14 -0
  307. package/skills/investigating-agentforce-d360/scripts/assemble_dc.py +1624 -0
  308. package/skills/investigating-agentforce-d360/scripts/config.py +45 -0
  309. package/skills/investigating-agentforce-d360/scripts/dc.py +188 -0
  310. package/skills/investigating-agentforce-d360/scripts/discover_sessions.py +556 -0
  311. package/skills/investigating-agentforce-d360/scripts/fetch_dc.py +1045 -0
  312. package/skills/investigating-agentforce-d360/scripts/render_dc.py +1750 -0
  313. package/skills/investigating-agentforce-d360/scripts/resolve_session.py +264 -0
  314. package/skills/investigating-agentforce-d360/scripts/storage.py +92 -0
  315. package/skills/investigating-agentforce-d360/scripts/tests/__init__.py +0 -0
  316. package/skills/investigating-agentforce-d360/scripts/tests/_bootstrap.py +15 -0
  317. package/skills/investigating-agentforce-d360/scripts/tests/fixtures/__init__.py +0 -0
  318. package/skills/investigating-agentforce-d360/scripts/tests/fixtures/synthetic_session.py +424 -0
  319. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_bootstrap_and_mode.py +115 -0
  320. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct.py +220 -0
  321. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct_integration.py +158 -0
  322. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_helpers.py +287 -0
  323. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_integration.py +247 -0
  324. package/skills/investigating-agentforce-d360/scripts/tests/test_dc_and_resolve_session.py +433 -0
  325. package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions.py +458 -0
  326. package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions_grep_ci.py +193 -0
  327. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_helpers.py +266 -0
  328. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_identity.py +528 -0
  329. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_main.py +251 -0
  330. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall.py +229 -0
  331. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall_full.py +283 -0
  332. package/skills/investigating-agentforce-d360/scripts/tests/test_identity_coherence.py +327 -0
  333. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_branches.py +256 -0
  334. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_gateway_direct.py +130 -0
  335. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_helpers.py +291 -0
  336. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_integration.py +220 -0
  337. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_planner_llm_calls.py +284 -0
  338. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_show_prompts_gating.py +215 -0
  339. package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_from_disk.py +100 -0
  340. package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_session_main.py +149 -0
  341. package/skills/investigating-agentforce-d360/scripts/tests/test_runtime_override.py +104 -0
  342. package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape.py +95 -0
  343. package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape_dropped_by_stdm.py +85 -0
  344. package/skills/managing-managed-event-subscription/SKILL.md +152 -0
  345. package/skills/managing-managed-event-subscription/assets/managed-event-subscription-template.xml +20 -0
  346. package/skills/managing-managed-event-subscription/references/delete-guide.md +57 -0
  347. package/skills/managing-managed-event-subscription/references/topic-name-formats.md +26 -0
  348. package/skills/managing-managed-event-subscription/references/update-constraints.md +30 -0
  349. package/skills/modeling-omnistudio-epc-catalog/SKILL.md +0 -1
  350. package/skills/observing-agentforce/SKILL.md +0 -1
  351. package/skills/orchestrating-datacloud/SKILL.md +0 -1
  352. package/skills/preparing-datacloud/SKILL.md +0 -1
  353. package/skills/querying-soql/SKILL.md +0 -1
  354. package/skills/retrieving-datacloud/SKILL.md +0 -1
  355. package/skills/running-apex-tests/SKILL.md +0 -1
  356. package/skills/running-code-analyzer/SKILL.md +0 -1
  357. package/skills/segmenting-datacloud/SKILL.md +0 -1
  358. package/skills/testing-agentforce/SKILL.md +0 -1
  359. package/skills/uplifting-components-to-slds2/SKILL.md +3 -2
  360. package/skills/uplifting-components-to-slds2/references/color-hooks-decision-guide.md +30 -9
  361. package/skills/uplifting-components-to-slds2/references/examples.md +24 -6
  362. package/skills/validating-slds/SKILL.md +262 -0
  363. package/skills/validating-slds/references/quality-checks.md +308 -0
  364. package/skills/validating-slds/references/report-format.md +302 -0
  365. package/skills/validating-slds/scripts/analyze-quality.cjs +521 -0
@@ -0,0 +1,448 @@
1
+ ---
2
+ id: slds.guidance.hooks.typography
3
+ title: Typography Styling Hooks
4
+ description: Styling hooks for font size, weight, line height, and content width constraints
5
+ summary: "Guidance for typography styling hooks including font-scale, font-weight, line-height, and max-read hooks. Covers systematic text sizing, weight selection, and readability optimization."
6
+
7
+ artifact_type: reference
8
+ domain: styling-hooks
9
+ topic: typography
10
+
11
+ content_format: structured
12
+ complexity: intermediate
13
+ audience: [implementer]
14
+
15
+ tasks: [choose, implement, troubleshoot]
16
+
17
+ refs:
18
+ - slds.guidance.hooks
19
+ - slds.guidance.hooks.spacing
20
+ - slds.guidance.utilities.typography
21
+ tags: [styling-hooks, typography, font-scale, font-weight, line-height, text-sizing]
22
+ keywords: [font size, text scale, font weight, line height, typography hierarchy, readable content]
23
+ ---
24
+
25
+ # Typography Styling Hooks
26
+
27
+ ## Overview
28
+
29
+ Typography styling hooks provide systematic control over font properties including size, weight, line height, and content width constraints. These hooks ensure visual consistency, establish clear content hierarchy, and maintain readability across all interfaces. Use typography styling hooks to create scalable, accessible text that adapts to different contexts, devices, and user preferences.
30
+
31
+ ---
32
+
33
+ ## `--slds-g-font-scale-*`
34
+
35
+ ### Description
36
+
37
+ Font scale values that control text size throughout the interface. The styling hook values are relative to the root font size and create a systematic scale from small text to large display text.
38
+
39
+ **Hook Pattern:** `--slds-g-font-scale-{size}` where `{size}` is the scale step
40
+
41
+ **Base Size:** `--slds-g-font-size-base` sets the default application font size.
42
+
43
+ **Scale Categories:**
44
+ - **Body text:** Scales `neg-2` through `2`
45
+ - **Headings/Titles:** Scales `3` through `6`
46
+ - **Display text:** Scales `6` through `8`
47
+
48
+ ### Usage
49
+
50
+ #### Do
51
+
52
+ - Use font-scale hooks for all text sizing to maintain typographic consistency
53
+ - Use font-scale hooks to establish clear visual hierarchy through systematic size progression
54
+ - Use body text scales (neg-2 through 2), heading scales (3-6), and display text scales (7-8) for their intended purposes
55
+ - Combine font-scale hooks with appropriate font weights to create distinct type styles
56
+ - Use smaller scales (neg-2 through 2) for data-dense interfaces
57
+ - Use larger scales (3 through 8) for headings, titles, and prominent text
58
+ - Font scales are relative to root font size, enabling global scaling
59
+
60
+ #### Don't
61
+
62
+ - Avoid hard-coded pixel or point font sizes instead of using font-scale hooks
63
+ - Avoid using scales smaller than neg-1 for body text (readability concerns)
64
+ - Avoid using display scales (7-8) for anything other than short, prominent text
65
+ - Avoid inconsistent scale selection that breaks typographic hierarchy
66
+ - Avoid mixing font-scale hooks with fixed pixel values in the same component
67
+ - Avoid using font-scale for spacing or sizing properties (use spacing/sizing hooks instead)
68
+
69
+ #### Context
70
+
71
+ - All text content requiring size specification
72
+ - Body text and paragraph content
73
+ - Headings and titles at all levels
74
+ - Form labels and input text
75
+ - Button text and interactive element labels
76
+ - Display text and hero sections
77
+ - Data tables and list content
78
+
79
+ ### Accessibility
80
+
81
+ - **Regular text**: Minimum 4.5:1 contrast ratio (50-point separation in SLDS grade system)
82
+ - **Large text** (18pt or 14pt bold): Minimum 3:1 contrast ratio (40-point separation)
83
+ - Use font-scale-1 or larger for all body text to ensure readability
84
+ - Smaller scales (neg-2, neg-1): Only for non-essential secondary text with sufficient contrast
85
+ - Test text at all scales with actual system fonts (SF Pro, Segoe UI, Roboto)
86
+ - Accessibility requirements apply — consult your project's accessibility standards
87
+
88
+ ---
89
+
90
+ ## `--slds-g-font-size-base`
91
+
92
+ ### Description
93
+
94
+ The base font size property that establishes the foundational text size for the application. All other font scales are calculated relative to this base value.
95
+
96
+ **Hook Pattern:** `--slds-g-font-size-base`
97
+
98
+ This is the starting point for the entire typographic system. This is the default size for standard body text.
99
+
100
+ ### Usage
101
+
102
+ #### Do
103
+
104
+ - Use font-size-base as the reference point for understanding the scale system
105
+ - Use font-size-base as the default size for standard body text in data-dense applications
106
+ - Use font-size-base to establish a baseline that other scales build upon
107
+ - Use font-size-base directly when base-level text sizing is appropriate
108
+
109
+ #### Don't
110
+
111
+ - Avoid modifying the base font size value itself (use scale variants instead)
112
+ - Avoid using base size for headings or emphasized content (use larger scales)
113
+ - Avoid assuming base is always the right choice (font-scale-1 provides more readable body text)
114
+
115
+ #### Context
116
+
117
+ - Default application text size
118
+ - Body text in compact interfaces
119
+ - Reference point for scale calculations
120
+ - Foundational typography sizing
121
+
122
+ ### Accessibility
123
+
124
+ - 13px (0.8125rem) is at the lower limit for comfortable reading
125
+ - Use font-scale-1 (14px equivalent) or larger for primary body text when readability is critical
126
+ - Ensure sufficient contrast when using base size text
127
+ - Account for user preferences and viewport context when selecting text sizes
128
+
129
+ ---
130
+
131
+ ## `--slds-g-font-weight-*`
132
+
133
+ ### Description
134
+
135
+ Font weight values that control text thickness and visual emphasis. SLDS 2 uses four primary weights to maintain clarity and consistency across all platforms.
136
+
137
+ **Hook Pattern:** `--slds-g-font-weight-{weight}` where `{weight}` is the font weight level
138
+
139
+ **Primary Weights Used in SLDS 2:**
140
+ - **Light (weight-3):** Display text at `font-scale-7` and above
141
+ - **Regular (weight-4):** Titles (`font-scale-3` through `font-scale-6`) and all body text
142
+ - **Semibold (weight-6):** Buttons and smaller body titles (`font-size-base` through `font-scale-2`)
143
+ - **Bold (weight-7):** Emphasis within body text only, never for headings
144
+
145
+ > **Note:** Weights 1, 2, and 5 are available but not commonly used in SLDS 2.
146
+
147
+ ### Usage
148
+
149
+ #### Do
150
+
151
+ - Use font-weight-4 (regular) as the default for most body text
152
+ - Use font-weight-6 (semibold) for buttons, labels, and minor headings
153
+ - Use font-weight-3 (light) for large display text (scales 7-8)
154
+ - Use font-weight-7 (bold) sparingly for emphasis within body content
155
+ - Pair lighter weights with larger font scales for elegant typography
156
+ - Use heavier weights (semibold, bold) for smaller text that needs emphasis
157
+
158
+ #### Don't
159
+
160
+ - Avoid using font weights lighter than regular (400) for body text or small sizes
161
+ - Avoid using bold (700) for all headings (use semibold instead)
162
+ - Avoid using ultra-thin, thin, or medium weights (not part of SLDS 2 standard)
163
+ - Avoid inconsistent weight usage that breaks visual hierarchy
164
+ - Avoid overusing bold weight (reduces its effectiveness for emphasis)
165
+ - Avoid mixing too many different weights in a single interface section
166
+
167
+ #### Context
168
+
169
+ - All text requiring weight specification
170
+ - Body text (regular weight)
171
+ - Headings and titles (regular or semibold)
172
+ - Buttons and interactive labels (semibold)
173
+ - Display text (light weight for large sizes)
174
+ - Emphasis within paragraphs (bold, sparingly)
175
+ - Form labels and field text
176
+
177
+ ### Accessibility
178
+
179
+ - Font weights lighter than regular (400) may be difficult to read, especially at small sizes
180
+ - Light weight (300) should only be used for large text (scale 6 and above)
181
+ - Ensure sufficient contrast is maintained at all font weights
182
+ - Heavier weights (semibold, bold) improve readability for users with low vision
183
+ - Regular weight (400) provides optimal readability for most body text
184
+ - Test all font weights with actual system fonts across different operating systems
185
+
186
+ ---
187
+
188
+ ## `--slds-g-font-lineheight-*`
189
+
190
+ ### Description
191
+
192
+ Line height values that control vertical spacing between lines of text. These unitless values are multiplied by the font size to calculate the actual line height.
193
+
194
+ **Hook Pattern:** `--slds-g-font-lineheight-{level}` where `{level}` is the line height level
195
+
196
+ **Usage Guidance:**
197
+ - **Tight spacing (1-2):** Single-line text, headings
198
+ - **Standard spacing (3-4):** Body text, paragraphs (lineheight-4 recommended for body)
199
+ - **Spacious (5-6):** Enhanced readability, special cases
200
+
201
+ ### Usage
202
+
203
+ #### Do
204
+
205
+ - Use lineheight-4 (1.5) as the default for most body text and paragraphs
206
+ - Use lineheight-2 or lineheight-3 (1.25-1.375) for headings and titles
207
+ - Use lineheight-1 (1) for single-line text or badges
208
+ - Use lineheight-5 (1.75) for enhanced readability in long-form content
209
+ - Use tighter line heights for larger font scales (headings)
210
+ - Use more generous line heights for smaller font scales (body text)
211
+ - Unitless values scale proportionally with font size
212
+
213
+ #### Don't
214
+
215
+ - Avoid using lineheight-1 (1) for multi-line text (reduces readability)
216
+ - Avoid using lineheight-6 (2) for standard body text (excessive spacing)
217
+ - Avoid inconsistent line height values within related content
218
+ - Avoid line heights that create awkward vertical rhythm
219
+ - Avoid tight line heights (below 1.25) for body text
220
+ - Avoid overly generous line heights that disrupt reading flow
221
+
222
+ #### Context
223
+
224
+ - All multi-line text content
225
+ - Body text and paragraphs (lineheight-4 recommended)
226
+ - Headings and titles (lineheight-2 or lineheight-3)
227
+ - Single-line text elements (lineheight-1)
228
+ - Form field text and labels
229
+ - List items and table content
230
+ - Long-form content and articles
231
+
232
+ ### Accessibility
233
+
234
+ - Line height significantly impacts readability for all users
235
+ - Use minimum 1.5 line height for body text (WCAG 1.4.12 Text Spacing)
236
+ - Adequate line height helps users with dyslexia and other reading difficulties
237
+ - Line heights below 1.25 for multi-line text may fail accessibility requirements
238
+ - Generous line heights (1.5-1.75) improve scanning and comprehension
239
+ - Line height affects the overall vertical rhythm and scanability of content
240
+ - Ensure line height accommodates descenders and ascenders without clipping
241
+
242
+ ---
243
+
244
+ ## `--slds-g-sizing-content-*`
245
+
246
+ ### Description
247
+
248
+ Character-based width constraints for readable text content. These hooks use the `ch` unit to prevent text lines from becoming too long and difficult to read.
249
+
250
+ **Hook Pattern:** `--slds-g-sizing-content-{level}` where `{level}` is the content width level
251
+
252
+ **Usage Guidance:**
253
+ - **content-1:** Very narrow content, short text blocks
254
+ - **content-2:** Narrow columns, captions and descriptions
255
+ - **content-3:** Optimal reading width for body text (recommended)
256
+
257
+ ### Usage
258
+
259
+ #### Do
260
+
261
+ - Use sizing-content-3 (60ch) for optimal paragraph readability
262
+ - Use sizing-content-2 (45ch) for narrower columns or sidebars
263
+ - Use sizing-content-1 (20ch) for very short text blocks or labels
264
+ - Apply sizing-content hooks as max-width on text containers to prevent overly long lines
265
+ - 45-75 characters per line is optimal for readability
266
+ - Combine sizing-content hooks with appropriate padding for comfortable reading experience
267
+
268
+ #### Don't
269
+
270
+ - Avoid using content sizing hooks for non-text elements (use sizing hooks instead)
271
+ - Avoid letting body text extend beyond 75-80 characters per line
272
+ - Avoid using content sizing for headings (use heading sizing hooks)
273
+ - Avoid applying rigid width constraints where responsive behavior is needed
274
+ - Avoid very narrow widths (below 20ch) for multi-line body text
275
+ - Avoid using ch units for layouts unrelated to text content
276
+
277
+ #### Context
278
+
279
+ - Paragraph text and body content containers
280
+ - Article or blog post content areas
281
+ - Text blocks within cards or panels
282
+ - Description text and longer form labels
283
+ - Caption and secondary text containers
284
+ - Long-form content that needs readable line lengths
285
+
286
+ ### Accessibility
287
+
288
+ - Optimal line length (45-75 characters) significantly improves readability
289
+ - Overly long lines force excessive eye movement and reduce comprehension
290
+ - Character-based width constraints adapt naturally to font size changes
291
+ - Appropriate line length helps users with dyslexia and reading difficulties
292
+ - Ensures comfortable reading experience for all users regardless of viewport size
293
+ - Test content widths with actual text content at various font scales
294
+
295
+ ---
296
+
297
+ ## `--slds-g-sizing-heading-*`
298
+
299
+ ### Description
300
+
301
+ Character-based width constraints for heading text. Headings typically require shorter line lengths than body text for optimal readability and visual impact.
302
+
303
+ **Hook Pattern:** `--slds-g-sizing-heading-{level}` where `{level}` is the heading width level
304
+
305
+ **Usage Guidance:**
306
+ - **heading-1:** Very short headings, compact spaces
307
+ - **heading-2:** Standard heading width (recommended)
308
+ - **heading-3:** Longer headings, subheadings
309
+
310
+ ### Usage
311
+
312
+ #### Do
313
+
314
+ - Use sizing-heading-2 (25ch) as the default for most headings
315
+ - Use sizing-heading-1 (20ch) for short, punchy headings in cards or panels
316
+ - Use sizing-heading-3 (35ch) for longer headings or subheadings
317
+ - Apply sizing-heading hooks as max-width on heading elements to prevent awkward line breaks
318
+ - Shorter line lengths enhance heading scannability
319
+ - Combine sizing-heading hooks with appropriate font scales and weights for clear hierarchy
320
+
321
+ #### Don't
322
+
323
+ - Avoid using heading sizing hooks for body text (use content sizing hooks)
324
+ - Avoid letting headings extend beyond 35-40 characters
325
+ - Avoid rigid width constraints that create awkward wrapping
326
+ - Avoid applying heading widths to non-heading text elements
327
+ - Avoid very narrow constraints that force single-word lines
328
+ - Avoid using heading sizing for display text (large scales 7-8)
329
+
330
+ #### Context
331
+
332
+ - Page titles and section headings
333
+ - Card and panel headings
334
+ - Modal and dialog titles
335
+ - Component headings and labels
336
+ - Subheadings and secondary titles
337
+ - Navigation headers
338
+
339
+ ### Accessibility
340
+
341
+ - Appropriate heading width improves scannability for all users
342
+ - Short, focused headings are easier to process and remember
343
+ - Character-based constraints scale naturally with font size and user preferences
344
+ - Headings serve as navigation landmarks for screen reader users
345
+ - Ensure headings remain readable and don't wrap awkwardly at different viewport sizes
346
+ - Test heading widths with various lengths and languages for internationalization
347
+
348
+ ---
349
+
350
+ ## `--slds-g-font-scale-var-*`
351
+
352
+ ### Description
353
+
354
+ Density-aware font scale hooks that automatically adapt text size when the system switches between comfy and compact display density settings.
355
+
356
+ **Hook Pattern:** `--slds-g-font-scale-var-{size}` where `{size}` is the density-aware scale step
357
+
358
+ These hooks provide the same scale categories as fixed font-scale hooks but respond to user density preferences.
359
+
360
+ ### Usage
361
+
362
+ #### Do
363
+
364
+ - Use density-aware font scales for components in data-dense contexts (tables, lists, forms)
365
+ - Use density-aware font scales when users need control over information density and text size
366
+ - Use density-aware font scales for components that appear differently in comfy vs. compact settings
367
+ - Use density-aware font scales when text sizing should respond to user preferences automatically
368
+ - Density-aware hooks maintain readability across both density modes
369
+ - Use density-aware font scales for form labels, table text, and list content that benefits from density control
370
+
371
+ #### Don't
372
+
373
+ - Avoid using density-aware scales when fixed sizing is required for consistency
374
+ - Avoid mixing density-aware and fixed font scales inconsistently within the same component
375
+ - Avoid assuming only one density mode will be used
376
+ - Avoid using density-aware hooks for display text or hero sections (remain fixed)
377
+ - Avoid applying density-aware scales to branding elements that must remain consistent
378
+
379
+ #### Context
380
+
381
+ - Data tables and grid text
382
+ - Form field labels and input text
383
+ - List items and navigation text
384
+ - Card content that adapts to density
385
+ - Toolbar and action bar text
386
+ - Any component where density-aware sizing improves usability
387
+
388
+ ### Accessibility
389
+
390
+ - Density-aware fonts support user preferences for information density
391
+ - Compact mode must maintain minimum readable font sizes (12px+)
392
+ - Ensure text remains legible at the smallest density-aware scale values
393
+ - Both comfy and compact modes must meet WCAG 2.1 text size requirements
394
+ - Test density-aware typography with actual content in both modes
395
+ - Users with low vision may prefer comfy mode for larger text
396
+
397
+ > **For complete density-aware font scale details** including comfy and compact values, see the [Spacing and Sizing Hooks](ref:slds.guidance.hooks.spacing) for density-aware values.
398
+
399
+ ---
400
+
401
+ ## `--slds-g-font-lineheight-var-base`
402
+
403
+ ### Description
404
+
405
+ Density-aware line height hook that automatically adjusts vertical text spacing based on user density preferences.
406
+
407
+ **Hook Pattern:** `--slds-g-font-lineheight-var-base`
408
+
409
+ This hook provides appropriate line height for body text in both comfy and compact density modes.
410
+
411
+ ### Usage
412
+
413
+ #### Do
414
+
415
+ - Use lineheight-var-base for body text in density-aware components
416
+ - Use lineheight-var-base for text in tables, lists, and forms that adapt to density
417
+ - Use lineheight-var-base when combined with density-aware font scale hooks
418
+ - Apply lineheight-var-base to any text that should adjust vertical spacing with density changes
419
+ - This hook maintains readability while supporting density preferences
420
+
421
+ #### Don't
422
+
423
+ - Avoid using density-aware line height when fixed spacing is required
424
+ - Avoid mixing density-aware and fixed line heights inconsistently
425
+ - Avoid assuming only one density mode will be used
426
+ - Avoid using for headings or display text (typically remain fixed)
427
+ - Avoid applying to single-line text elements where line height doesn't impact layout
428
+
429
+ #### Context
430
+
431
+ - Body text in density-aware components
432
+ - Table cell text and data
433
+ - List item content
434
+ - Form field text
435
+ - Any multi-line text in components that adapt to density settings
436
+
437
+ ### Accessibility
438
+
439
+ - Appropriate line height is critical for readability in both density modes
440
+ - Compact mode must maintain minimum 1.25 line height for multi-line text
441
+ - Ensure text remains readable and doesn't feel cramped in compact mode
442
+ - Users with reading difficulties benefit from appropriate line height
443
+ - Both density modes should provide comfortable reading experience
444
+ - Test with actual content to verify readability at both settings
445
+
446
+ > **For complete density-aware line height details** including specific values and implementation patterns, see the [Spacing and Sizing Hooks](ref:slds.guidance.hooks.spacing) for density-aware values.
447
+
448
+
@@ -0,0 +1,119 @@
1
+ ---
2
+ id: slds.guidance.utilities.alignment
3
+ title: Alignment Utilities
4
+ description: SLDS alignment utility classes for centering content
5
+ summary: "Utility for absolute centering. Uses flexbox to center content both horizontally and vertically within containers."
6
+
7
+ artifact_type: reference
8
+ domain: utilities
9
+ topic: alignment
10
+
11
+ content_format: structured
12
+ complexity: intermediate
13
+ audience: [implementer]
14
+
15
+ tasks: [implement]
16
+
17
+ refs:
18
+ - slds.guidance.utilities
19
+ - slds.guidance.overview.utilities
20
+
21
+ tags: [utilities, alignment, centering, flexbox]
22
+ keywords: [slds-align, absolute-center, center-content, flexbox-center]
23
+ ---
24
+
25
+ # Alignment - Content Centering
26
+
27
+ Utility for absolute centering of content within containers.
28
+
29
+ ## Core Classes
30
+
31
+ | Class | Purpose |
32
+ |-------|---------|
33
+ | `slds-align_absolute-center` | Centers children both horizontally and vertically using flexbox |
34
+
35
+ ## Common Patterns
36
+
37
+ ### Center Content in Container
38
+ ```html
39
+ <!-- Center a single element -->
40
+ <div class="slds-align_absolute-center" style="height: 200px;">
41
+ <div class="slds-box">
42
+ Centered Content
43
+ </div>
44
+ </div>
45
+ ```
46
+
47
+ ### Center Modal Dialog
48
+ ```html
49
+ <!-- Center a modal in viewport -->
50
+ <div class="slds-backdrop slds-backdrop_open">
51
+ <div class="slds-align_absolute-center" style="height: 100vh;">
52
+ <section class="slds-modal slds-fade-in-open">
53
+ <div class="slds-modal__container">
54
+ <!-- Modal content -->
55
+ </div>
56
+ </section>
57
+ </div>
58
+ </div>
59
+ ```
60
+
61
+ ### Center Loading Spinner
62
+ ```html
63
+ <!-- Center spinner in card -->
64
+ <article class="slds-card">
65
+ <div class="slds-align_absolute-center" style="height: 300px;">
66
+ <div class="slds-spinner slds-spinner_medium">
67
+ <span class="slds-assistive-text">Loading</span>
68
+ <div class="slds-spinner__dot-a"></div>
69
+ <div class="slds-spinner__dot-b"></div>
70
+ </div>
71
+ </div>
72
+ </article>
73
+ ```
74
+
75
+ ### Center Empty State Message
76
+ ```html
77
+ <!-- Center illustration and message -->
78
+ <div class="slds-align_absolute-center" style="min-height: 400px;">
79
+ <div class="slds-illustration slds-illustration_small">
80
+ <img src="/assets/images/illustrations/empty-state.svg" alt="" />
81
+ <h3 class="slds-text-heading_medium">No items to display</h3>
82
+ <p class="slds-text-body_regular">Get started by creating your first item</p>
83
+ </div>
84
+ </div>
85
+ ```
86
+
87
+ ### Center Icon in Fixed Container
88
+ ```html
89
+ <!-- Center icon in square container -->
90
+ <div class="slds-align_absolute-center" style="width: 100px; height: 100px; background: #f3f3f3;">
91
+ <span class="slds-icon_container slds-icon-utility-check">
92
+ <svg class="slds-icon slds-icon_small">
93
+ <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#check"></use>
94
+ </svg>
95
+ </span>
96
+ </div>
97
+ ```
98
+
99
+ ## Best Practices
100
+
101
+ ✅ Use `slds-align_absolute-center` when content needs to be centered both horizontally and vertically
102
+ ✅ Set explicit height on the container for vertical centering to work properly
103
+ ✅ Combine with other layout utilities like `slds-box` or `slds-card` for complete designs
104
+ ✅ Use for centering single elements or grouped content within defined containers
105
+
106
+ ❌ Avoid using on elements without defined height - vertical centering requires container height
107
+ ❌ Do not use for text alignment - use `slds-text-align_center` for inline text centering
108
+ ❌ Avoid nesting multiple `slds-align_absolute-center` classes unnecessarily
109
+
110
+ ## Technical Details
111
+
112
+ The `slds-align_absolute-center` class applies these CSS properties:
113
+ - `display: flex` - Creates a flex container
114
+ - `justify-content: center` - Centers content horizontally
115
+ - `align-content: center` - Centers flex lines
116
+ - `align-items: center` - Centers content vertically
117
+ - `margin: auto` - Ensures proper centering within parent
118
+
119
+ This utility leverages flexbox for reliable cross-browser centering without requiring absolute positioning or transform calculations.
@@ -0,0 +1,131 @@
1
+ ---
2
+ id: slds.guidance.utilities.borders
3
+ title: Borders Utilities
4
+ description: SLDS directional border utility classes
5
+ summary: "Utilities for applying borders to specific edges of elements."
6
+
7
+ artifact_type: reference
8
+ domain: utilities
9
+ topic: borders
10
+
11
+ content_format: structured
12
+ complexity: intermediate
13
+ audience: [implementer]
14
+
15
+ tasks: [implement]
16
+
17
+ refs:
18
+ - slds.guidance.utilities
19
+ - slds.guidance.overview.utilities
20
+ - slds.guidance.utilities.box
21
+ - slds.guidance.utilities.margin
22
+ - slds.guidance.utilities.padding
23
+ - slds.guidance.hooks.borders
24
+
25
+ tags: [utilities, borders]
26
+ keywords: [slds-border_top, slds-border_bottom, slds-border_left, slds-border_right]
27
+ ---
28
+
29
+ # Borders - Directional Border Utilities
30
+
31
+ Utilities for applying 1px solid borders to specific edges of elements.
32
+
33
+ ## Core Classes
34
+
35
+ | Class | Purpose |
36
+ |-------|---------|
37
+ | `slds-border_top` | Adds a 1px solid border to the top edge |
38
+ | `slds-border_bottom` | Adds a 1px solid border to the bottom edge |
39
+ | `slds-border_left` | Adds a 1px solid border to the left edge |
40
+ | `slds-border_right` | Adds a 1px solid border to the right edge |
41
+
42
+ **Properties**: All borders use `var(--slds-g-sizing-border-1)` (1px) width and `var(--slds-g-color-border-1)` color.
43
+
44
+ ## Common Patterns
45
+
46
+ ### Section Divider
47
+ ```html
48
+ <!-- Divider between content sections -->
49
+ <section class="slds-border_bottom slds-p-vertical_medium">
50
+ <h2>Section Title</h2>
51
+ <p>Section content here</p>
52
+ </section>
53
+ ```
54
+
55
+ ### Accent Bar Card
56
+ ```html
57
+ <!-- Card with colored left accent border -->
58
+ <div class="slds-card slds-border_left" style="border-left-width: 4px; border-left-color: var(--slds-g-color-brand-base-60);">
59
+ <div class="slds-card__body">
60
+ <h3>Featured Content</h3>
61
+ <p>Card content with brand accent</p>
62
+ </div>
63
+ </div>
64
+ ```
65
+
66
+ ### Status Message with Border Accent
67
+ ```html
68
+ <!-- Success message with green left border -->
69
+ <div class="slds-p-around_medium slds-border_left" style="border-left-width: 4px; border-left-color: var(--slds-g-color-success-base-50);">
70
+ <strong>Success:</strong> Record saved successfully.
71
+ </div>
72
+ ```
73
+
74
+ ### Top Border for Card Header
75
+ ```html
76
+ <!-- Card with top border separator -->
77
+ <div class="slds-card">
78
+ <div class="slds-card__header slds-border_top">
79
+ <h2 class="slds-card__header-title">Card Title</h2>
80
+ </div>
81
+ <div class="slds-card__body slds-card__body_inner">
82
+ Card content
83
+ </div>
84
+ </div>
85
+ ```
86
+
87
+ ### Bottom Border for List Items
88
+ ```html
89
+ <!-- List with bottom borders -->
90
+ <ul class="slds-has-dividers_bottom-space">
91
+ <li class="slds-item slds-border_bottom slds-p-vertical_small">
92
+ List item one
93
+ </li>
94
+ <li class="slds-item slds-border_bottom slds-p-vertical_small">
95
+ List item two
96
+ </li>
97
+ <li class="slds-item slds-p-vertical_small">
98
+ List item three (no border)
99
+ </li>
100
+ </ul>
101
+ ```
102
+
103
+ ## Best Practices
104
+
105
+ ✅ Use `slds-border_bottom` for section dividers
106
+ ✅ Use `slds-border_left` with 4px width for accent bars on cards and messages
107
+ ✅ Combine border utilities with spacing utilities for layout control
108
+ ✅ Use inline styles with design tokens for custom border colors
109
+ ✅ Use `slds-border_top` for visual separation in card headers
110
+
111
+ ❌ Never apply multiple directional border classes to the same element
112
+ ❌ Never use arbitrary color values instead of design tokens
113
+ ❌ Never override the default 1px width without specific design requirements
114
+ ❌ Never use border utilities when a component has built-in border styling
115
+
116
+ ## Token Reference
117
+
118
+ ### Border Tokens
119
+ - **Width**: `var(--slds-g-sizing-border-1)` (1px)
120
+ - **Color**: `var(--slds-g-color-border-1)` (default gray)
121
+
122
+ ### Common Color Overrides
123
+ - **Brand**: `var(--slds-g-color-brand-base-60)`
124
+ - **Success**: `var(--slds-g-color-success-base-50)`
125
+ - **Warning**: `var(--slds-g-color-warning-base-60)`
126
+ - **Error**: `var(--slds-g-color-error-base-50)`
127
+
128
+ ## Related Utilities
129
+
130
+ - **Box Utilities** - For containers with borders and padding, see [Box Utilities](ref:slds.guidance.utilities.box)
131
+ - **Spacing Utilities** - For padding and margins, see [Margin](ref:slds.guidance.utilities.margin) and [Padding](ref:slds.guidance.utilities.padding) utilities