Why does importing Buefy to my Vuejs project makes tag and some Bootstrap element display the wrong style?











up vote
0
down vote

favorite












I'm using Bootstrap 4 and Buefy in my webpack-simple Vue.js project. When I import Buefy just like in the Docs, my tag does not enlarge the text and the nav-bar in Bootstrap 4 displaying the wrong width.



My main.js file looks like this



import Vue from 'vue';
import "bootstrap/dist/css/bootstrap.min.css";
import 'buefy/dist/buefy.css';
import Buefy from 'buefy';
Vue.use(Buefy);


What it should be when I remove the import Buefy:



enter image description here



But importing Buefy to my main.js lead to this problem:



enter image description here










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm using Bootstrap 4 and Buefy in my webpack-simple Vue.js project. When I import Buefy just like in the Docs, my tag does not enlarge the text and the nav-bar in Bootstrap 4 displaying the wrong width.



    My main.js file looks like this



    import Vue from 'vue';
    import "bootstrap/dist/css/bootstrap.min.css";
    import 'buefy/dist/buefy.css';
    import Buefy from 'buefy';
    Vue.use(Buefy);


    What it should be when I remove the import Buefy:



    enter image description here



    But importing Buefy to my main.js lead to this problem:



    enter image description here










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm using Bootstrap 4 and Buefy in my webpack-simple Vue.js project. When I import Buefy just like in the Docs, my tag does not enlarge the text and the nav-bar in Bootstrap 4 displaying the wrong width.



      My main.js file looks like this



      import Vue from 'vue';
      import "bootstrap/dist/css/bootstrap.min.css";
      import 'buefy/dist/buefy.css';
      import Buefy from 'buefy';
      Vue.use(Buefy);


      What it should be when I remove the import Buefy:



      enter image description here



      But importing Buefy to my main.js lead to this problem:



      enter image description here










      share|improve this question













      I'm using Bootstrap 4 and Buefy in my webpack-simple Vue.js project. When I import Buefy just like in the Docs, my tag does not enlarge the text and the nav-bar in Bootstrap 4 displaying the wrong width.



      My main.js file looks like this



      import Vue from 'vue';
      import "bootstrap/dist/css/bootstrap.min.css";
      import 'buefy/dist/buefy.css';
      import Buefy from 'buefy';
      Vue.use(Buefy);


      What it should be when I remove the import Buefy:



      enter image description here



      But importing Buefy to my main.js lead to this problem:



      enter image description here







      javascript html css vue.js buefy






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 3:44









      quanpham0805

      349




      349
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Buefy is based on the underlying Bulma CSS framework which conflict with Bootstrap at some points as they implies global styles and class names that may be the same.



          You can try to use LESS with Bootstrap to avoid conflicts but I feel this is overcomplicating and you should just stay with one or the other, known that there is a Bootstrap-Vue port and that Bulma (Buefy also then) do exactly the same things as you can do with Bootstrap






          share|improve this answer





















          • I just use Buefy because I see some of the styles in Buefy but it is unavailable in Bootstrap-vue, but it seems to me that I need to stick with Bootstrap then :(
            – quanpham0805
            Nov 9 at 3:59










          • You can swap to Bulma/Buefy, it's a very fine CSS Framework; I'm doubting that Bootstrap miss anything (or his Vue port), but you might try your chance with other UI library like Vuetify or Element which are not based on Bootstrap or Bulma
            – Plotisateur
            Nov 9 at 4:04












          • The Bootstrap-vue doesn't seem to have a expand tabs like in Buefy, you can read my question on stackoverflow here, I hope you could suggest me a way link
            – quanpham0805
            Nov 9 at 15:30











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219555%2fwhy-does-importing-buefy-to-my-vuejs-project-makes-h1-tag-and-some-bootstrap-e%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          Buefy is based on the underlying Bulma CSS framework which conflict with Bootstrap at some points as they implies global styles and class names that may be the same.



          You can try to use LESS with Bootstrap to avoid conflicts but I feel this is overcomplicating and you should just stay with one or the other, known that there is a Bootstrap-Vue port and that Bulma (Buefy also then) do exactly the same things as you can do with Bootstrap






          share|improve this answer





















          • I just use Buefy because I see some of the styles in Buefy but it is unavailable in Bootstrap-vue, but it seems to me that I need to stick with Bootstrap then :(
            – quanpham0805
            Nov 9 at 3:59










          • You can swap to Bulma/Buefy, it's a very fine CSS Framework; I'm doubting that Bootstrap miss anything (or his Vue port), but you might try your chance with other UI library like Vuetify or Element which are not based on Bootstrap or Bulma
            – Plotisateur
            Nov 9 at 4:04












          • The Bootstrap-vue doesn't seem to have a expand tabs like in Buefy, you can read my question on stackoverflow here, I hope you could suggest me a way link
            – quanpham0805
            Nov 9 at 15:30















          up vote
          1
          down vote



          accepted










          Buefy is based on the underlying Bulma CSS framework which conflict with Bootstrap at some points as they implies global styles and class names that may be the same.



          You can try to use LESS with Bootstrap to avoid conflicts but I feel this is overcomplicating and you should just stay with one or the other, known that there is a Bootstrap-Vue port and that Bulma (Buefy also then) do exactly the same things as you can do with Bootstrap






          share|improve this answer





















          • I just use Buefy because I see some of the styles in Buefy but it is unavailable in Bootstrap-vue, but it seems to me that I need to stick with Bootstrap then :(
            – quanpham0805
            Nov 9 at 3:59










          • You can swap to Bulma/Buefy, it's a very fine CSS Framework; I'm doubting that Bootstrap miss anything (or his Vue port), but you might try your chance with other UI library like Vuetify or Element which are not based on Bootstrap or Bulma
            – Plotisateur
            Nov 9 at 4:04












          • The Bootstrap-vue doesn't seem to have a expand tabs like in Buefy, you can read my question on stackoverflow here, I hope you could suggest me a way link
            – quanpham0805
            Nov 9 at 15:30













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Buefy is based on the underlying Bulma CSS framework which conflict with Bootstrap at some points as they implies global styles and class names that may be the same.



          You can try to use LESS with Bootstrap to avoid conflicts but I feel this is overcomplicating and you should just stay with one or the other, known that there is a Bootstrap-Vue port and that Bulma (Buefy also then) do exactly the same things as you can do with Bootstrap






          share|improve this answer












          Buefy is based on the underlying Bulma CSS framework which conflict with Bootstrap at some points as they implies global styles and class names that may be the same.



          You can try to use LESS with Bootstrap to avoid conflicts but I feel this is overcomplicating and you should just stay with one or the other, known that there is a Bootstrap-Vue port and that Bulma (Buefy also then) do exactly the same things as you can do with Bootstrap







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 9 at 3:55









          Plotisateur

          363314




          363314












          • I just use Buefy because I see some of the styles in Buefy but it is unavailable in Bootstrap-vue, but it seems to me that I need to stick with Bootstrap then :(
            – quanpham0805
            Nov 9 at 3:59










          • You can swap to Bulma/Buefy, it's a very fine CSS Framework; I'm doubting that Bootstrap miss anything (or his Vue port), but you might try your chance with other UI library like Vuetify or Element which are not based on Bootstrap or Bulma
            – Plotisateur
            Nov 9 at 4:04












          • The Bootstrap-vue doesn't seem to have a expand tabs like in Buefy, you can read my question on stackoverflow here, I hope you could suggest me a way link
            – quanpham0805
            Nov 9 at 15:30


















          • I just use Buefy because I see some of the styles in Buefy but it is unavailable in Bootstrap-vue, but it seems to me that I need to stick with Bootstrap then :(
            – quanpham0805
            Nov 9 at 3:59










          • You can swap to Bulma/Buefy, it's a very fine CSS Framework; I'm doubting that Bootstrap miss anything (or his Vue port), but you might try your chance with other UI library like Vuetify or Element which are not based on Bootstrap or Bulma
            – Plotisateur
            Nov 9 at 4:04












          • The Bootstrap-vue doesn't seem to have a expand tabs like in Buefy, you can read my question on stackoverflow here, I hope you could suggest me a way link
            – quanpham0805
            Nov 9 at 15:30
















          I just use Buefy because I see some of the styles in Buefy but it is unavailable in Bootstrap-vue, but it seems to me that I need to stick with Bootstrap then :(
          – quanpham0805
          Nov 9 at 3:59




          I just use Buefy because I see some of the styles in Buefy but it is unavailable in Bootstrap-vue, but it seems to me that I need to stick with Bootstrap then :(
          – quanpham0805
          Nov 9 at 3:59












          You can swap to Bulma/Buefy, it's a very fine CSS Framework; I'm doubting that Bootstrap miss anything (or his Vue port), but you might try your chance with other UI library like Vuetify or Element which are not based on Bootstrap or Bulma
          – Plotisateur
          Nov 9 at 4:04






          You can swap to Bulma/Buefy, it's a very fine CSS Framework; I'm doubting that Bootstrap miss anything (or his Vue port), but you might try your chance with other UI library like Vuetify or Element which are not based on Bootstrap or Bulma
          – Plotisateur
          Nov 9 at 4:04














          The Bootstrap-vue doesn't seem to have a expand tabs like in Buefy, you can read my question on stackoverflow here, I hope you could suggest me a way link
          – quanpham0805
          Nov 9 at 15:30




          The Bootstrap-vue doesn't seem to have a expand tabs like in Buefy, you can read my question on stackoverflow here, I hope you could suggest me a way link
          – quanpham0805
          Nov 9 at 15:30


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219555%2fwhy-does-importing-buefy-to-my-vuejs-project-makes-h1-tag-and-some-bootstrap-e%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Schultheiß

          Verwaltungsgliederung Dänemarks

          Liste der Kulturdenkmale in Wilsdruff