4👍
You are overwriting all colors with your current config.
Instead of directly setting the colors: {}
inside of theme: {}
export default defineConfig({
...
theme: {
colors: {
primary: '#5b0770',
},
},
Consider wrapping your colors: {}
inside of an extend: {}
.
export default defineConfig({
...
theme: {
extend: {
colors: {
primary: '#5b0770',
},
},
},
This will, instead of overwriting the default theme, extend the default theme.
The same applies also to other theme options (fontFamily, screens, etc…)
Please refer to the windicss-docs for further information.
- [Vuejs]-Vuejs 2 removing from array (splice) not animating with transition
- [Vuejs]-Conditional styling in v-for vuejs
0👍
The first time you add a windi css style stop your dev server and start again, it will apply the styles and automatically start HMR for you.
Sometimes I also need to clear the cache rm -rf node_modules/.cache
and restart the app, also make sure you’re using the latest version.
- [Vuejs]-Vue.js–vue cli3 changing favicon not working
- [Vuejs]-Vue-router routes to the wrong page, the link has to add a '#' before the path
Source:stackexchange.com