Skip to content

Conversation

@dmitri-gb
Copy link
Contributor

@dmitri-gb dmitri-gb commented Nov 28, 2025

This change applies default Mantine styles also to the :host element (in addition to :root and body). This makes it a little easier to use Mantine inside the shadow DOM.

Previously one could almost achieve this with <MantineProvider cssVariablesSelector=":host">, however this didn't fully apply all styles (e.g. global font-family, line-height, color-scheme etc were not applied). It also didn't benefit from variable deduplication like :root does.

@dmitri-gb
Copy link
Contributor Author

For comparison, baseline styles in Tailwind are similarly applied to html, :host.

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