[Vuejs]-How do I implement a html/css/js theme into Vue properly?

0👍

When you put them inside your index.html they are not compiled.
You can read about it HERE

0👍

Your index.html is something called a target. Vue uses this file as a mounting point for the rest of the application, so it’s kept relatively clean, most likely with just metadata and a DOM mounting point. It works by loading the index.html in the browser and then mounting your Vue application on top of it.

If you’re trying to apply some styles to a Vue application/components, your best bet is to modify *.vue files inside the app source of your Vue project (typically, /your-project/src). They will contain snippets of relevant sections/components alongside their logic (JavaScript) and styles (CSS/Sass), provided your project uses Single-File Components format.


For future reference:
It’s hard to offer a solution without knowing the structure of your project, what type of components you are using, or even having code samples to get an idea of how things are working inside.

We’d need more information to be able to help you more accurately, so maybe you could create a lightweight demo on an interactive platform like codesandbox.io?

Leave a comment