#How to remove native background?
1 messages · Page 1 of 1 (latest)
index.css
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}```
app.css
display: flex;
justify-content: center;
align-items: center;
position: absolute;
width: 100%;
height: 100%;
background: transparent !important;
}```
Backgound color is defined on body element, you can override it there
works with lightmode but not with darkmode after setting backround in body
use !important
Bcs dark mantine color scheme also sets css color scheme which in chromium browsher
Browsers sets the bg color, override color scheme to light in ur css after importing mantine styles and u should be fine
or you can use resolver (cc ViskCY)
const cssVariablesResolver = () => ({
dark: {
"--mantine-color-scheme": "light",
}
});