[docs] Add how to customize typography with ScopedCssBaseline#47962
Open
mvlanga wants to merge 5 commits intomui:masterfrom
Open
[docs] Add how to customize typography with ScopedCssBaseline#47962mvlanga wants to merge 5 commits intomui:masterfrom
mvlanga wants to merge 5 commits intomui:masterfrom
Conversation
…aseline instead of regular CssBaseline component
Netlify deploy previewBundle size report
|
…aphy-with-scoped-css-baseline
…aphy-with-scoped-css-baseline
…aphy-with-scoped-css-baseline
| // ... | ||
| return ( | ||
| <ThemeProvider theme={theme}> | ||
| <CssBaseline /> |
Member
There was a problem hiding this comment.
Add a comment here:
Suggested change
| <CssBaseline /> // Or <ScopedCssBaseline /> |
ZeeshanTamboli
requested changes
Mar 14, 2026
Member
ZeeshanTamboli
left a comment
There was a problem hiding this comment.
@mvlanga After contemplating about this for a bit, I don't think we should document @font-face under MuiScopedCssBaseline.
ScopedCssBaseline applies styles to its root slot, so its styleOverrides are meant for styles scoped to that component subtree. @font-face is a global at-rule and should be declared globally, for example through MuiCssBaseline or GlobalStyles, even if the consuming UI is wrapped in ScopedCssBaseline.
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.
As discussed in #47928 I've updated the docs to also describe how to apply
styleOverridesto theScopedCssBaselinecomponent instead of the regularCssBaseline.Closes #47928