@salesforce/mcp-provider-lwc-experts 0.6.3 → 0.6.4
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/index.bundle.js +109 -117
- package/knowledge/graphql/generation-guide.md +212 -0
- package/knowledge/graphql/generation-mutation.md +265 -0
- package/knowledge/graphql/generation-query.md +235 -0
- package/knowledge/graphql/generation-schema.md +20 -0
- package/knowledge/graphql/schema/shared.graphqls +1140 -0
- package/knowledge/o11y/activityApi.md +64 -0
- package/knowledge/o11y/bestPractices.md +106 -0
- package/knowledge/o11y/counterMetrics.md +61 -0
- package/knowledge/o11y/errorTracking.md +70 -0
- package/knowledge/o11y/initialization.md +46 -0
- package/knowledge/o11y/lifecycleInstrumentation.md +91 -0
- package/knowledge/o11y/logApi.md +53 -0
- package/knowledge/o11y/schemaUsage.md +48 -0
- package/knowledge/slds/styling-hooks/README.md +408 -0
- package/knowledge/slds/styling-hooks/categories/color.md +963 -0
- package/knowledge/slds/styling-hooks/categories/radius.md +526 -0
- package/knowledge/slds/styling-hooks/categories/shadow.md +489 -0
- package/knowledge/slds/styling-hooks/categories/sizing.md +667 -0
- package/knowledge/slds/styling-hooks/categories/spacing.md +501 -0
- package/knowledge/slds/styling-hooks/categories/typography.md +708 -0
- package/knowledge/slds/styling-hooks/global-semantic/accent-hooks.md +207 -0
- package/knowledge/slds/styling-hooks/global-semantic/feedback-hooks.md +819 -0
- package/knowledge/slds/styling-hooks/global-semantic/surface-hooks.md +215 -0
- package/knowledge/slds/styling-hooks/guidance.md +906 -0
- package/knowledge/slds/styling-hooks/metadata/hooks-index.json +6576 -0
- package/knowledge/utam/generation-guide.md +499 -0
- package/knowledge/utam/generation-workflow.md +243 -0
- package/knowledge/utam/namespaces-mapping.md +26 -0
- package/knowledge/utam/utam-json-schema.md +720 -0
- package/knowledge/utils.ts +27 -0
- package/package.json +4 -3
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-create-list-info.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-create-record.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-delete-list-info.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-delete-record.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-get-list-info-by-name.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-get-list-infos-by-name.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-get-list-infos-by-object-name.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-get-list-object-info.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-get-list-preferences.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-get-list-records-by-name.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-update-list-info.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-update-list-preferences.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/reference-update-record.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/lds-wire-adapter-types.json +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-get-related-list-count.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-get-related-list-info-batch.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-get-related-list-info.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-get-related-list-records-batch.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-get-related-list-records.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-get-related-lists-info.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-object-info.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-object-infos.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-picklist-values-record.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-picklist-values.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-record.md +0 -0
- /package/{agents → experts}/lds/resources/lwc/guides/reference/wire-adapters/reference-wire-adapters-records.md +0 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# Accent Color Styling Hooks
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
**Reference:** [Lightning Design System - Color](https://www.lightningdesignsystem.com/2e1ef8501/p/655b28-color/b/25b51f)
|
|
6
|
+
|
|
7
|
+
Accent colors express a brand's accent color throughout the user interface or to draw attention to an action. Brand colors highlight actions on the page through buttons and links.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## `--slds-g-color-accent-*`
|
|
12
|
+
|
|
13
|
+
### Description
|
|
14
|
+
|
|
15
|
+
Accent colors that are generally used for text or icons.
|
|
16
|
+
|
|
17
|
+
### Available Hooks
|
|
18
|
+
|
|
19
|
+
- `--slds-g-color-accent-1` - Lightest accent color
|
|
20
|
+
- `--slds-g-color-accent-2` - Medium accent color
|
|
21
|
+
- `--slds-g-color-accent-3` - Darkest accent color
|
|
22
|
+
|
|
23
|
+
### State Progression Logic
|
|
24
|
+
|
|
25
|
+
The variant number you use depends on the default state's contrast requirements:
|
|
26
|
+
|
|
27
|
+
- **If default state uses `accent-1`**: Use `accent-2` for hover states
|
|
28
|
+
- **If default state uses `accent-2`**: Use `accent-3` for hover states
|
|
29
|
+
|
|
30
|
+
**Why this matters**: `accent-2` is often the default for links and interactive text because `accent-1` may not meet accessibility contrast requirements on non-white backgrounds. The hover state then uses the next darker variant.
|
|
31
|
+
|
|
32
|
+
**Example**: A link on a white background defaults to `accent-2` (not `accent-1`) for accessibility compliance, then uses `accent-3` on hover.
|
|
33
|
+
|
|
34
|
+
### Usage
|
|
35
|
+
|
|
36
|
+
#### ✅ Do
|
|
37
|
+
|
|
38
|
+
- Works well for brand identity and interactive elements (links, buttons, icons)
|
|
39
|
+
- Effective for emphasizing key actions and content
|
|
40
|
+
- Can be used to create visual hierarchy with brand colors
|
|
41
|
+
<!-- - Consider brand-base-90 and 80 for backgrounds and hover states for menu type components using the brand-base styling hook -->
|
|
42
|
+
|
|
43
|
+
#### ❌ Don't
|
|
44
|
+
|
|
45
|
+
- Avoid using for large background areas
|
|
46
|
+
- Avoid using for container backgrounds
|
|
47
|
+
- Avoid for body text or long-form content
|
|
48
|
+
- Avoid using without ensuring proper contrast
|
|
49
|
+
- Avoid using as the only color indicator for status
|
|
50
|
+
- Avoid using system colors or colors from another group like surface colors in combination with accent colors
|
|
51
|
+
|
|
52
|
+
#### Context
|
|
53
|
+
|
|
54
|
+
- Links and interactive text (commonly use accent-2 by default, accent-3 on hover)
|
|
55
|
+
- Brand elements and identity
|
|
56
|
+
- Icon fills and accents
|
|
57
|
+
- Icon Buttons and interactive text
|
|
58
|
+
- Indicates active or selected states in components
|
|
59
|
+
- **Note**: Interactive icons that respond to hover are treated as Button Icon components and handle the state changes on their own.
|
|
60
|
+
|
|
61
|
+
### Accessibility
|
|
62
|
+
|
|
63
|
+
- All accent colors are AA compliant and maintain a 4.5:1 contrast using semantic colors with a 50 gradepoint difference between the background and foreground
|
|
64
|
+
- Best paired with on-accent colors for foreground text and icons. Choose on-accent level based on content importance and required contrast, not strict number matching. For example, pair `--slds-g-color-accent-1` with `--slds-g-color-on-accent-1` for consistency, though other on-accent levels may be used based on emphasis needs while maintaining accessibility compliance
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## `--slds-g-color-accent-container-*`
|
|
69
|
+
|
|
70
|
+
### Description
|
|
71
|
+
|
|
72
|
+
Background fills using accent colors for containers.
|
|
73
|
+
|
|
74
|
+
### Available Hooks
|
|
75
|
+
|
|
76
|
+
- `--slds-g-color-accent-container-1` - Lightest accent container background
|
|
77
|
+
- `--slds-g-color-accent-container-2` - Medium accent container background
|
|
78
|
+
- `--slds-g-color-accent-container-3` - Darkest accent container background
|
|
79
|
+
|
|
80
|
+
### State Progression Logic
|
|
81
|
+
|
|
82
|
+
Container variants follow a straightforward state progression pattern:
|
|
83
|
+
|
|
84
|
+
- **If default state uses `accent-container-1`**: Use `accent-container-2` for hover/active states
|
|
85
|
+
- **If default state uses `accent-container-2`**: Use `accent-container-3` for hover/active states
|
|
86
|
+
|
|
87
|
+
**Why this pattern**: Higher numbered variants provide increased visual emphasis and contrast, making interactive states clearly distinguishable from default states.
|
|
88
|
+
|
|
89
|
+
**Example**: A brand button using `accent-container-2` as its default background would use `accent-container-3` on hover to provide visual feedback.
|
|
90
|
+
|
|
91
|
+
### Usage
|
|
92
|
+
|
|
93
|
+
#### ✅ Do
|
|
94
|
+
|
|
95
|
+
- Use for containers such as brand buttons and their hover and active states
|
|
96
|
+
- Works well for interactive container backgrounds that need accent color emphasis
|
|
97
|
+
- Effective for interactive element backgrounds
|
|
98
|
+
- Suitable for hover/focus/active states of interactive containers
|
|
99
|
+
|
|
100
|
+
#### ❌ Don't
|
|
101
|
+
|
|
102
|
+
- Avoid using for non-interactive decorative elements
|
|
103
|
+
- Avoid using as primary or secondary brand colors outside interactive container contexts
|
|
104
|
+
- Avoid for subtle interactions where less emphasis is needed
|
|
105
|
+
- Avoid using for large areas without specific interaction requirements
|
|
106
|
+
- Avoid without proper interaction context
|
|
107
|
+
- Avoid using system colors or colors from another group like surface colors in combination with accent container colors
|
|
108
|
+
|
|
109
|
+
**Important**: Accent containers carry brand significance indicating interaction and should only be used for interactive elements, not for non-interactive decorative purposes.
|
|
110
|
+
|
|
111
|
+
#### Context
|
|
112
|
+
|
|
113
|
+
- Brand button backgrounds and their interactive states
|
|
114
|
+
- Interactive element backgrounds
|
|
115
|
+
- Hover/focus/active state backgrounds for interactive containers
|
|
116
|
+
- Interactive content areas requiring brand emphasis
|
|
117
|
+
|
|
118
|
+
### Accessibility
|
|
119
|
+
|
|
120
|
+
- All container colors are AA compliant and maintain a 4.5:1 contrast using semantic colors with a 50 gradepoint difference between the background and foreground
|
|
121
|
+
- Best paired with on-accent colors for foreground text and icons. Choose on-accent level based on content importance and required contrast, not strict number matching. For example, pair `--slds-g-color-accent-container-1` with `--slds-g-color-on-accent-1` for consistency, though other on-accent levels may be used based on emphasis needs while maintaining accessibility compliance
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## `--slds-g-color-border-accent-*`
|
|
126
|
+
|
|
127
|
+
### Description
|
|
128
|
+
|
|
129
|
+
Border colors using accent colors for visual emphasis.
|
|
130
|
+
|
|
131
|
+
### Available Hooks
|
|
132
|
+
|
|
133
|
+
- `--slds-g-color-border-accent-1` - Lightest accent border color
|
|
134
|
+
- `--slds-g-color-border-accent-2` - Medium accent border color
|
|
135
|
+
- `--slds-g-color-border-accent-3` - Darkest accent border color
|
|
136
|
+
|
|
137
|
+
### Usage
|
|
138
|
+
|
|
139
|
+
#### ✅ Do
|
|
140
|
+
|
|
141
|
+
- Generally reserved for button outlines
|
|
142
|
+
- Works well for brand identity border elements
|
|
143
|
+
- Effective for interactive element borders
|
|
144
|
+
- Can create visual emphasis through border treatments
|
|
145
|
+
- Suitable for focus indicators on interactive elements
|
|
146
|
+
- Can use this independently or pair it with an accent container color
|
|
147
|
+
|
|
148
|
+
#### ❌ Don't
|
|
149
|
+
|
|
150
|
+
- Avoid using for large background areas (borders should define, not fill)
|
|
151
|
+
- Avoid for body text or long-form content
|
|
152
|
+
- Avoid using without ensuring proper contrast
|
|
153
|
+
- Avoid using as the only color indicator for status
|
|
154
|
+
- Avoid using non-border accent colors on borders to achieve a border with an accent color
|
|
155
|
+
|
|
156
|
+
#### Context
|
|
157
|
+
|
|
158
|
+
- Brand button outlines
|
|
159
|
+
- Interactive element outlines
|
|
160
|
+
|
|
161
|
+
**Note**: Border-accent hooks have limited current usage in core SLDS2 components. Most interactive bordered elements use neutral border colors. These hooks are primarily available for custom theming or future component needs.
|
|
162
|
+
|
|
163
|
+
### Accessibility
|
|
164
|
+
|
|
165
|
+
- All border accent colors are AA compliant and maintain a 4.5:1 contrast using semantic colors with a 50 gradepoint difference between the background
|
|
166
|
+
- Works best on neutral backgrounds or paired with matching accent container colors.
|
|
167
|
+
- Maintains visibiltiy and consisteny when paired with `--slds-g-sizing-border-*` sizing hooks
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## `--slds-g-color-on-accent-*`
|
|
172
|
+
|
|
173
|
+
### Description
|
|
174
|
+
|
|
175
|
+
Foreground colors for content placed on accent color backgrounds, such as text and icons.
|
|
176
|
+
|
|
177
|
+
### Available Hooks
|
|
178
|
+
|
|
179
|
+
- `--slds-g-color-on-accent-1` - Lightest foreground color for accent backgrounds
|
|
180
|
+
- `--slds-g-color-on-accent-2` - Medium foreground color for accent backgrounds
|
|
181
|
+
- `--slds-g-color-on-accent-3` - Darkest foreground color for accent backgrounds
|
|
182
|
+
|
|
183
|
+
### Usage
|
|
184
|
+
|
|
185
|
+
#### ✅ Do
|
|
186
|
+
|
|
187
|
+
- Works well for text placed on accent color backgrounds
|
|
188
|
+
- Effective for icons displayed on accent color backgrounds
|
|
189
|
+
- Suitable for any content that needs to be readable on accent backgrounds
|
|
190
|
+
- Best paired with the corresponding accent background color
|
|
191
|
+
|
|
192
|
+
#### ❌ Don't
|
|
193
|
+
|
|
194
|
+
- Avoid using on light or non-accent backgrounds
|
|
195
|
+
- Avoid using without the corresponding accent background
|
|
196
|
+
- Avoid using for decorative elements that don't require readability
|
|
197
|
+
- Avoid mixing with non-matching accent backgrounds
|
|
198
|
+
|
|
199
|
+
#### Context
|
|
200
|
+
|
|
201
|
+
- Text on accent backgrounds
|
|
202
|
+
- Icons on accent surfaces
|
|
203
|
+
|
|
204
|
+
### Accessibility
|
|
205
|
+
|
|
206
|
+
- All on-accent colors are AA compliant and maintain a 4.5:1 contrast using semantic colors with a 50 gradepoint difference between the background
|
|
207
|
+
- Works best paired with a corresponding accent background color. Choose on-accent level based on content importance and required contrast, not strict number matching. For example, pair `--slds-g-color-on-accent-1` with `--slds-g-color-accent-1` or `--slds-g-color-accent-container-1` for consistency, though other pairings may be used based on emphasis needs while maintaining accessibility compliance
|