svelte-material-ui
svelte-material-ui copied to clipboard
SvelteKit & Theme (`--mdc-layout-grid-margin-desktop`) not working together
Describe the bug
I created an sveltekit app and followed the documentation to make it work with svelte-material-ui.
Everything working as expected until I tried to tweak the theme.
I wanted to change the default value of --mdc-layout-grid-margin-desktop
from 24px
to 5px
.
To Reproduce Steps to reproduce the behavior:
- Create a sveltekit app + install svelte-material-ui as per documentation
- Add this in
_smui-theme.scss
:root {
--mdc-layout-grid-margin-desktop: 5px;
}
- Run
npm run prepare
- Look at the generated
static/smui.css
and look for--mdc-layout-grid-margin-desktop
. You will see the added value of5px
but still left some other with value24px
. Since the latest value is24px
then it sticks to this despite the fact I choose to5px
.
Expected behavior
If I modify any theming value in _smui-theme.scss
it should be generated with those value and not the default one.
Desktop (please complete the following information):
- OS: macOS
- Browser Chrome
- Version 96.0.4664.93