color-helpers.html 4.6 KB

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