Hallo,
on the main PrimeVue-site ( https://www.primefaces.org/primevue/showcase/#/ ) there is a Theme-switch that dynamically switches the themes if wanted (like from Blue Dark to Indigo Dark). How is this done technically with PrimeVue? Are the CSS-Imports simply switched? If so, is there an example how this done with vue?
Best regards
Theme switch on site
I also thought that was cool and wondered how it was done. Fortunately PrimeVue is open source and the reference site is actually the contents of the repository so you can clone it and see how everything works yourself.
The short answer is yes, the theme css file import is switched. It is done so by locating the link in the head in the site static index.html file and replacing the value - the browser does the rest. The technical details are there for you to examine (I may have misunderstood something)
The short answer is yes, the theme css file import is switched. It is done so by locating the link in the head in the site static index.html file and replacing the value - the browser does the rest. The technical details are there for you to examine (I may have misunderstood something)

-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests