Skip to content

feat(themes)!: build theme() on igniteui-theming 31 and emit the core styles from it - #18083

Draft
simeonoff wants to merge 2 commits into
masterfrom
simeonoff/theming-31
Draft

simeonoff wants to merge 2 commits into
masterfrom
simeonoff/theming-31

Conversation

@simeonoff

@simeonoff simeonoff commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Closes #17887

Description

Builds the theme on igniteui-theming 31.0.0-beta.2:

  • theme() wraps the igniteui-theming theme(). The markers and factors now use its root selector, :root, :scope, :host, like the palette and elevations. Before, they stayed on :root.
  • The first theme() call in a compilation emits the core styles at the root, and $exclude: (core) leaves them out. core() is deprecated and still works: core(); theme() emits the core styles once.
  • theme() takes $print-layout, $enhanced-accessibility and a content block.
  • Without $elevations, theme() uses the schema's elevations, so Indigo themes get the Indigo shadows.
  • The igniteui-theming theme() is called with scrollbar excluded, because the Angular theme styles .ig-scrollbar itself. It declares the size steps, and the theme no longer emits --sb-size.
  • The context menu and chart dialog of igniteui-angular-extras pass $sb-width: thin instead of the deprecated $sb-size.

Motivation / Context

Part of IgniteUI/igniteui-theming#651: one global theme in igniteui-theming. With the new root selector, a theme also applies inside @scope.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

Theming

How Has This Been Tested?

  • Unit tests

  • Manual testing

  • Automated e2e tests

  • New Sass specs in spec/_theme.spec.scss; npm run test:styles (45) and npm run lint:styles pass.

  • All presets, the Elements themes and a few scenarios compiled before and after. The only differences:

    • the markers move to the root selector;
    • the Indigo presets get the Indigo elevations;
    • theme() without core() adds the core styles;
    • with core(), the six spacing aliases are declared twice, with the same values;
    • the size steps are declared, and --sb-size is gone;
    • .ig-scrollbar is still emitted once.

Checklist:

  • All relevant labels have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

… styles from it

theme() wraps the igniteui-theming theme(), so the markers and factors use its root selector, :root, :scope, :host. The first theme() call in a compilation emits the core styles, $exclude: (core) leaves them out, and core() is deprecated. theme() takes $print-layout, $enhanced-accessibility and a content block, and without $elevations uses the elevations of the schema's design system.
theme() passes scrollbar in $exclude to the igniteui-theming theme(), because the Angular theme styles .ig-scrollbar itself, with the theme handler and the ig-scrollbar exclusion. The context menu and chart dialog of igniteui-angular-extras pass $sb-width: thin instead of the deprecated $sb-size, which had no effect.
@simeonoff
simeonoff force-pushed the simeonoff/theming-31 branch from 6d75b7a to 4e0e668 Compare December 4, 2026 14:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Theming: build theme() and typography() on the igniteui-theming mixins and fold core() into theme()

1 participant