Customize theme

Colors
Primary
Success
Warning
Danger
Info
Direction
RTL

Change text direction

To switch the text direction of your webpage from LTR to RTL, please consult the detailed instructions provided in the relevant section of our documentation.
Border width, px
Rounding, rem

To apply the provided styles to your webpage, enclose them within a <style> tag and insert this tag into the <head> section of your HTML document after the following link to the main stylesheet:
<link href="assets/css/theme.min.css">


          
Bootstrap docs

Tables

Examples for opt-in styling of tables, alongside searching and sorting features.

The table search and sorting feature is enabled through the List.js plugin. To use this functionality, make sure to include the required reference to the plugin's .js file before the closing </body> tag and above theme.min.js reference in your document:

<script src="assets/vendor/list.js/dist/list.min.js"></script>

Basic example

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
4 Jane Birkins Support +3 774 28 50
<!-- Basic responsive table -->
<div class="table-responsive">
  <table class="table">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
      <tr>
        <th scope="row">4</th>
        <td>Jane</td>
        <td>Birkins</td>
        <td>Support</td>
        <td class="text-nowrap">+3 774 28 50</td>
      </tr>
    </tbody>
  </table>
</div>

Dark table

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
4 Jane Birkins Support +3 774 28 50
<!-- Dark table example -->
<div class="table-responsive">
  <table class="table table-dark">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
      <tr>
        <th scope="row">4</th>
        <td>Jane</td>
        <td>Birkins</td>
        <td>Support</td>
        <td class="text-nowrap">+3 774 28 50</td>
      </tr>
    </tbody>
  </table>
</div>

Striped rows

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
<!-- Table with striped rows -->
<div class="table-responsive">
  <table class="table table-striped">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

<!-- Dark table with striped rows -->
<div class="table-responsive">
  <table class="table table-striped table-dark">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

Striped columns

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
<!-- Table with striped columns -->
<div class="table-responsive">
  <table class="table table-striped-columns">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

<!-- Dark table with striped columns -->
<div class="table-responsive">
  <table class="table table-striped-columns table-dark">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

Bordered table

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
<!-- Bordered table -->
<div class="table-responsive">
  <table class="table table-bordered">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

<!-- Dark bordered table -->
<div class="table-responsive">
  <table class="table table-bordered table-dark">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

Table without borders

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
<!-- Table without borders -->
<div class="table-responsive">
  <table class="table table-borderless">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

<!-- Dark table without borders -->
<div class="table-responsive">
  <table class="table table-borderless table-dark">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

Hoverable rows

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
3 Kale Thornton Developer +3 285 42 88
<!-- Table with hoverable rows -->
<div class="table-responsive">
  <table class="table table-hover">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

<!-- Dark table with hoverable rows -->
<div class="table-responsive">
  <table class="table table-hover table-dark">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">First</th>
        <th scope="col">Last</th>
        <th scope="col">Position</th>
        <th scope="col">Phone</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>John</td>
        <td>Doe</td>
        <td>CEO, Founder</td>
        <td class="text-nowrap">+3 555 68 70</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Anna</td>
        <td>Cabana</td>
        <td>Designer</td>
        <td class="text-nowrap">+3 434 65 93</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Kale</td>
        <td>Thornton</td>
        <td>Developer</td>
        <td class="text-nowrap">+3 285 42 88</td>
      </tr>
    </tbody>
  </table>
</div>

Contextual colors

# Class Heading Heading
1 Primary Column content Column content
2 Secondary Column content Column content
3 Success Column content Column content
4 Info Column content Column content
5 Warning Column content Column content
6 Danger Column content Column content
7 Light Column content Column content
8 Dark Column content Column content
<!-- Use bg-{color}-subtle classes to color tables. Make sure to disable default table backdound color first -->
<div class="table-responsive">
  <table class="table" style="--cz-table-bg: transparent;">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">Class</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
      </tr>
    </thead>
    <tbody>
      <tr class="bg-primary-subtle">
        <th scope="row">1</th>
        <td>Primary</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
      <tr class="bg-secondary-subtle">
        <th scope="row">2</th>
        <td>Secondary</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
      <tr class="bg-success-subtle">
        <th scope="row">3</th>
        <td>Success</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
      <tr class="bg-info-subtle">
        <th scope="row">4</th>
        <td>Info</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
      <tr class="bg-warning-subtle">
        <th scope="row">5</th>
        <td>Warning</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
      <tr class="bg-danger-subtle">
        <th scope="row">6</th>
        <td>Danger</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
      <tr class="bg-light-subtle">
        <th scope="row">7</th>
        <td>Light</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
      <tr class="bg-dark-subtle">
        <th scope="row">8</th>
        <td>Dark</td>
        <td>Column content</td>
        <td>Column content</td>
      </tr>
    </tbody>
  </table>
</div>

Color borders

# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
# First Last Position Phone
1 John Doe CEO, Founder +3 555 68 70
2 Anna Cabana Designer +3 434 65 93
<!-- Color borders on tables -->
<table class="table table-bordered border-info">
  ...
</table>
<table class="table table-bordered border-primary">
  ...
</table>
Top Customize