Skip to content

Commit 6c39c6d

Browse files
Merge pull request #17228 from IgniteUI/ganastasov/fix-image-to-app-skill
docs(skills): Replace ng-deep with tokens in generate-from-image-design skill
1 parent 8ec95e7 commit 6c39c6d

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

skills/igniteui-angular-generate-from-image-design/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ For **every** core Ignite UI component chosen in Steps 3-4, follow this MCP-firs
146146
- Resolve each value to a palette token or local semantic CSS variable
147147
- Call `create_component_theme("grid", ...)` with only `{ "header-background": "<resolved token>", "content-background": "<resolved token>", "row-hover-background": "<resolved token>" }`
148148

149-
Apply the generated theme blocks inside `::ng-deep` scoped to the component selector as shown in the `create_component_theme` output.
149+
Apply the generated theme block using `@include tokens(<theme-name>);` as returned by `create_component_theme`.
150150

151151
Do not run `create_component_theme` for regions built with custom HTML/CSS only.
152152

skills/igniteui-angular-generate-from-image-design/references/gotchas.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,9 @@ igx-nav-drawer {
118118
```
119119

120120
### Dark theme overrides for `IgxGridComponent`
121-
Grid internals often need explicit dark-theme overrides. Use palette tokens or local semantic CSS variables that map to the design:
121+
Grid internals often need explicit dark-theme overrides. Use `get_component_design_tokens("grid")` to discover available tokens, then call `create_component_theme` with the tokens that differ from the global theme. Apply the returned theme with the `tokens`:
122122
```scss
123-
:host ::ng-deep igx-grid {
124-
.igx-grid__thead,
125-
.igx-grid__tr {
126-
background: <resolved-surface-token>;
127-
}
128-
129-
.igx-grid__th,
130-
.igx-grid__td {
131-
color: <resolved-text-token>;
132-
border-color: <resolved-border-token>;
133-
}
134-
135-
.igx-grid__tbody {
136-
background: <resolved-surface-token>;
137-
}
138-
}
123+
@include tokens($custom-grid-theme);
139124
```
140125

141126
### Read luminance warnings from theme generation

0 commit comments

Comments
 (0)