Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ For **every** core Ignite UI component chosen in Steps 3-4, follow this MCP-firs
- Resolve each value to a palette token or local semantic CSS variable
- Call `create_component_theme("grid", ...)` with only `{ "header-background": "<resolved token>", "content-background": "<resolved token>", "row-hover-background": "<resolved token>" }`

Apply the generated theme blocks inside `::ng-deep` scoped to the component selector as shown in the `create_component_theme` output.
Apply the generated theme block using `@include tokens(<theme-name>);` as returned by `create_component_theme`.
Comment thread
simeonoff marked this conversation as resolved.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,9 @@ igx-nav-drawer {
```

### Dark theme overrides for `IgxGridComponent`
Grid internals often need explicit dark-theme overrides. Use palette tokens or local semantic CSS variables that map to the design:
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`:
```scss
:host ::ng-deep igx-grid {
.igx-grid__thead,
.igx-grid__tr {
background: <resolved-surface-token>;
}

.igx-grid__th,
.igx-grid__td {
color: <resolved-text-token>;
border-color: <resolved-border-token>;
}

.igx-grid__tbody {
background: <resolved-surface-token>;
}
}
@include tokens($custom-grid-theme);
Comment thread
simeonoff marked this conversation as resolved.
```

### Read luminance warnings from theme generation
Expand Down
Loading