Skip to content

Commit

Permalink
Mention ScopedCssBaseline in README.md (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolint authored Jan 9, 2025
1 parent f778726 commit 5a22f96
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,22 @@ return (
</DirectionStyleProvider>
)
```
**Note**: `<CssBaseline />` will inject some global styles into the page. If this is not desired, wrap your app in `<ScopedCssBaseline>` instead.
For example:
```
import ScopedCssBaseline from '@mui/material/ScopedCssBaseline';
...
<DirectionStyleProvider direction={themeDirection}>
<ThemeProvider theme={enchantedTheme}>
<div dir={themeDirection}>
<ScopedCssBaseline>
<App />
</ScopedCssBaseline>
</div>
</ThemeProvider>
</DirectionStyleProvider>
```


### Tokenizing - Typographies and Colors

Expand Down

0 comments on commit 5a22f96

Please sign in to comment.