You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CSS `contrast()` filter function can collide with `igniteui-theming`'s `contrast()` Sass function. When you need the native CSS function, call it explicitly via `sass:meta`:
Do not remove or replace those imports unless the user explicitly wants a theme variant change.
148
123
149
-
### DV components do NOT inherit Sass theme colors
150
-
Charts, maps, gauges, and sparklines ignore the global Sass theme. Set their visual properties explicitly via component props. After a palette exists, prefer palette tokens or local semantic CSS variables over leaving raw color literals in the final JSX:
124
+
### DV components require explicit visual props
125
+
Charts, maps, gauges, and sparklines do not use the component-token theme generation flow from this skill. Set their visual properties explicitly via component props. After a palette exists, prefer palette tokens or local semantic CSS variables over leaving raw color literals in the final JSX:
151
126
```tsx
152
127
<IgrCategoryChart
153
128
brushes="<resolved-series-brush>"
@@ -162,15 +137,15 @@ For core UI component theming, prefer `create_component_theme` and apply the ret
162
137
163
138
### Nav drawer width
164
139
Override the drawer width using the nav drawer CSS custom properties measured from the design image:
If `create_theme` returns a luminance warning for a generated surface, do not ignore it. If the design needs multiple surface depths, use `create_custom_palette` or define semantic CSS variables such as `--surface-1` and `--surface-2` in `styles.scss` instead of relying on a single generated surface color.
148
+
If `create_theme` returns a luminance warning for a generated surface, do not ignore it. If the design needs multiple surface depths, use `create_custom_palette` or define semantic CSS variables such as `--surface-1` and `--surface-2` in a shared CSS file instead of relying on a single generated surface color.
174
149
175
150
## Map Component
176
151
@@ -197,7 +172,7 @@ useEffect(() => {
197
172
198
173
### Dark map styling
199
174
OpenStreetMap tiles are light by default. For dark themes, apply a CSS filter to the container. Adjust the values to match the map tone in the design image:
200
-
```scss
175
+
```css
201
176
.map-container {
202
177
/* tune grayscale (0-1) and brightness (0-1) to match the design */
203
178
filter: grayscale(<0-1>) brightness(<0-1>);
@@ -206,18 +181,10 @@ OpenStreetMap tiles are light by default. For dark themes, apply a CSS filter to
206
181
207
182
## Dark Theme Specifics
208
183
209
-
### Use the resolved dark schema for dark themes
210
-
```scss
211
-
@include palette(
212
-
$resolved-palette,
213
-
$schema: <resolved-dark-schema>
214
-
);
215
-
```
216
-
217
184
### CSS custom properties for dark panels
218
185
When the design uses multiple dark surface depths (panels, sidebars, cards on a dark background), define reusable semantic tokens using palette references or values derived from the design intent:
0 commit comments