concepts.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. title: Concepts
  3. layout: documentation
  4. doc-tab: customize
  5. doc-subtab: concepts
  6. breadcrumb:
  7. - home
  8. - documentation
  9. - customize
  10. - customize-concepts
  11. ---
  12. {% assign variables_link = site.data.links.by_id['customize-node-sass'] %}
  13. <div class="content">
  14. <p>
  15. Bulma is highly customizable thanks to <strong>415 Sass variables</strong> living across <strong>28 files</strong>.
  16. </p>
  17. <p>
  18. These variables exist at 4 levels:
  19. </p>
  20. <ul>
  21. <li>
  22. <strong><a href="{{ site.url }}{{ variables_link.path }}#initial-variables">initial variables</a></strong>: global variables with <strong>literal</strong> values
  23. </li>
  24. <li>
  25. <strong><a href="{{ site.url }}{{ variables_link.path }}#derived-variables">derived variables</a></strong>: global variables with values that reference other variables, or are computed
  26. </li>
  27. <li>
  28. <strong><a href="{{ site.url }}{{ variables_link.path }}#generic-variables">generic variables</a></strong>: for the HTML elements which carry no CSS class
  29. </li>
  30. <li>
  31. <strong>element/component variables</strong>: variables that are specific to a Bulma element/component
  32. </li>
  33. </ul>
  34. <p>
  35. Since these variables carry the <code>!default</code> flag, they can be assigned a <strong>new value</strong> either before or after having been imported.
  36. </p>
  37. </div>
  38. {% include elements/anchor.html name="Strategy" %}
  39. {% assign node_sass_link = site.data.links.by_id['customize-node-sass'] %}
  40. {% assign sass_cli_link = site.data.links.by_id['customize-sass-cli'] %}
  41. {% assign webpack_link = site.data.links.by_id['customize-webpack'] %}
  42. <div class="content">
  43. <p>
  44. To customize Bulma, you will need to:
  45. </p>
  46. <ul>
  47. <li>
  48. <strong>install</strong> (or download) Bulma
  49. </li>
  50. <li>
  51. have a working <strong>Sass setup</strong>
  52. </li>
  53. <li>
  54. create your own <code>.scss</code> or <code>.sass</code> file
  55. </li>
  56. </ul>
  57. <p>
  58. This can be achieved with:
  59. </p>
  60. <ul>
  61. <li>
  62. with <a href="{{ site.url }}{{ node_sass_link.path }}">node-sass</a>
  63. </li>
  64. <li>
  65. with the <a href="{{ site.url }}{{ sass_cli_link.path }}">Sass CLI</a>
  66. </li>
  67. <li>
  68. with <a href="{{ site.url }}{{ webpack_link.path }}">webpack</a>
  69. </li>
  70. </ul>
  71. </div>