@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.
- package/package.json +1 -1
- package/skills/activating-datacloud/SKILL.md +0 -1
- package/skills/analyzing-omnistudio-dependencies/SKILL.md +0 -1
- package/skills/applying-slds/SKILL.md +322 -0
- package/skills/applying-slds/checklists.md +83 -0
- package/skills/applying-slds/examples.md +283 -0
- package/skills/applying-slds/guidance/README.md +83 -0
- package/skills/applying-slds/guidance/blueprints-index.md +213 -0
- package/skills/applying-slds/guidance/icons-guidance.md +186 -0
- package/skills/applying-slds/guidance/overviews/borders.md +236 -0
- package/skills/applying-slds/guidance/overviews/color.md +266 -0
- package/skills/applying-slds/guidance/overviews/display-density.md +366 -0
- package/skills/applying-slds/guidance/overviews/icons.md +240 -0
- package/skills/applying-slds/guidance/overviews/illustrations.md +235 -0
- package/skills/applying-slds/guidance/overviews/shadows.md +176 -0
- package/skills/applying-slds/guidance/overviews/spacing.md +216 -0
- package/skills/applying-slds/guidance/overviews/typography.md +323 -0
- package/skills/applying-slds/guidance/overviews/utilities.md +542 -0
- package/skills/applying-slds/guidance/slds-development-guide.md +288 -0
- package/skills/applying-slds/guidance/styling-hooks/borders.md +202 -0
- package/skills/applying-slds/guidance/styling-hooks/color/expressive-palette-hooks.md +153 -0
- package/skills/applying-slds/guidance/styling-hooks/color/index.md +171 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/accent-hooks.md +204 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/feedback-hooks.md +768 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/surface-hooks.md +337 -0
- package/skills/applying-slds/guidance/styling-hooks/color/system-hooks.md +132 -0
- package/skills/applying-slds/guidance/styling-hooks/index.md +327 -0
- package/skills/applying-slds/guidance/styling-hooks/shadows.md +238 -0
- package/skills/applying-slds/guidance/styling-hooks/spacing.md +254 -0
- package/skills/applying-slds/guidance/styling-hooks/typography.md +448 -0
- package/skills/applying-slds/guidance/utilities/alignment.md +119 -0
- package/skills/applying-slds/guidance/utilities/borders.md +131 -0
- package/skills/applying-slds/guidance/utilities/box.md +125 -0
- package/skills/applying-slds/guidance/utilities/color.md +165 -0
- package/skills/applying-slds/guidance/utilities/dark-mode.md +111 -0
- package/skills/applying-slds/guidance/utilities/description-list.md +168 -0
- package/skills/applying-slds/guidance/utilities/floats.md +117 -0
- package/skills/applying-slds/guidance/utilities/grid.md +264 -0
- package/skills/applying-slds/guidance/utilities/horizontal-list.md +110 -0
- package/skills/applying-slds/guidance/utilities/hyphenation.md +84 -0
- package/skills/applying-slds/guidance/utilities/index.md +205 -0
- package/skills/applying-slds/guidance/utilities/interactions.md +89 -0
- package/skills/applying-slds/guidance/utilities/layout.md +109 -0
- package/skills/applying-slds/guidance/utilities/line-clamp.md +131 -0
- package/skills/applying-slds/guidance/utilities/margin.md +155 -0
- package/skills/applying-slds/guidance/utilities/media-object.md +161 -0
- package/skills/applying-slds/guidance/utilities/name-value-list.md +152 -0
- package/skills/applying-slds/guidance/utilities/padding.md +155 -0
- package/skills/applying-slds/guidance/utilities/position.md +177 -0
- package/skills/applying-slds/guidance/utilities/print.md +114 -0
- package/skills/applying-slds/guidance/utilities/scrollable.md +126 -0
- package/skills/applying-slds/guidance/utilities/sizing.md +190 -0
- package/skills/applying-slds/guidance/utilities/themes.md +121 -0
- package/skills/applying-slds/guidance/utilities/truncate.md +127 -0
- package/skills/applying-slds/guidance/utilities/typography.md +166 -0
- package/skills/applying-slds/guidance/utilities/vertical-list.md +166 -0
- package/skills/applying-slds/guidance/utilities/visibility.md +228 -0
- package/skills/applying-slds/metadata/README.md +84 -0
- package/skills/applying-slds/metadata/blueprints/components/accordion.yaml +304 -0
- package/skills/applying-slds/metadata/blueprints/components/activity-timeline.yaml +92 -0
- package/skills/applying-slds/metadata/blueprints/components/alert.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/app-launcher.yaml +94 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar-group.yaml +81 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/badges.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/brand-band.yaml +198 -0
- package/skills/applying-slds/metadata/blueprints/components/breadcrumbs.yaml +95 -0
- package/skills/applying-slds/metadata/blueprints/components/builder-header.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/button-groups.yaml +82 -0
- package/skills/applying-slds/metadata/blueprints/components/button-icons.yaml +295 -0
- package/skills/applying-slds/metadata/blueprints/components/buttons.yaml +230 -0
- package/skills/applying-slds/metadata/blueprints/components/cards.yaml +124 -0
- package/skills/applying-slds/metadata/blueprints/components/carousel.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/chat.yaml +179 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button-group.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button.yaml +204 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-toggle.yaml +177 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/color-picker.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/combobox.yaml +136 -0
- package/skills/applying-slds/metadata/blueprints/components/counter.yaml +147 -0
- package/skills/applying-slds/metadata/blueprints/components/data-tables.yaml +157 -0
- package/skills/applying-slds/metadata/blueprints/components/datepickers.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/datetime-picker.yaml +155 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-composer.yaml +201 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-form-footer.yaml +161 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-utility-bar.yaml +175 -0
- package/skills/applying-slds/metadata/blueprints/components/drop-zone.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/dueling-picklist.yaml +196 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-icons.yaml +128 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-menu.yaml +141 -0
- package/skills/applying-slds/metadata/blueprints/components/expandable-section.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/expression.yaml +143 -0
- package/skills/applying-slds/metadata/blueprints/components/feeds.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/file-selector.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/files.yaml +119 -0
- package/skills/applying-slds/metadata/blueprints/components/form-element.yaml +145 -0
- package/skills/applying-slds/metadata/blueprints/components/global-header.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/global-navigation.yaml +100 -0
- package/skills/applying-slds/metadata/blueprints/components/icons.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/illustration.yaml +205 -0
- package/skills/applying-slds/metadata/blueprints/components/input.yaml +151 -0
- package/skills/applying-slds/metadata/blueprints/components/list-builder.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/lookups.yaml +132 -0
- package/skills/applying-slds/metadata/blueprints/components/map.yaml +118 -0
- package/skills/applying-slds/metadata/blueprints/components/menus.yaml +134 -0
- package/skills/applying-slds/metadata/blueprints/components/modals.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/notifications.yaml +88 -0
- package/skills/applying-slds/metadata/blueprints/components/page-headers.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/panels.yaml +149 -0
- package/skills/applying-slds/metadata/blueprints/components/path.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/picklist.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/pills.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/popovers.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-bar.yaml +110 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-indicator.yaml +133 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-ring.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/prompt.yaml +126 -0
- package/skills/applying-slds/metadata/blueprints/components/publishers.yaml +178 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-button-group.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-group.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/rich-text-editor.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-notifications.yaml +188 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-tabs.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/select.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/setup-assistant.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/slider.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/spinners.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/split-view.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/summary-detail.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/tabs.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/textarea.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/tiles.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/timepicker.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/toast.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/tooltips.yaml +107 -0
- package/skills/applying-slds/metadata/blueprints/components/tree-grid.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trees.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trial-bar.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-navigation.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-tabs.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/visual-picker.yaml +150 -0
- package/skills/applying-slds/metadata/blueprints/components/welcome-mat.yaml +136 -0
- package/skills/applying-slds/metadata/hooks-index.json +6272 -0
- package/skills/applying-slds/metadata/icon-metadata.json +38466 -0
- package/skills/applying-slds/metadata/utilities-index.json +21912 -0
- package/skills/applying-slds/references/component-selection.md +112 -0
- package/skills/applying-slds/references/icons-decision-guide.md +124 -0
- package/skills/applying-slds/references/styling-decision-guide.md +228 -0
- package/skills/applying-slds/references/utilities-quick-ref.md +125 -0
- package/skills/applying-slds/scripts/search-blueprints.cjs +117 -0
- package/skills/applying-slds/scripts/search-hooks.cjs +139 -0
- package/skills/applying-slds/scripts/search-icons.cjs +174 -0
- package/skills/applying-slds/scripts/search-utilities.cjs +161 -0
- package/skills/building-mobile-apps/SKILL.md +0 -1
- package/skills/building-omnistudio-callable-apex/SKILL.md +0 -1
- package/skills/building-omnistudio-datamapper/SKILL.md +0 -1
- package/skills/building-omnistudio-flexcard/SKILL.md +0 -1
- package/skills/building-omnistudio-integration-procedure/SKILL.md +0 -1
- package/skills/building-omnistudio-omniscript/SKILL.md +0 -1
- package/skills/building-sf-integrations/SKILL.md +0 -1
- package/skills/configuring-connected-apps/SKILL.md +0 -1
- package/skills/connecting-datacloud/SKILL.md +0 -1
- package/skills/creating-b2b-commerce-store/SKILL.md +0 -1
- package/skills/debugging-apex-logs/SKILL.md +0 -1
- package/skills/deploying-metadata/SKILL.md +0 -1
- package/skills/deploying-omnistudio-datapacks/SKILL.md +0 -1
- package/skills/developing-agentforce/SKILL.md +0 -1
- package/skills/fetching-salesforce-docs/SKILL.md +0 -1
- package/skills/generating-custom-lightning-type/SKILL.md +17 -39
- package/skills/generating-custom-lightning-type/assets/primitive-types-and-constraints.md +41 -0
- package/skills/generating-custom-lightning-type/references/widget-rendition.md +124 -0
- package/skills/generating-lwc-components/SKILL.md +0 -1
- package/skills/generating-mermaid-diagrams/SKILL.md +0 -1
- package/skills/generating-visual-diagrams/SKILL.md +0 -1
- package/skills/handling-sf-data/SKILL.md +0 -1
- package/skills/harmonizing-datacloud/SKILL.md +0 -1
- package/skills/integrating-b2b-commerce-open-code-components/SKILL.md +0 -1
- package/skills/investigating-agentforce-architecture/README.md +156 -0
- package/skills/investigating-agentforce-architecture/SKILL.md +230 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_sobject.yaml +16 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_tooling_sobject.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/list_metadata_genaiprompttemplate.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/org_display.yaml +15 -0
- package/skills/investigating-agentforce-architecture/assets/cli/retrieve_genai_plugin.yaml +18 -0
- package/skills/investigating-agentforce-architecture/assets/cli/show_access_token.yaml +27 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/action_tree.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/data_flow.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/dependency_graph.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/invocation_sequence.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/planner_state.mmd +18 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_definition_details.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_version_lookup.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_ids_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_view_by_durable_ids.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_metadata_by_id.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/functions_by_plugins.soql +5 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_attrs_by_parent_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_bundle_functions.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_definition_by_agent_chain.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_functions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_instructions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugins_by_planner.soql +4 -0
- package/skills/investigating-agentforce-architecture/references/architecture_sections.md +243 -0
- package/skills/investigating-agentforce-architecture/references/contract.json +244 -0
- package/skills/investigating-agentforce-architecture/references/soql_fields.md +512 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/__init__.py +1 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/fs_guard.py +329 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/paths.py +110 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/sql.py +10 -0
- package/skills/investigating-agentforce-architecture/scripts/cache_check.py +234 -0
- package/skills/investigating-agentforce-architecture/scripts/config.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/fetch_soql.py +689 -0
- package/skills/investigating-agentforce-architecture/scripts/finalize.py +295 -0
- package/skills/investigating-agentforce-architecture/scripts/main.py +2835 -0
- package/skills/investigating-agentforce-architecture/scripts/metadata_listing.py +265 -0
- package/skills/investigating-agentforce-architecture/scripts/parallel_retrieve.py +69 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_bundle.py +215 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_wave.py +845 -0
- package/skills/investigating-agentforce-architecture/scripts/probe_channels.py +302 -0
- package/skills/investigating-agentforce-architecture/scripts/render_architecture.py +1043 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_bot.py +255 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_invocation_target.py +130 -0
- package/skills/investigating-agentforce-architecture/scripts/rest_client.py +763 -0
- package/skills/investigating-agentforce-architecture/scripts/retrieve_planner.py +13 -0
- package/skills/investigating-agentforce-architecture/scripts/sf_cli.py +242 -0
- package/skills/investigating-agentforce-architecture/scripts/soql_loader.py +253 -0
- package/skills/investigating-agentforce-architecture/scripts/summarize_tree.py +143 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/_bootstrap.py +23 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/genai_payloads.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check.py +307 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check_main.py +283 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_config.py +115 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_end_to_end_fixture.py +651 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_finalize.py +278 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_flow_children_inflation.py +582 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_fs_guard.py +113 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_iterative_wave_b.py +478 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_main_pipeline.py +3359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parallel_retrieve.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_bundle.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave.py +644 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_classifiers.py +224 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_helpers.py +380 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_main.py +397 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_per_branch_visited.py +244 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_channels.py +359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_cli_recipes.py +185 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_render_architecture.py +810 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_bot.py +203 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_creds.py +157 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_invocation_target.py +145 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_rest_client.py +1253 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_runtime_override.py +100 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_sf_cli.py +261 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_signature_stamping.py +466 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_soql_loader.py +501 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_summarize_tree.py +241 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_write_emit_ctx.py +480 -0
- package/skills/investigating-agentforce-architecture/tools/emit_env.py +157 -0
- package/skills/investigating-agentforce-architecture/tools/emit_result.py +262 -0
- package/skills/investigating-agentforce-architecture/tools/sanitize.py +33 -0
- package/skills/investigating-agentforce-architecture/tools/write_emit_ctx.py +332 -0
- package/skills/investigating-agentforce-d360/README.md +123 -0
- package/skills/investigating-agentforce-d360/SKILL.md +163 -0
- package/skills/investigating-agentforce-d360/assets/dc/app_generation.sql +51 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_category.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_quality.sql +41 -0
- package/skills/investigating-agentforce-d360/assets/dc/discover_sessions.sql +36 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback.sql +47 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback_details.sql +38 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_records.sql +45 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_llm.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_metadata.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_tags.sql +42 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_requests.sql +89 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_responses.sql +43 -0
- package/skills/investigating-agentforce-d360/assets/dc/generations.sql +52 -0
- package/skills/investigating-agentforce-d360/assets/dc/interactions.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messages.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messaging_session.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/moment_interactions.sql +34 -0
- package/skills/investigating-agentforce-d360/assets/dc/moments.sql +39 -0
- package/skills/investigating-agentforce-d360/assets/dc/participants.sql +48 -0
- package/skills/investigating-agentforce-d360/assets/dc/sessions.sql +78 -0
- package/skills/investigating-agentforce-d360/assets/dc/steps.sql +64 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_associations.sql +46 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definition_associations.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definitions.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/tags.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/telemetry_spans.sql +55 -0
- package/skills/investigating-agentforce-d360/references/artifacts.md +50 -0
- package/skills/investigating-agentforce-d360/references/dc_dmo_fields.md +823 -0
- package/skills/investigating-agentforce-d360/references/dc_pipeline_contract.md +608 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/__init__.py +2 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/cli_override.py +98 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/fs_guard.py +334 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/paths.py +155 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/sql.py +14 -0
- package/skills/investigating-agentforce-d360/scripts/assemble_dc.py +1624 -0
- package/skills/investigating-agentforce-d360/scripts/config.py +45 -0
- package/skills/investigating-agentforce-d360/scripts/dc.py +188 -0
- package/skills/investigating-agentforce-d360/scripts/discover_sessions.py +556 -0
- package/skills/investigating-agentforce-d360/scripts/fetch_dc.py +1045 -0
- package/skills/investigating-agentforce-d360/scripts/render_dc.py +1750 -0
- package/skills/investigating-agentforce-d360/scripts/resolve_session.py +264 -0
- package/skills/investigating-agentforce-d360/scripts/storage.py +92 -0
- package/skills/investigating-agentforce-d360/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/_bootstrap.py +15 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/synthetic_session.py +424 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_bootstrap_and_mode.py +115 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct_integration.py +158 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_helpers.py +287 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_integration.py +247 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_dc_and_resolve_session.py +433 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions.py +458 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions_grep_ci.py +193 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_helpers.py +266 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_identity.py +528 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_main.py +251 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall.py +229 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall_full.py +283 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_identity_coherence.py +327 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_branches.py +256 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_gateway_direct.py +130 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_helpers.py +291 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_integration.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_planner_llm_calls.py +284 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_show_prompts_gating.py +215 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_from_disk.py +100 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_session_main.py +149 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_runtime_override.py +104 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape.py +95 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape_dropped_by_stdm.py +85 -0
- package/skills/managing-managed-event-subscription/SKILL.md +152 -0
- package/skills/managing-managed-event-subscription/assets/managed-event-subscription-template.xml +20 -0
- package/skills/managing-managed-event-subscription/references/delete-guide.md +57 -0
- package/skills/managing-managed-event-subscription/references/topic-name-formats.md +26 -0
- package/skills/managing-managed-event-subscription/references/update-constraints.md +30 -0
- package/skills/modeling-omnistudio-epc-catalog/SKILL.md +0 -1
- package/skills/observing-agentforce/SKILL.md +0 -1
- package/skills/orchestrating-datacloud/SKILL.md +0 -1
- package/skills/preparing-datacloud/SKILL.md +0 -1
- package/skills/querying-soql/SKILL.md +0 -1
- package/skills/retrieving-datacloud/SKILL.md +0 -1
- package/skills/running-apex-tests/SKILL.md +0 -1
- package/skills/running-code-analyzer/SKILL.md +0 -1
- package/skills/segmenting-datacloud/SKILL.md +0 -1
- package/skills/testing-agentforce/SKILL.md +0 -1
- package/skills/uplifting-components-to-slds2/SKILL.md +3 -2
- package/skills/uplifting-components-to-slds2/references/color-hooks-decision-guide.md +30 -9
- package/skills/uplifting-components-to-slds2/references/examples.md +24 -6
- package/skills/validating-slds/SKILL.md +262 -0
- package/skills/validating-slds/references/quality-checks.md +308 -0
- package/skills/validating-slds/references/report-format.md +302 -0
- package/skills/validating-slds/scripts/analyze-quality.cjs +521 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: slds.guidance.overview.typography
|
|
3
|
+
title: Typography Overview
|
|
4
|
+
description: Foundational principles and guidance for implementing typography in SLDS
|
|
5
|
+
summary: "Comprehensive typography guidance covering system fonts, font scales, weights, line heights, and content width. Includes core principles, implementation workflow, and pre-implementation checklist."
|
|
6
|
+
|
|
7
|
+
artifact_type: overview
|
|
8
|
+
domain: overviews
|
|
9
|
+
topic: typography
|
|
10
|
+
|
|
11
|
+
content_format: narrative
|
|
12
|
+
complexity: foundational
|
|
13
|
+
audience: [implementer, designer]
|
|
14
|
+
|
|
15
|
+
tasks: [learn, choose, implement]
|
|
16
|
+
|
|
17
|
+
refs:
|
|
18
|
+
- slds.guidance.hooks.typography
|
|
19
|
+
|
|
20
|
+
tags: [typography, fonts, text, hierarchy, readability, accessibility]
|
|
21
|
+
keywords: [font scale, font weight, line height, system fonts, typography hierarchy, text sizing, legibility]
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Typography Guidance for SLDS Implementation
|
|
25
|
+
|
|
26
|
+
**Purpose:** This document provides the foundational principles and guidance for implementing typography in Salesforce Lightning Design System. When working with SLDS components and interfaces, follow these guidelines to ensure consistent, readable, and accessible typography across all experiences.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## About Typography
|
|
31
|
+
|
|
32
|
+
Typography is a cornerstone of any design system, shaping how users consume and understand content. In the Salesforce Lightning Design System (SLDS), typography is standardized to create a consistent, readable, and accessible experience across all products. SLDS uses a predefined set of font sizes, weights, and styles that adapt to various screen sizes and contexts.
|
|
33
|
+
|
|
34
|
+
The design system leverages system fonts provided by a user device's operating system, ensuring optimal performance and native feel across different platforms. The system font varies by device: SF Pro on macOS/iOS, Segoe UI on Windows, and Roboto on Android.
|
|
35
|
+
|
|
36
|
+
**Key Requirement:** Because typography establishes the foundation for content hierarchy and readability, implement SLDS typography styling hooks consistently across all interfaces. Typography choices directly impact user comprehension, task completion speed, and overall accessibility.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Core Principles
|
|
41
|
+
|
|
42
|
+
When working with typography in UI interfaces, adhere to these foundational principles:
|
|
43
|
+
|
|
44
|
+
1. **Prioritize legibility above all else.** To make text readable across devices and contexts, use appropriate font sizes and weights from the SLDS scale. Overly light or small text for essential content compromises usability and accessibility.
|
|
45
|
+
|
|
46
|
+
2. **Establish clear visual hierarchy.** To guide users through content efficiently, consistently apply the predefined heading styles, font scales, and text colors. Maintaining the SLDS typography scale creates predictable visual patterns that help users navigate complex interfaces.
|
|
47
|
+
|
|
48
|
+
3. **Use styling hooks for all typography.** To ensure consistency and receive automatic SLDS updates, use typography styling hooks instead of hardcoding font styles. Styling hooks provide resilience across theme changes and density settings.
|
|
49
|
+
|
|
50
|
+
4. **Meet accessibility requirements.** To make content accessible to all users, ensure proper contrast between text and background colors, use minimum font sizes for readability, and maintain appropriate line heights.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## System Fonts
|
|
55
|
+
|
|
56
|
+
SLDS leverages the native fonts provided by each operating system, creating a seamless, high-performance user experience that feels natural on every platform.
|
|
57
|
+
|
|
58
|
+
### Why System Fonts?
|
|
59
|
+
|
|
60
|
+
System fonts provide these benefits:
|
|
61
|
+
- **Optimal performance:** No font downloads required, reducing page load time
|
|
62
|
+
- **Native appearance:** Interfaces feel natural on each platform
|
|
63
|
+
- **Automatic updates:** Users benefit from OS-level font improvements
|
|
64
|
+
- **Consistent sizing:** All font weights and sizes remain identical across system fonts
|
|
65
|
+
|
|
66
|
+
### Fonts by Platform
|
|
67
|
+
|
|
68
|
+
The Figma library for SLDS 2 uses SF Pro as its primary typeface for design work. In production, the actual font rendered depends on the user's operating system:
|
|
69
|
+
|
|
70
|
+
| Platform | System Font | Usage |
|
|
71
|
+
|----------|-------------|-------|
|
|
72
|
+
| macOS, iOS | SF Pro | Apple devices and design tools |
|
|
73
|
+
| Windows | Segoe UI | Windows-based devices |
|
|
74
|
+
| Android | Roboto | Android devices |
|
|
75
|
+
|
|
76
|
+
### Download System Fonts
|
|
77
|
+
|
|
78
|
+
For design work in Figma or other design tools, download the appropriate system font:
|
|
79
|
+
|
|
80
|
+
- **[Download SF Pro](https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg)** - For macOS and iOS design work
|
|
81
|
+
- **[Download Segoe UI](https://aka.ms/WebFluentFonts)** - For Windows design work
|
|
82
|
+
- **[Download Roboto](https://fonts.google.com/specimen/Roboto)** - For Android design work
|
|
83
|
+
|
|
84
|
+
> **Important:** All font weights and sizes remain the same across all system fonts. A component designed with SF Pro will render identically in Segoe UI or Roboto in terms of sizing and spacing.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Font Scale System
|
|
89
|
+
|
|
90
|
+
The SLDS font scale provides a systematic range of font sizes that create consistent typographic hierarchy across all interfaces. Font sizes are scaled based on the `--slds-g-font-size-base` property, which sets the default font size of the application.
|
|
91
|
+
|
|
92
|
+
### How Font Scale Works
|
|
93
|
+
|
|
94
|
+
The font scale uses styling hooks to provide systematic text sizing across the interface.
|
|
95
|
+
|
|
96
|
+
**Hook Pattern:** `--slds-g-font-scale-{size}` where `{size}` is the scale step
|
|
97
|
+
|
|
98
|
+
**Base Size:** `--slds-g-font-size-base` sets the default font size of the application.
|
|
99
|
+
|
|
100
|
+
**Scale Categories:**
|
|
101
|
+
- **Body text:** Scales `neg-2` through `2`
|
|
102
|
+
- **Headings/Titles:** Scales `3` through `6`
|
|
103
|
+
- **Display text:** Scales `6` through `8`
|
|
104
|
+
|
|
105
|
+
Use smaller scales for compact interfaces and larger scales for prominent content.
|
|
106
|
+
|
|
107
|
+
> **Note:** In SLDS 2, font sizes differ slightly from the original Salesforce Lightning Design System (SLDS 1). Review your components to verify the new type scale specification when migrating from SLDS 1 to SLDS 2.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Font Weight System
|
|
112
|
+
|
|
113
|
+
SLDS 2 uses font weights to maintain clarity and consistency across all platforms. Each weight serves a specific purpose in the typographic hierarchy.
|
|
114
|
+
|
|
115
|
+
### Available Font Weights
|
|
116
|
+
|
|
117
|
+
SLDS 2 uses four primary font weights to maintain clarity and consistency.
|
|
118
|
+
|
|
119
|
+
**Hook Pattern:** `--slds-g-font-weight-{weight}` where `{weight}` is the font weight level
|
|
120
|
+
|
|
121
|
+
**Primary Weights:**
|
|
122
|
+
- **Light (weight-3):** Display text at `font-scale-7` and above
|
|
123
|
+
- **Regular (weight-4):** Titles (`font-scale-3` through `font-scale-6`) and all body text
|
|
124
|
+
- **Semibold (weight-6):** Buttons and smaller body titles (`font-size-base` through `font-scale-2`)
|
|
125
|
+
- **Bold (weight-7):** Emphasis within body text only, never for headings
|
|
126
|
+
|
|
127
|
+
> **Important:** Do not use font weights lighter than Regular (weight-4) for body text or small sizes, as they compromise readability and accessibility.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Font Color for Typography
|
|
132
|
+
|
|
133
|
+
Typography colors in SLDS use semantic color tokens to ensure proper contrast and accessibility across all surfaces and themes. The color system is designed to work seamlessly with both light and dark backgrounds.
|
|
134
|
+
|
|
135
|
+
### On-Surface Colors for Text
|
|
136
|
+
|
|
137
|
+
For text on light backgrounds (surfaces), use the on-surface token hierarchy:
|
|
138
|
+
|
|
139
|
+
- **`--slds-g-color-on-surface-1`** - De-emphasized text (captions, placeholders, secondary content)
|
|
140
|
+
- **`--slds-g-color-on-surface-2`** - Body text (standard content, labels, descriptions)
|
|
141
|
+
- **`--slds-g-color-on-surface-3`** - Headings and titles only (reserved for headings, not body text)
|
|
142
|
+
|
|
143
|
+
For text on dark backgrounds, use:
|
|
144
|
+
|
|
145
|
+
- **`--slds-g-color-on-surface-inverse-1`** - Primary foreground color for inverse surfaces
|
|
146
|
+
- **`--slds-g-color-on-surface-inverse-2`** - Secondary foreground color for inverse surfaces
|
|
147
|
+
|
|
148
|
+
### Specialized Text Colors
|
|
149
|
+
|
|
150
|
+
For specific text contexts, use these tokens:
|
|
151
|
+
|
|
152
|
+
- **Text links:** Use `--slds-g-color-accent-2` (electric blue 40) for accessible links on light backgrounds
|
|
153
|
+
- **Error messages:** Use `--slds-g-color-error-1` or `--slds-g-color-on-error-1` as appropriate
|
|
154
|
+
- **Warning messages:** Use `--slds-g-color-warning-1` or `--slds-g-color-on-warning-1` as appropriate
|
|
155
|
+
- **Success messages:** Use `--slds-g-color-success-1` or `--slds-g-color-on-success-1` as appropriate
|
|
156
|
+
|
|
157
|
+
> **For complete typography color guidance** including pairing rules, contrast requirements, and accessibility requirements, see the Surface Color Styling Hooks documentation.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Type Styles
|
|
162
|
+
|
|
163
|
+
A type style is a combination of font scale, weight, and line height designed for a specific purpose. SLDS has three type styles: body, title, and display. Each type style serves a distinct role in the content hierarchy.
|
|
164
|
+
|
|
165
|
+
### Body Type
|
|
166
|
+
|
|
167
|
+
Text that conveys details in the form of phrases, labels, sentences, or blocks of copy.
|
|
168
|
+
|
|
169
|
+
**Recommended Scales:** `--slds-g-font-scale-neg-2` through `--slds-g-font-scale-2`
|
|
170
|
+
**Recommended Weights:** Regular (weight-4), Semibold (weight-6) for emphasis
|
|
171
|
+
|
|
172
|
+
**When to use:**
|
|
173
|
+
- Paragraph content and long-form text
|
|
174
|
+
- Form labels and input text
|
|
175
|
+
- List items and table cells
|
|
176
|
+
- Button text (with semibold weight)
|
|
177
|
+
|
|
178
|
+
### Title Type
|
|
179
|
+
|
|
180
|
+
Headings of components or body content that establish hierarchy and structure.
|
|
181
|
+
|
|
182
|
+
**Recommended Scales:** `--slds-g-font-scale-3` through `--slds-g-font-scale-6`
|
|
183
|
+
**Recommended Weights:** Regular (weight-4), Semibold (weight-6)
|
|
184
|
+
|
|
185
|
+
**When to use:**
|
|
186
|
+
- Page titles and section headings
|
|
187
|
+
- Card and panel headings
|
|
188
|
+
- Modal and dialog titles
|
|
189
|
+
- Navigation headers
|
|
190
|
+
|
|
191
|
+
### Display Type
|
|
192
|
+
|
|
193
|
+
Short titles in banners or prominent sections to make a bold visual statement.
|
|
194
|
+
|
|
195
|
+
**Recommended Scales:** `--slds-g-font-scale-6` through `--slds-g-font-scale-8`
|
|
196
|
+
**Recommended Weights:** Light (weight-3)
|
|
197
|
+
|
|
198
|
+
**When to use:**
|
|
199
|
+
- Hero sections and landing page headers
|
|
200
|
+
- Empty state messages
|
|
201
|
+
- Large promotional banners
|
|
202
|
+
- Onboarding screens
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Usage Guidance
|
|
207
|
+
|
|
208
|
+
When implementing typography in SLDS, follow these best practices to maintain consistency and accessibility.
|
|
209
|
+
|
|
210
|
+
For detailed usage guidance, do's and don'ts, and accessibility considerations for each typography styling hook, refer to the Typography Styling Hooks documentation.
|
|
211
|
+
|
|
212
|
+
**Key principles:**
|
|
213
|
+
- Use predefined SLDS text styles from the typography scale
|
|
214
|
+
- Ensure sufficient contrast between text and backgrounds (minimum 4.5:1 for body text)
|
|
215
|
+
- Avoid ALL CAPS for any text or labels (reduces readability)
|
|
216
|
+
- Never hardcode font sizes in pixels or points
|
|
217
|
+
|
|
218
|
+
### Combining Typography Properties
|
|
219
|
+
|
|
220
|
+
When implementing typography, follow this systematic approach:
|
|
221
|
+
|
|
222
|
+
1. **Start with the content type:** Determine whether you need body, title, or display type
|
|
223
|
+
2. **Select the appropriate scale:** Choose a font scale that matches the content hierarchy
|
|
224
|
+
3. **Apply the correct weight:** Use Regular for most content, Semibold for emphasis, Bold sparingly
|
|
225
|
+
4. **Use semantic colors:** Apply on-surface tokens based on content importance (1 for low emphasis, 3 for high emphasis)
|
|
226
|
+
5. **Set line height:** Ensure appropriate line spacing for readability
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Implementation Workflow
|
|
231
|
+
|
|
232
|
+
Follow this sequence when implementing typography in your components:
|
|
233
|
+
|
|
234
|
+
### Step 1: Identify Typography Need
|
|
235
|
+
|
|
236
|
+
Determine the purpose and hierarchy of your text content:
|
|
237
|
+
- **Is this body content?** (paragraphs, labels, descriptions)
|
|
238
|
+
- **Is this a heading or title?** (section headers, component titles)
|
|
239
|
+
- **Is this display text?** (hero sections, prominent banners)
|
|
240
|
+
- **What level of emphasis is needed?** (primary, secondary, tertiary)
|
|
241
|
+
|
|
242
|
+
### Step 2: Select Font Scale and Weight
|
|
243
|
+
|
|
244
|
+
Choose the appropriate combination based on the content type:
|
|
245
|
+
- **Body text:** `font-scale-1` or `font-scale-2` with `font-weight-4` (regular)
|
|
246
|
+
- **Emphasized body:** Same scale with `font-weight-6` (semibold)
|
|
247
|
+
- **Small headings:** `font-scale-3` or `font-scale-4` with `font-weight-6`
|
|
248
|
+
- **Large headings:** `font-scale-5` or `font-scale-6` with `font-weight-4` or `font-weight-6`
|
|
249
|
+
- **Display text:** `font-scale-7` or `font-scale-8` with `font-weight-3` (light)
|
|
250
|
+
|
|
251
|
+
### Step 3: Apply Color Tokens
|
|
252
|
+
|
|
253
|
+
Select the appropriate color token based on emphasis and context:
|
|
254
|
+
- **High-emphasis text (headings, titles):** `--slds-g-color-on-surface-3`
|
|
255
|
+
- **Standard body text:** `--slds-g-color-on-surface-2`
|
|
256
|
+
- **De-emphasized text (captions, metadata):** `--slds-g-color-on-surface-1`
|
|
257
|
+
- **Links:** `--slds-g-color-accent-2`
|
|
258
|
+
- **Feedback messages:** Appropriate feedback color tokens
|
|
259
|
+
|
|
260
|
+
> **Reference:** See the Surface Color Styling Hooks documentation for complete color pairing guidance.
|
|
261
|
+
|
|
262
|
+
### Step 4: Evaluate Density Awareness
|
|
263
|
+
|
|
264
|
+
Determine if the typography should adapt to user density preferences:
|
|
265
|
+
- **Does this component appear in data-dense contexts?** (tables, lists, forms)
|
|
266
|
+
- **Would users benefit from density control?** (power users vs. casual users)
|
|
267
|
+
- **If yes:** Use `--slds-g-font-scale-var-*` instead of fixed scale
|
|
268
|
+
- **If no:** Use fixed `--slds-g-font-scale-*` for consistent sizing
|
|
269
|
+
|
|
270
|
+
> **Reference:** See the Display Density Overview for density-aware typography guidance.
|
|
271
|
+
|
|
272
|
+
### Step 5: Handle Exceptions
|
|
273
|
+
|
|
274
|
+
If standard patterns don't fit your requirement:
|
|
275
|
+
1. Document why standard typography styles don't apply
|
|
276
|
+
2. Verify contrast requirements manually (minimum 4.5:1 for body text)
|
|
277
|
+
3. Ensure the custom approach maintains brand consistency
|
|
278
|
+
4. Test across all platforms and screen sizes
|
|
279
|
+
5. Flag for design system team review
|
|
280
|
+
|
|
281
|
+
### Step 6: Validate Implementation
|
|
282
|
+
|
|
283
|
+
Before finalizing, verify the implementation using the Pre-Implementation Checklist below to ensure all typography requirements are met.
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## Pre-Implementation Checklist
|
|
288
|
+
|
|
289
|
+
Before generating or modifying any typography-related code, verify:
|
|
290
|
+
|
|
291
|
+
| Requirement | Status |
|
|
292
|
+
|-------------|--------|
|
|
293
|
+
| **Typography Classification** | |
|
|
294
|
+
| Content type identified (body/title/display) | [ ] |
|
|
295
|
+
| Emphasis level determined (primary/secondary/tertiary) | [ ] |
|
|
296
|
+
| Context appropriate for chosen type style | [ ] |
|
|
297
|
+
| **Scale & Weight Selection** | |
|
|
298
|
+
| Font scale selected from SLDS predefined values | [ ] |
|
|
299
|
+
| Font weight appropriate for content type and size | [ ] |
|
|
300
|
+
| No hard-coded pixel or point values used | [ ] |
|
|
301
|
+
| Styling hooks used instead of direct values | [ ] |
|
|
302
|
+
| **Color & Contrast** | |
|
|
303
|
+
| Semantic color tokens used (on-surface, accent, feedback) | [ ] |
|
|
304
|
+
| Contrast requirements met (minimum 4.5:1 for body text) | [ ] |
|
|
305
|
+
| Color not used as sole indicator of meaning | [ ] |
|
|
306
|
+
| Colors work across light and dark modes where applicable | [ ] |
|
|
307
|
+
| **Accessibility** | |
|
|
308
|
+
| Text remains readable at minimum supported sizes | [ ] |
|
|
309
|
+
| Line height provides adequate spacing for readability | [ ] |
|
|
310
|
+
| Font weight not too light for small text sizes | [ ] |
|
|
311
|
+
| ALL CAPS avoided (reduces readability) | [ ] |
|
|
312
|
+
| Sufficient contrast between text and background (WCAG 2.1 AA) | [ ] |
|
|
313
|
+
| **Density & Responsiveness** | |
|
|
314
|
+
| Density-aware hooks used where appropriate (`font-scale-var-*`) | [ ] |
|
|
315
|
+
| Typography tested in both comfy and compact density settings | [ ] |
|
|
316
|
+
| Text scales appropriately across viewport sizes | [ ] |
|
|
317
|
+
| Long text strings tested (internationalization requirement) | [ ] |
|
|
318
|
+
| **Platform Consistency** | |
|
|
319
|
+
| Typography tested with system fonts (SF Pro, Segoe UI, Roboto) | [ ] |
|
|
320
|
+
| Sizing and spacing consistent across platforms | [ ] |
|
|
321
|
+
| Renders correctly on target devices and browsers | [ ] |
|
|
322
|
+
|
|
323
|
+
**Target outcome:** Clear, readable, accessible typography that maintains visual hierarchy and brand consistency across all platforms, screen sizes, and user density preferences.
|