Skip to content

Refactor theming (light/dark modes)#218

Merged
shgysk8zer0 merged 1 commit intomasterfrom
feature/color-scheme
Apr 10, 2026
Merged

Refactor theming (light/dark modes)#218
shgysk8zer0 merged 1 commit intomasterfrom
feature/color-scheme

Conversation

@shgysk8zer0
Copy link
Copy Markdown
Member

Changed

  • Components now inherit color-scheme from the document or nearest [data-theme] ancestor,
    replacing the deprecated :host-context() CSS pseudo-class.

Deprecated

  • componentDarkTheme, componentLightTheme, darkTheme, lightTheme. These exports remain
    as disabled CSSStyleSheet stubs for backwards compatibility and will be removed in a future major release.

Description and issue

Please add relevant sections (Added, removed, changed, fixed) to CHANGELOG.md

List of significant changes made

### Changed
- Components now inherit `color-scheme` from the document or nearest `[data-theme]` ancestor,
  replacing the deprecated `:host-context()` CSS pseudo-class.

### Deprecated
- `componentDarkTheme`, `componentLightTheme`, `darkTheme`, `lightTheme`. These exports remain
  as disabled `CSSStyleSheet` stubs for backwards compatibility and will be removed in a future major release.
@shgysk8zer0 shgysk8zer0 self-assigned this Apr 10, 2026
@shgysk8zer0 shgysk8zer0 enabled auto-merge April 10, 2026 21:48
@shgysk8zer0 shgysk8zer0 merged commit eedbdc5 into master Apr 10, 2026
7 checks passed
@shgysk8zer0 shgysk8zer0 deleted the feature/color-scheme branch April 10, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant