Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
silvester-pari opened this issue Jan 7, 2021 · 1 comment

Comments

@silvester-pari
Copy link

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:

  • font-size: 15px (from _variables.scss, imported in BaseLayout.vue in blog repo)
  • font-size: 16px (from default Vuetify style vuetify.css in blog repo)
    image

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

  • font-size: 16px (from default Vuetify style main.sass in Vuetify package!)
  • font-size: 15px (from _variables.scss, imported in BaseLayout.vue in blog repo)
  • font-size: 16px (from default Vuetify style vuetify.css in blog repo)
    image

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! 😊

@silvester-pari
Copy link
Author

Ah, could it be related to this issue? vuejs/vuepress#1099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant