VOOZH about

URL: https://www.geeksforgeeks.org/css/bulma-table-variables/

⇱ Bulma Table Variables - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bulma Table Variables

Last Updated : 23 Jul, 2025

Bulma is a free and open-source CSS framework based on Flexbox. It is component rich, compatible, and well documented. It is highly responsive in nature. It uses classes to implement its design. 

Bulma supports a lot of types of tables like a bordered table, stripped table, hoverable table, scrollable table, etc. Just by adding some Bulma classes to the HTML, we can achieve very interactive tables.

 Syntax to use variables:

$property-name: Property-value;

Variable Used:

NameDescription       TypeValueComputed ValueComputed Type
$table-colorThis property is used to provide color to the table.variable$text-stronghsl(0, 0%, 21%)color
$table-background-colorThis property is used to provide background color to the table.variable$scheme-mainhsl(0, 0%, 100%)color
$table-cell-borderThis property is used to provide a border cell to the table.size1px solid $border
$table-cell-border-widthThis property is used to define the border width of the table.size0 0 1px
$table-cell-paddingThis property is used to define the padding of the cell in the table.size0.5em 0.75em
$table-cell-heading-colorThis property is used to provide color to the heading cell of the table.variable$text-stronghsl(0, 0%, 21%)color
$table-cell-text-alignThis property is used to align text into the center of the cell in the table.stringleft
$table-head-cell-border-width This property is used to define the width of the head cell border.size0 0 2px
$table-head-cell-colorThis property is used to define the color of the head cell of the table.variable$text-stronghsl(0, 0%, 21%)color
$table-foot-cell-border-widthThis property is used to define the width of the foot cell in the table.size2px 0 0
$table-foot-cell-colorThis property is used to define the color of the foot of the cell.variable$text-stronghsl(0, 0%, 21%)color
$table-head-background-colorThis property is used to provide the background color of the head of the table.stringtransparent
$table-body-background-colorThis property is used to provide the background color of the body.stringtransparent
$table-foot-background-color This property is used to provide background color to the foot table.stringtransparent
$table-row-hover-background-colorThis property is used to provide background color to the row table on hover.variable$scheme-main-bishsl(0, 0%, 98%)color
$table-row-active-background-colorThis property is used to provide background color to the active row.variable$primaryhsl(171, 100%, 41%)color
$table-row-active-colorThis property is used to provide color to the active row of the table.variable$primary-invert#fffcolor
$table-striped-row-even-background-colorThis property is used to provide background color to the even row.variable$scheme-main-bishsl(0, 0%, 98%)color
$table-striped-row-even-hover-background-colorThis property is used to provide background color to the even rows on hover.variable$scheme-main-terhsl(0, 0%, 96%)color
$table-colorsThis property is used to provide color to the table.variable$colorsBulma colorsmap

Example 1: In the below code, we will make use of the above variable to demonstrate the use of the table.

SCSS Code:

$table-colors:lightgreen;
.table{
 color:$table-colors;
}

Compiled CSS Code:

.table {
 color: lightgreen; }

Output:

👁 Image
 

Example 2: In the below code, we will make use of the above variable to demonstrate the use of the table.

SCSS Code:

$table-background-color:lightgreen;
.table{
 background-color:$table-background-color;
 }

Compiled CSS Code:

.table {
 background-color: lightgreen;
 }

Output:

👁 Image
 

Reference: https://bulma.io/documentation/elements/table/#variables

Comment
Article Tags: