N
Nuxt8mo ago
8l8

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
8l8
8l8OP8mo ago
please explain to me
IsraelOrtuno
IsraelOrtuno8mo ago
Hello @8l8 , try sharing a bit more context, some code and screenshots may help
8l8
8l8OP8mo ago
@IsraelOrtuno hi i seen my trouble
8l8
8l8OP8mo ago
No description
8l8
8l8OP8mo ago
link href is only use for vue file in pages i want apply css to every file how can solve it?
8l8
8l8OP8mo ago
\
No description
8l8
8l8OP8mo ago
create.vue is not work with my css @IsraelOrtuno
oneeach
oneeach8mo ago
are 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.
8l8
8l8OP8mo ago
i use styled i use head with link rel to switch theme @oneeach \
oneeach
oneeach8mo ago
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
8l8
8l8OP8mo ago
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?
oneeach
oneeach8mo ago
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.
8l8
8l8OP8mo ago
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?
IsraelOrtuno
IsraelOrtuno8mo ago
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
8l8
8l8OP8mo ago
yes thank you
Want results from more Discord servers?
Add your server