New to Kendo UI for Angular? Start a free 30-day trial
Customizing Grid
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-grid-padding-x | String | $kendo-table-md-cell-padding-x | var(--kendo-spacing-3, 0.75rem) |
Description
The horizontal padding of the Grid. | |||
$kendo-grid-padding-y | String | $kendo-table-md-cell-padding-y | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Grid. | |||
$kendo-grid-header-padding-x | String | $kendo-grid-padding-x | var(--kendo-spacing-3, 0.75rem) |
Description
The horizontal padding of the Grid header. | |||
$kendo-grid-header-padding-y | String | $kendo-grid-padding-y | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Grid header. | |||
$kendo-grid-grouping-header-padding-x | String | $kendo-grid-padding-y | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Grid grouping header. | |||
$kendo-grid-grouping-header-padding-y | String | $kendo-grid-grouping-header-padding-x | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Grid grouping header. | |||
$kendo-grid-cell-padding-x | String | $kendo-grid-padding-x | var(--kendo-spacing-3, 0.75rem) |
Description
The horizontal padding of the Grid cell. | |||
$kendo-grid-cell-padding-y | String | $kendo-grid-padding-y | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Grid cell. | |||
$kendo-grid-filter-cell-padding-x | String | $kendo-grid-padding-y | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Grid filter cell. | |||
$kendo-grid-filter-cell-padding-y | String | $kendo-grid-filter-cell-padding-x | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Grid filter cell. | |||
$kendo-grid-edit-cell-padding-x | String | $kendo-grid-cell-padding-x | var(--kendo-spacing-3, 0.75rem) |
Description
The horizontal padding of the Grid edit cell. | |||
$kendo-grid-edit-cell-padding-y | Calculation | calc( #{k-spacing(1.5)} / 2 ) | calc(var(--kendo-spacing-1\.5, 0.375rem) / 2) |
Description
The vertical padding of the Grid filter cell. | |||
$kendo-grid-bg | String | $kendo-table-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the Grid. | |||
$kendo-grid-text | String | $kendo-table-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The text color of the Grid. | |||
$kendo-grid-border | String | $kendo-table-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the Grid. | |||
$kendo-grid-header-bg | String | $kendo-table-header-bg | var(--kendo-color-surface, #fafafa) |
Description
The background color of Grid header. | |||
$kendo-grid-header-text | String | $kendo-table-header-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The text color of Grid header. | |||
$kendo-grid-header-border | String | $kendo-table-header-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of Grid header. | |||
$kendo-grid-header-gradient | Null | $kendo-table-header-gradient | null |
Description
The background gradient of Grid header. | |||
$kendo-grid-footer-bg | String | $kendo-grid-header-bg | var(--kendo-color-surface, #fafafa) |
Description
The background color of Grid footer. | |||
$kendo-grid-footer-text | String | $kendo-grid-header-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The text color of Grid footer. | |||
$kendo-grid-footer-border | String | $kendo-grid-header-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of Grid footer. | |||
$kendo-grid-alt-bg | String | $kendo-table-alt-row-bg | color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 5%, transparent) |
Description
The background color of the Grid alternating rows. | |||
$kendo-grid-alt-text | Null | $kendo-table-alt-row-text | null |
Description
The text color of the Grid alternating rows. | |||
$kendo-grid-alt-border | Null | $kendo-table-alt-row-border | null |
Description
The border color of the Grid alternating rows. | |||
$kendo-grid-hover-bg | String | $kendo-table-hover-bg | color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 11%, transparent) |
Description
The background color of hovered Grid rows. | |||
$kendo-grid-hover-text | Null | $kendo-table-hover-text | null |
Description
The text color of hovered Grid rows. | |||
$kendo-grid-hover-border | Null | $kendo-table-hover-border | null |
Description
The border color of hovered Grid rows. | |||
$kendo-grid-selected-bg | String | $kendo-table-selected-bg | color-mix(in srgb, var(--kendo-color-primary, #ff6358) 25%, transparent) |
Description
The background color of selected Grid rows. | |||
$kendo-grid-selected-text | Null | $kendo-table-selected-text | null |
Description
The text color of selected Grid rows. | |||
$kendo-grid-selected-border | Null | $kendo-table-selected-border | null |
Description
The border color of selected Grid rows. | |||
$kendo-grid-selection-aggregates-bg | String | $kendo-grid-header-bg | var(--kendo-color-surface, #fafafa) |
Description
The background color of the Grid selection aggregates container. | |||
$kendo-grid-selection-aggregates-text | String | $kendo-grid-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The text color of the Grid selection aggregates container. | |||
$kendo-grid-selection-aggregates-border | String | $kendo-grid-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the Grid selection aggregates container. | |||
$kendo-grid-selection-aggregates-border-width | Number | $kendo-grid-border-width | 1px |
Description
The border width of the Grid selection aggregates container. | |||
$kendo-grid-selection-aggregates-spacing | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The spacing between the selection aggregates items. | |||
$kendo-grid-selection-aggregates-line-height | String | $kendo-grid-line-height | var(--kendo-line-height, normal) |
Description
The line height of the Grid selection aggregates container. | |||
$kendo-grid-selection-aggregates-font-weight | String | var( --kendo-font-weight-bold, normal ) | var(--kendo-font-weight-bold, normal) |
Description
The font weight of the Grid selection aggregates container. | |||
$kendo-grid-row-resizer-hover-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-base ) 20%, transparent), rgba( k-contrast-color( $kendo-grid-bg ), .12 )) | color-mix(in srgb, var(--kendo-color-on-base, #3d3d3d) 20%, transparent) |
Description
The background color of the Grid row resize indicator. | |||
$kendo-grid-row-resizer-active-bg | String | $kendo-color-primary | var(--kendo-color-primary, #ff6358) |
Description
The background color of the active Grid row resize indicator. | |||
$kendo-grid-row-resizer-height | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The height of the Grid row resize indicator. |