start.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ---
  2. layout: documentation
  3. doc-tab: overview
  4. doc-subtab: start
  5. ---
  6. {% include subnav-overview.html %}
  7. <section class="section">
  8. <div class="container">
  9. <h1 class="title"><strong>3</strong> ways to start</h1>
  10. <h2 class="subtitle">You only need <strong>1 CSS file</strong> to use Bulma</h2>
  11. <hr>
  12. <article class="media is-large">
  13. <div class="media-number">1</div>
  14. <div class="media-content">
  15. <p class="title is-5">
  16. Use <strong>NPM</strong> <em>(recommended)</em>:
  17. </p>
  18. {% highlight bash %}
  19. npm install bulma
  20. {% endhighlight %}
  21. </div>
  22. </article>
  23. <article class="media is-large">
  24. <div class="media-number">2</div>
  25. <div class="media-content">
  26. <p class="title is-5">
  27. Use the <a href="https://cdnjs.com/" target="_blank">cdnjs</a> <strong>CDN</strong>
  28. <br>
  29. <a href="https://cdnjs.com/libraries/bulma">https://cdnjs.com/libraries/bulma</a>
  30. </p>
  31. </div>
  32. </article>
  33. <article class="media is-large">
  34. <div class="media-number">3</div>
  35. <div class="media-content">
  36. <p class="title is-5">
  37. Download from the <strong>repository</strong>
  38. <br>
  39. <a href="https://github.com/jgthms/bulma/tree/master/css">https://github.com/jgthms/bulma/tree/master/css</a>
  40. </p>
  41. </div>
  42. </article>
  43. <hr>
  44. <div class="message is-info">
  45. <div class="message-header">
  46. Font Awesome icons
  47. </div>
  48. <div class="message-body">
  49. <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>
  50. {% highlight html %}
  51. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
  52. {% endhighlight %}
  53. </div>
  54. </div>
  55. <hr>
  56. <h3 class="title">Customizing with Sass</h3>
  57. <div class="content">
  58. <p>If you're familiar with <a href="http://sass-lang.com/">Sass</a> and want to <strong>customize</strong> Bulma with your own colors and variables, just install Bulma via <strong>npm</strong>:</p>
  59. </div>
  60. <article class="media is-large">
  61. <div class="media-number">1</div>
  62. <div class="media-content">
  63. <p class="title is-5">
  64. <strong>Download</strong> the source files:
  65. </p>
  66. {% highlight bash %}
  67. npm install bulma
  68. {% endhighlight %}
  69. <div class="content">or clone the repository: <a href="https://github.com/jgthms/bulma">https://github.com/jgthms/bulma</a></div>
  70. </div>
  71. </article>
  72. <article class="media is-large">
  73. <div class="media-number">2</div>
  74. <div class="media-content">
  75. <p class="title is-5">
  76. <strong>Set</strong> your variables:<br>
  77. {% highlight sass %}
  78. // Override initial variables here
  79. // You can add new ones or update existing ones:
  80. $blue: #72d0eb // Update blue
  81. $pink: #ffb3b3 // Add pink
  82. $family-serif: "Georgia", serif // Add a serif family
  83. // Override generated variables here
  84. // For example, by default, the $danger color is $red and the font is sans-serif
  85. // You can change these values:
  86. $danger: $orange // Use the existing orange
  87. $family-primary: $family-serif // Use the new serif family
  88. {% endhighlight %}
  89. </p>
  90. </div>
  91. </article>
  92. <article class="media is-large">
  93. <div class="media-number">3</div>
  94. <div class="media-content">
  95. <p class="title is-5">
  96. <strong>Import</strong> Bulma <em>after</em> having set your variables:<br>
  97. {% highlight sass %}
  98. // Override variables here
  99. // You can add new ones or update existing ones:
  100. $blue: #72d0eb // Update blue
  101. $pink: #ffb3b3 // Add pink
  102. $family-serif: "Georgia", serif // Add a serif family
  103. // Override generated variables here
  104. // For example, by default, the $danger color is $red and the font is sans-serif
  105. // You can change these values:
  106. $danger: $orange // Use the existing orange
  107. $family-primary: $family-serif // Use the new serif family
  108. @import "bulma"
  109. {% endhighlight %}
  110. </p>
  111. </div>
  112. </article>
  113. </div>
  114. </section>