start.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ---
  2. title: Get started with Bulma
  3. layout: documentation
  4. doc-tab: overview
  5. doc-subtab: start
  6. ---
  7. {% include subnav-overview.html %}
  8. <section class="section">
  9. <div class="container">
  10. <h1 class="title">Getting started</h1>
  11. <h2 class="subtitle">You only need <strong>1 CSS file</strong> to use Bulma</h2>
  12. <hr>
  13. <div class="content">
  14. <p>
  15. There are several ways to <strong>get started</strong> with Bulma. You can either:
  16. </p>
  17. <ol>
  18. <li>
  19. use <strong>npm</strong> to install the Bulma package
  20. </li>
  21. <li>
  22. use the cdnjs <strong>CDN</strong> to link to the Bulma stylesheet
  23. </li>
  24. <li>
  25. use the <strong>GitHub repository</strong> to get the latest development version
  26. </li>
  27. </ol>
  28. </div>
  29. <article class="media is-large">
  30. <div class="media-left">
  31. <p class="title is-5">1</p>
  32. </div>
  33. <div class="media-content">
  34. <p class="title is-5">
  35. Use <strong>NPM</strong> <em>(recommended)</em>:
  36. </p>
  37. {% highlight bash %}npm install bulma{% endhighlight %}
  38. </div>
  39. </article>
  40. <article class="media is-large">
  41. <div class="media-left">
  42. <p class="title is-5">2</p>
  43. </div>
  44. <div class="media-content">
  45. <p class="title is-5">
  46. Use the <a href="https://cdnjs.com/" target="_blank">cdnjs</a> <strong>CDN</strong>
  47. <br>
  48. <a href="https://cdnjs.com/libraries/bulma">https://cdnjs.com/libraries/bulma</a>
  49. </p>
  50. </div>
  51. </article>
  52. <article class="media is-large">
  53. <div class="media-left">
  54. <p class="title is-5">3</p>
  55. </div>
  56. <div class="media-content">
  57. <p class="title is-5">
  58. Download from the <strong>repository</strong>
  59. <br>
  60. <a href="https://github.com/jgthms/bulma/tree/master/css">https://github.com/jgthms/bulma/tree/master/css</a>
  61. </p>
  62. </div>
  63. </article>
  64. <hr>
  65. <div class="message is-info">
  66. <div class="message-header">
  67. Font Awesome icons
  68. </div>
  69. <div class="message-body">
  70. <p>If you want to use icons with Bulma, don't forget to include <a href="https://fortawesome.github.io/Font-Awesome/">Font Awesome</a>:</p>
  71. {% highlight html %}<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">{% endhighlight %}
  72. </div>
  73. </div>
  74. {% include anchor.html name="Code requirements" %}
  75. <div class="content">
  76. <p>
  77. For Bulma to work correctly, you need to make your webpage <strong>responsive</strong>.
  78. </p>
  79. </div>
  80. <article class="media is-large">
  81. <div class="media-left">
  82. <p class="title is-5">1</p>
  83. </div>
  84. <div class="media-content">
  85. <p class="title is-5">
  86. Use the <strong>HTML5 doctype</strong>
  87. </p>
  88. {% highlight html %}<!DOCTYPE html>{% endhighlight %}
  89. </div>
  90. </article>
  91. <article class="media is-large">
  92. <div class="media-left">
  93. <p class="title is-5">2</p>
  94. </div>
  95. <div class="media-content">
  96. <p class="title is-5">
  97. Add the responsive <strong>viewport</strong> meta tag
  98. </p>
  99. {% highlight html %}<meta name="viewport" content="width=device-width, initial-scale=1">{% endhighlight %}
  100. </div>
  101. </article>
  102. {% include anchor.html name="Starter template" %}
  103. <div class="content">
  104. <p>
  105. 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.
  106. </p>
  107. </div>
  108. <div class="bd-example highlight-full">
  109. {% highlight html %}{% include getting-started.html %}{% endhighlight %}
  110. </div>
  111. </div>
  112. </section>