I got some issues with windicss. Classes don't apply on elements. I've tried to install an older version of windi and it still doesn't work. I've even tried to use tailwind instead of windi, but it's still not working.
index.vue
<template>
<div>
<p class="text-red">e</p>
</div>
</template>
windi.config.ts
import { defineConfig } from 'windicss/helpers'
export default defineConfig({
extract: {
include: ['**/*.{vue,html,jsx,tsx}'],
exclude: ['node_modules', '.git'],
},
theme: {
colors: {
primary: '#5b0770',
},
},
})
You are overwriting all colors with your current config.
Instead of directly setting the
colors: {}inside oftheme: {}Consider wrapping your
colors: {}inside of anextend: {}.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.