Hi guys, i have encounter some issue after finished my v7 setup for testing, and need some enlighten.
I am using webstorm ide and following the guide from nextjs docs for the installation.
-
I found that
light-darkin my module.css is showing asUnknown function 'light-dark'? But it's actually working. -
Also in my module.css i unable to use nested like
.p { &:hover {} }, is this because of my postcss setup or ide?
module.exports = {
plugins: {
'postcss-preset-mantine': {},
'postcss-simple-vars': {
variables: {
'mantine-breakpoint-xs': '36em',
'mantine-breakpoint-sm': '48em',
'mantine-breakpoint-md': '62em',
'mantine-breakpoint-lg': '75em',
'mantine-breakpoint-xl': '88em',
},
},
},
};
I believe both of the issues above should be related either postcss or ide. Do i need to install extra plugins or anything i missing for the setup? Anyone using webstorm and facing the same issue?
-
If i preset custom colors using
createTheme, can i access it with e.g.var(--mantine-color-dark-3)? So far i only get variables that defined by mantine. Forcolorandc, i can use it likecustomcolor.3. But if in module.css, i have to self define it? -
If i defined custom size for my
Text, will it shown as suggestion likexs,md, etc? Or this behaviour is not supported?
components: {
Text: Text.extend({
vars: (_theme, props) => {
if (props.size === 'xxs') {
return {
root: {
'--text-lh': rem(15),
'--text-fz': rem(10),
},
};
}
return { root: {} };
},
}),
},
Thanks.