Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

❗ Improve encapsulation of ThemeVars #1088

@tjosepo

Description

Description

Currently, the createThemeVars() function appends CSS variables directly in the document's head.

If multiple version of Orbit are loaded on the same page and call createThemeVars(), the variables can be overriden.

Ideally, each <ThemeProvider /> should be able to have its own set of CSS variables that cannot be overriden by another theme provider.

Otherwise, having more than one version of Orbit on a page can be brittle, which limits what can be done with micro-frontends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions