Repository navigation
Conversation
This was referenced Nov 13, 2026
Open
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Two theme-state bugs remain: disabling enhanced accessibility leaves color-blind brushes active, and nested themes cannot restore elevations disabled by a parent.
2 open issues
What changed in this PR
Adds a shared Sass theme() entry point to centralize global theme setup across products, building on the once-per-compilation registration support from #676.
Changes:
- Adds a preset-inclusive entry point and a lightweight module exposing
theme()alone. - Composes palette, schema-selected elevations, spacing, markers, and optional factors in root or scoped themes.
- Adds registration control to
spacing(), theme tests, and usage documentation.
| File | Description |
|---|---|
README.md |
Documents global themes, scoped usage, and entry-point tradeoffs. |
packages/theming/tests/_theme.spec.scss |
Tests theme composition, exclusions, scoping, and property registration. |
packages/theming/tests/_index.scss |
Includes the new theme tests. |
packages/theming/sass/themes/_theme.scss |
Forwards the root API, presets, schemas, and theme(). |
packages/theming/sass/themes/_mixins.scss |
Makes spacing property registration optional. |
packages/theming/sass/themes/_global-theme.scss |
Implements shared global theme composition. |
Review effort: Balanced
simeonoff
force-pushed
the
simeonoff/theme-entry-point
branch
from
November 16, 2026 12:45
7c9d75a to
58014f1
Compare
$elevation defaults to null and inherits the factor. true sets --ig-elevation-factor to 1 and false to 0. $enhanced-accessibility defaults to null, like configure-colors(), and its description says it's a compilation-wide switch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Part of #651 (sections 1 to 4). Stacked on #676, which should merge first.
igniteui-theming/sass/themes/theme. It forwards the root module, the presets and the schemas, and addstheme().theme($palette, $schema, ...)declares the palette, the elevations (those of the schema's design system unless$elevationsis passed), the spacing, the--ig-themeand--ig-theme-variantmarkers and the radius and elevation factors, in:rootor in the enclosing selector. The first call in a compilation registers the size, spacing and progress properties at the root.$excludetakescore,palette,elevationsandmarkers.theme()alone is inigniteui-theming/sass/themes/global-theme, to compile a theme without the color presets, which cost about 300 ms per compilation.spacing()takes$register, to leave out its property registration.Checked against both products: the Web Components theme files built on the entry point are identical to today's except the hand-written scrollbar globals (IgniteUI/igniteui-webcomponents#2609), and the Angular presets with
theme-internal()callingtheme()are identical except the Indigo elevations, the fix from section 3.