-
-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@apply classes will not update when config updated #826
Labels
Comments
I don't run into this issue when i config the theme in vite.config.ts. import { defineConfig } from 'vite'
import Unocss from 'unocss/vite'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
import transformerDirectives from '@unocss/transformer-directives'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
Unocss({
transformers: [transformerDirectives()],
theme: {
colors: {
primary: '#333333'
}
}
}),
tsconfigPaths(),
],
}) I guess the problem is that the change of uno.config.js didn't active vite/(other build tools) recompile, but i think it's more appropriate to config theme in vite.config.ts if you need live updates when the theme is updated. |
Should be fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// unicss.config.ts
// components
when i update the primary color to
#666666
, the title text color is still#333333
The text was updated successfully, but these errors were encountered: