color-helpers.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ---
  2. title: Color helpers
  3. layout: documentation
  4. doc-tab: modifiers
  5. doc-subtab: color-helpers
  6. breadcrumb:
  7. - home
  8. - documentation
  9. - modifiers
  10. - modifiers-color-helpers
  11. ---
  12. {% include elements/anchor.html name="Text color" %}
  13. <div class="content">
  14. <p>
  15. You can set any element to one of the <strong>9 colors</strong> or <strong>9 shades of grey</strong>:
  16. </p>
  17. </div>
  18. <table class="table is-bordered">
  19. <thead>
  20. <tr>
  21. <th>
  22. Class
  23. </th>
  24. <th>
  25. Color
  26. </th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <tr><td><code>has-text-white</code></td><td>{% include color/white.html %}</td></tr>
  31. <tr><td><code>has-text-black</code></td><td>{% include color/black.html %}</td></tr>
  32. <tr><td><code>has-text-light</code></td><td>{% include color/white-ter.html %}</td></tr>
  33. <tr><td><code>has-text-dark</code></td><td>{% include color/grey-darker.html %}</td></tr>
  34. <tr><td><code>has-text-primary</code></td><td>{% include color/turquoise.html %}</td></tr>
  35. <tr><td><code>has-text-info</code></td><td>{% include color/cyan.html %}</td></tr>
  36. <tr><td><code>has-text-link</code></td><td>{% include color/blue.html %}</td></tr>
  37. <tr><td><code>has-text-success</code></td><td>{% include color/green.html %}</td></tr>
  38. <tr><td><code>has-text-warning</code></td><td>{% include color/yellow.html %}</td></tr>
  39. <tr><td><code>has-text-danger</code></td><td>{% include color/red.html %}</td></tr>
  40. <tr><td><code>has-text-black-bis</code></td><td>{% include color/black-bis.html %}</td></tr>
  41. <tr><td><code>has-text-black-ter</code></td><td>{% include color/black-ter.html %}</td></tr>
  42. <tr><td><code>has-text-grey-darker</code></td><td>{% include color/grey-darker.html %}</td></tr>
  43. <tr><td><code>has-text-grey-dark</code></td><td>{% include color/grey-dark.html %}</td></tr>
  44. <tr><td><code>has-text-grey</code></td><td>{% include color/grey.html %}</td></tr>
  45. <tr><td><code>has-text-grey-light</code></td><td>{% include color/grey-light.html %}</td></tr>
  46. <tr><td><code>has-text-grey-lighter</code></td><td>{% include color/grey-lighter.html %}</td></tr>
  47. <tr><td><code>has-text-white-ter</code></td><td>{% include color/white-ter.html %}</td></tr>
  48. <tr><td><code>has-text-white-bis</code></td><td>{% include color/white-bis.html %}</td></tr>
  49. </tbody>
  50. </table>
  51. {% assign vernum = site.version | downcase | remove: "." | plus: 0 %}
  52. {% if vernum >= 70 %}
  53. {% include elements/anchor.html name="Background color" %}
  54. {% include elements/new-tag.html version="0.7.0" %}
  55. <div class="content">
  56. <p>
  57. You can set any element to one of the <strong>9 colors</strong> or <strong>9 shades of grey</strong>:
  58. </p>
  59. </div>
  60. <table class="table is-bordered">
  61. <thead>
  62. <tr>
  63. <th>
  64. Class
  65. </th>
  66. <th>
  67. Background color
  68. </th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. <tr><td><code>has-background-white</code></td><td>{% include color/white.html %}</td></tr>
  73. <tr><td><code>has-background-black</code></td><td>{% include color/black.html %}</td></tr>
  74. <tr><td><code>has-background-light</code></td><td>{% include color/white-ter.html %}</td></tr>
  75. <tr><td><code>has-background-dark</code></td><td>{% include color/grey-darker.html %}</td></tr>
  76. <tr><td><code>has-background-primary</code></td><td>{% include color/turquoise.html %}</td></tr>
  77. <tr><td><code>has-background-info</code></td><td>{% include color/cyan.html %}</td></tr>
  78. <tr><td><code>has-background-link</code></td><td>{% include color/blue.html %}</td></tr>
  79. <tr><td><code>has-background-success</code></td><td>{% include color/green.html %}</td></tr>
  80. <tr><td><code>has-background-warning</code></td><td>{% include color/yellow.html %}</td></tr>
  81. <tr><td><code>has-background-danger</code></td><td>{% include color/red.html %}</td></tr>
  82. <tr><td><code>has-background-black-bis</code></td><td>{% include color/black-bis.html %}</td></tr>
  83. <tr><td><code>has-background-black-ter</code></td><td>{% include color/black-ter.html %}</td></tr>
  84. <tr><td><code>has-background-grey-darker</code></td><td>{% include color/grey-darker.html %}</td></tr>
  85. <tr><td><code>has-background-grey-dark</code></td><td>{% include color/grey-dark.html %}</td></tr>
  86. <tr><td><code>has-background-grey</code></td><td>{% include color/grey.html %}</td></tr>
  87. <tr><td><code>has-background-grey-light</code></td><td>{% include color/grey-light.html %}</td></tr>
  88. <tr><td><code>has-background-grey-lighter</code></td><td>{% include color/grey-lighter.html %}</td></tr>
  89. <tr><td><code>has-background-white-ter</code></td><td>{% include color/white-ter.html %}</td></tr>
  90. <tr><td><code>has-background-white-bis</code></td><td>{% include color/white-bis.html %}</td></tr>
  91. </tbody>
  92. </table>
  93. {% endif %}