why my css is not working in page?
everything in directory
pages
is working fine but if i put new page in pages/sample-folder/new.vue
then css not work in new.vue
16 Replies
please explain to me
Hello @8l8 , try sharing a bit more context, some code and screenshots may help
@IsraelOrtuno hi
i seen my trouble

link
href is only use for vue file in pages
i want apply css to every file
how can solve it?\

create.vue
is not work with my css
@IsraelOrtunoare you using the styled or unstyled theme of PrimeVue? https://primevue.org/nuxt/#theming
If styled, I don't see your theme listed in the
css
property of your nuxt.config:
css: ['primevue/resources/themes/aura-light-green/theme.css']
PrimeVue | Vue UI Component Library
The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.
i use styled
i use
head
with link rel
to switch theme
@oneeach \the link to your CSS is no longer valid when inside a subdirectory, I would put your css within the css property in your nuxt.config and use a relative path like
~/assets/css/theme.css
yes
i understand
but you know
i want switch theme
primevue guild me
put the code in
head
meta
do you have any new solution to switch theme?read the primevue documentation here: https://primevue.org/nuxt/#styled
PrimeVue | Vue UI Component Library
The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.
yest
thank you sm
i used
process.env
to solve my trouble
absolute path
hi
@IsraelOrtuno can i bother you?
i want use rules of vee validation for every component nuxt
how can i config them to nuxt.config.js?Hi @8l8 not sure what you are actually trying to achieve but if you could create another thread and be more precise it I am sure we'll find the solution
yes
thank you