Closed THPubs closed 2 years ago
😂 All this code needs to be written by you, the plugin does not provide dark mode.
@SolidZORO Found out how to do it!
const { getThemeVariables } = require('antd/dist/theme');
...
modifyVars: {
...getThemeVariables({
dark: true, // Enable dark mode
}),
'@primary-color': '#ffffff',
},
javascriptEnabled: true,
You have to wrap the config with getThemeVariables
and set javascriptEnabled
to true
.
Hi, I tried adding the following to
modifyVars
but it still didn't work. Any idea what's happening?