New to Kendo UI for Angular? Start a free 30-day trial

Customizing Table

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-table-border-widthNumber1px1px
Description
The width of the table border.
$kendo-table-cell-vertical-border-widthNumber1px1px
Description
The width of vertical border of table cells.
$kendo-table-cell-horizontal-border-widthNumber1px1px
Description
The width of horizontal border of table cells.
$kendo-table-font-sizeNullnullnull
Description
The font size of the table if no size is specified.
$kendo-table-line-heightNullnullnull
Description
The line-height of the table if no size is specified.
$kendo-table-cell-padding-xNullnullnull
Description
The horizontal padding of the cells in the table if no size is specified.
$kendo-table-cell-padding-yNullnullnull
Description
The vertical padding of the cells in the table if no size is specified.
$kendo-table-sizesMap( sm: ( font-size: var( --kendo-font-size, inherit ), line-height: var( --kendo-line-height, normal ), cell-padding-x: $kendo-table-sm-cell-padding-x, cell-padding-y: $kendo-table-sm-cell-padding-y ), md: ( font-size: var( --kendo-font-size, inherit ), line-height: var( --kendo-line-height, normal ), cell-padding-x: $kendo-table-md-cell-padding-x, cell-padding-y: $kendo-table-md-cell-padding-y ), lg: ( font-size: var( --kendo-font-size, inherit ), line-height: var( --kendo-line-height, normal ), cell-padding-x: $kendo-table-lg-cell-padding-x, cell-padding-y: $kendo-table-lg-cell-padding-y ) )(sm: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), cell-padding-x: var(--kendo-spacing-2\.5, 0.625rem), cell-padding-y: var(--kendo-spacing-1, 0.25rem)), md: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), cell-padding-x: var(--kendo-spacing-6, 1.5rem), cell-padding-y: var(--kendo-spacing-2\.5, 0.625rem)), lg: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), cell-padding-x: var(--kendo-spacing-6, 1.5rem), cell-padding-y: var(--kendo-spacing-2\.5, 0.625rem)))
Description
The sizes of the table.
$kendo-table-bgString$kendo-component-bgvar(--kendo-color-surface-alt, #ffffff)
Description
Background color of tables.
$kendo-table-textString$kendo-component-textvar(--kendo-color-on-app-surface, #212121)
Description
Text color of tables.
$kendo-table-borderString$kendo-component-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
Border color of tables.
$kendo-table-header-bgString$kendo-table-bgvar(--kendo-color-surface-alt, #ffffff)
Description
Background color of table headers.
$kendo-table-header-textStringif($kendo-enable-color-system, k-color( subtle ), if( $kendo-is-dark-theme, $light-secondary-text, $dark-secondary-text ))var(--kendo-color-subtle, #757575)
Description
Text color of table headers.
$kendo-table-header-borderString$kendo-table-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
Border color of table headers.
$kendo-table-header-gradientNullnullnull
Description
Gradient of table headers.
$kendo-table-footer-bgString$kendo-table-header-bgvar(--kendo-color-surface-alt, #ffffff)
Description
Background color of table footers.
$kendo-table-footer-textString$kendo-table-header-textvar(--kendo-color-subtle, #757575)
Description
Text color of table footers.
$kendo-table-footer-borderString$kendo-table-header-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
Border color of table footers.
$kendo-table-group-row-bgString$kendo-table-header-bgvar(--kendo-color-surface-alt, #ffffff)
Description
Background color of group rows in table.
$kendo-table-group-row-textString$kendo-table-header-textvar(--kendo-color-subtle, #757575)
Description
Text color of group rows in table.
$kendo-table-group-row-borderString$kendo-table-header-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
Border color of group rows in table.
$kendo-table-alt-row-bgColortransparenttransparent
Description
Background color of alternating rows in table.
$kendo-table-alt-row-textNullnullnull
Description
Text color of alternating rows in table.
$kendo-table-alt-row-borderNullnullnull
Description
Border color of alternating rows in table.
$kendo-table-hover-bgStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 8%, transparent), rgba( k-contrast-color( $kendo-table-bg ), .07 ))color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 8%, transparent)
Description
Background color of hovered rows in table.
$kendo-table-hover-textNullnullnull
Description
Text color of hovered rows in table.
$kendo-table-hover-borderString$kendo-table-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
Border color of hovered rows in table.
$kendo-table-focus-bgNullnullnull
Description
Background color of focused rows in table.
$kendo-table-focus-textNullnullnull
Description
Text color of focused rows in table.
$kendo-table-focus-borderNullnullnull
Description
Border color of focused rows in table.
$kendo-table-focus-shadowNull$kendo-list-item-focus-shadownull
Description
Box shadow of focused rows in table.
$kendo-table-selected-bgStringif($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 12%, transparent), rgba( k-contrast-color( $kendo-table-bg ), .04 ))color-mix(in srgb, var(--kendo-color-primary, #3f51b5) 12%, transparent)
Description
Background color of selected rows in table.
$kendo-table-selected-textNullnullnull
Description
Text color of selected rows in table.
$kendo-table-selected-borderNullnullnull
Description
Border color of selected rows in table.

In this article

Not finding the help you need?