ttskch / vuepress-theme-blog-vuetify

💥The world's most simple, beautiful and customizable 2 columns VuePress blog theme built with Vuetify
https://vuepress-theme-blog-vuetify.ttskch.com/
MIT License
37 stars 10 forks source link

Including npm package with Vuetify dependency overrides/resets styling #14

Open silvester-pari opened 3 years ago

silvester-pari commented 3 years ago

Hello,

first of all thanks for this great template! Really like it so far. However, I am experiencing a strange problem:

If I include a component from npm that uses Vuetify itself (for example: v-stripe-elements, but also others), then the blog styling is overridden with default Vuetify styling. For example: font-size

If I inspect rendered font-size CSS on a normal page (without npm component), it shows correctly 15px:

But, if I go to a page where a external npm component is used, it shows 16px:

I have tried for many hours finding the issue, also tested in new projects with Vuetify, couldn't reproduce the problem. Every time I import it to an other Vuetify project, it works. If I import it here into vuepress-theme-blog-vuetify, it "breaks" the style (resets to default Vuetify style), and the whole layout is broken (containers, font sizes, font families, etc.).

Do you have an idea what happens here? Maybe something with the way how styles are imported in vuepress-theme-blog-vuetify?

I would be very very happy for any help! :blush:

silvester-pari commented 3 years ago

Ah, could it be related to this issue? https://github.com/vuejs/vuepress/issues/1099