start.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ---
  2. title: Getting started with Bulma
  3. layout: documentation
  4. doc-tab: overview
  5. doc-subtab: start
  6. breadcrumb:
  7. - home
  8. - documentation
  9. - overview
  10. - overview-start
  11. ---
  12. <div class="content">
  13. <p>
  14. There are several ways to <strong>get started</strong> with Bulma. You can either:
  15. </p>
  16. <ol>
  17. <li>
  18. use <strong>npm</strong> to install the Bulma package
  19. </li>
  20. <li>
  21. use the cdnjs <strong>CDN</strong> to link to the Bulma stylesheet
  22. </li>
  23. <li>
  24. use the <strong>GitHub repository</strong> to get the latest development version
  25. </li>
  26. </ol>
  27. </div>
  28. <article class="media is-large">
  29. <div class="media-left">
  30. <p class="title is-5">1</p>
  31. </div>
  32. <div class="media-content">
  33. <p class="title is-5">
  34. Use <strong>NPM</strong> <em>(recommended)</em>:
  35. </p>
  36. {% highlight bash %}npm install bulma{% endhighlight %}
  37. </div>
  38. </article>
  39. <article class="media is-large">
  40. <div class="media-left">
  41. <p class="title is-5">2</p>
  42. </div>
  43. <div class="media-content">
  44. <p class="title is-5">
  45. Use the <a href="https://cdnjs.com/" target="_blank">cdnjs</a> <strong>CDN</strong>
  46. <br>
  47. <a href="https://cdnjs.com/libraries/bulma">https://cdnjs.com/libraries/bulma</a>
  48. </p>
  49. </div>
  50. </article>
  51. <article class="media is-large">
  52. <div class="media-left">
  53. <p class="title is-5">3</p>
  54. </div>
  55. <div class="media-content">
  56. <p class="title is-5">
  57. Download from the <strong>repository</strong>
  58. <br>
  59. <a href="https://github.com/jgthms/bulma/tree/master/css">https://github.com/jgthms/bulma/tree/master/css</a>
  60. </p>
  61. </div>
  62. </article>
  63. <hr>
  64. <div class="message is-info">
  65. <div class="message-header">
  66. Font Awesome icons
  67. </div>
  68. <div class="message-body">
  69. <p>If you want to use icons with Bulma, don't forget to include <a href="https://fontawesome.com">Font Awesome 5</a>:</p>
  70. {% highlight html %}<script defer src="{{ site.data.icons.fontawesome5 }}"></script>{% endhighlight %}
  71. </div>
  72. </div>
  73. {% include elements/anchor.html name="Code requirements" %}
  74. <div class="content">
  75. <p>
  76. For Bulma to work correctly, you need to make your webpage <strong>responsive</strong>.
  77. </p>
  78. </div>
  79. <article class="media is-large">
  80. <div class="media-left">
  81. <p class="title is-5">1</p>
  82. </div>
  83. <div class="media-content">
  84. <p class="title is-5">
  85. Use the <strong>HTML5 doctype</strong>
  86. </p>
  87. {% highlight html %}<!DOCTYPE html>{% endhighlight %}
  88. </div>
  89. </article>
  90. <article class="media is-large">
  91. <div class="media-left">
  92. <p class="title is-5">2</p>
  93. </div>
  94. <div class="media-content">
  95. <p class="title is-5">
  96. Add the responsive <strong>viewport</strong> meta tag
  97. </p>
  98. {% highlight html %}<meta name="viewport" content="width=device-width, initial-scale=1">{% endhighlight %}
  99. </div>
  100. </article>
  101. {% include elements/anchor.html name="Starter template" %}
  102. <div class="content">
  103. <p>
  104. If you want to get started <strong>right away</strong>, you can use this <strong>HTML starter template</strong>. Just copy/paste this code in a file and save it on your computer.
  105. </p>
  106. </div>
  107. <div class="bd-example highlight-full">
  108. {% highlight html %}{% include snippets/getting-started.html %}{% endhighlight %}
  109. </div>
  110. {% include elements/anchor.html name="bulma-start" %}
  111. <div class="content">
  112. <p>
  113. <code><a href="/bulma-start/">bulma-start</a></code> is a tiny npm package that includes the <code>npm</code> dependencies you need to build your own website with Bulma.
  114. </p>
  115. <p>
  116. <a class="button is-link" href="/bulma-start/">Check it out</a>
  117. </p>
  118. </div>