New to Kendo UI for Angular? Start a free 30-day trial
Customizing Button
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-button-border-width | Number | 1px | 1px |
Description
The width of the border around the Button. | |||
$kendo-button-border-radius | Null | null | null |
Description
The border radius of the Button. | |||
$kendo-button-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the Button. | |||
$kendo-button-sm-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the small Button. | |||
$kendo-button-md-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the medium Button. | |||
$kendo-button-lg-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the large Button. | |||
$kendo-button-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Button. | |||
$kendo-button-sm-padding-y | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
The vertical padding of the small Button. | |||
$kendo-button-md-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the medium Button. | |||
$kendo-button-lg-padding-y | String | k-spacing(2.5) | var(--kendo-spacing-2\.5, 0.625rem) |
Description
The vertical padding of the large Button. | |||
$kendo-button-font-family | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font family of the Button. | |||
$kendo-button-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Button. | |||
$kendo-button-sm-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the small Button. | |||
$kendo-button-md-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the medium Button. | |||
$kendo-button-lg-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the large Button. | |||
$kendo-button-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
Line heights used along with the $kendo-font-size variable. | |||
$kendo-button-sm-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height used along with the $kendo-font-size variable of the small Button. | |||
$kendo-button-md-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height used along with the $kendo-font-size variable of the medium Button. | |||
$kendo-button-lg-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height used along with the $kendo-font-size variable of the large Button. | |||
$kendo-button-calc-size | Calculation | calc( #{$kendo-button-line-height * 1em} + calc( #{$kendo-button-padding-y} * 2 ) + #{$kendo-button-border-width * 2} ) | calc(1.4285714286em + var(--kendo-spacing-2, 0.5rem) * 2 + 2px) |
Description
The calculated height of the Button. | |||
$kendo-button-inner-calc-size | Calculation | calc( #{$kendo-button-line-height * 1em} + calc( #{$kendo-button-padding-y} * 2 ) ) | calc(1.4285714286em + var(--kendo-spacing-2, 0.5rem) * 2) |
Description
The calculated inner height of the Button excluding the border width. | |||
$kendo-button-sizes | Map | (
sm: (
padding-x: $kendo-button-sm-padding-x,
padding-y: $kendo-button-sm-padding-y,
font-size: $kendo-button-sm-font-size,
line-height: $kendo-button-sm-line-height
),
md: (
padding-x: $kendo-button-md-padding-x,
padding-y: $kendo-button-md-padding-y,
font-size: $kendo-button-md-font-size,
line-height: $kendo-button-md-line-height
),
lg: (
padding-x: $kendo-button-lg-padding-x,
padding-y: $kendo-button-lg-padding-y,
font-size: $kendo-button-lg-font-size,
line-height: $kendo-button-lg-line-height
)
) | (sm: (padding-x: var(--kendo-spacing-4, 1rem), padding-y: var(--kendo-spacing-1\.5, 0.375rem), font-size: var(--kendo-font-size, inherit), line-height: 1.4285714286), md: (padding-x: var(--kendo-spacing-4, 1rem), padding-y: var(--kendo-spacing-2, 0.5rem), font-size: var(--kendo-font-size, inherit), line-height: 1.4285714286), lg: (padding-x: var(--kendo-spacing-4, 1rem), padding-y: var(--kendo-spacing-2\.5, 0.625rem), font-size: var(--kendo-font-size, inherit), line-height: 1.4285714286)) |
Description
The sizes map for the Button. | |||
$kendo-button-theme-colors | Map | k-map-merge(
$kendo-theme-colors,
( "base": $kendo-base-bg )
) | ("primary": var(--kendo-color-primary, #3f51b5), "secondary": var(--kendo-color-secondary, #e51a5f), "tertiary": var(--kendo-color-tertiary, #00695c), "info": var(--kendo-color-info, #0058e9), "success": var(--kendo-color-success, #37b400), "warning": var(--kendo-color-warning, #ffc000), "error": var(--kendo-color-error, #f31700), "dark": var(--kendo-color-dark, #424242), "light": var(--kendo-color-light, #f5f5f5), "inverse": var(--kendo-color-dark, #424242), "base": var(--kendo-color-app-surface, #ffffff)) |
Description
The theme colors map for the Button. | |||
$kendo-button-bg | String | if($kendo-enable-color-system, k-color( base ), $kendo-base-bg) | var(--kendo-color-base, #ffffff) |
Description
The base background of the Button. | |||
$kendo-button-text | String | if($kendo-enable-color-system, k-color( on-base ), $kendo-base-text) | var(--kendo-color-on-base, #212121) |
Description
The base text color of the Button. | |||
$kendo-button-border | String | $kendo-button-bg | var(--kendo-color-base, #ffffff) |
Description
The base border color of the Button. | |||
$kendo-button-gradient | Null | null | null |
Description
The base background gradient of the Button. | |||
$kendo-button-shadow | String | $box-shadow-depth-2 | var(--kendo-elevation-2, 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 3px 1px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14)) |
Description
The base shadow of the Button. | |||
$kendo-button-hover-bg | Null | null | null |
Description
The base background of the hovered Button. | |||
$kendo-button-hover-text | Null | null | null |
Description
The base text color of the hovered Button. | |||
$kendo-button-hover-border | Null | null | null |
Description
The base border color of the hovered Button. | |||
$kendo-button-hover-gradient | Null | null | null |
Description
The base background gradient of the hovered Button. | |||
$kendo-button-hover-shadow | Null | null | null |
Description
The base shadow of the hovered Button. | |||
$kendo-button-active-bg | Null | null | null |
Description
The base background color of the active Button. | |||
$kendo-button-active-text | Null | null | null |
Description
The base text color of the active Button. | |||
$kendo-button-active-border | Null | null | null |
Description
The base border color of the active Button. | |||
$kendo-button-active-gradient | Null | null | null |
Description
The base background gradient of the active Button. | |||
$kendo-button-active-shadow | String | $box-shadow-depth-6 | var(--kendo-elevation-6, 0px 5px 5px 0px rgba(0, 0, 0, 0.2), 0px 3px 14px 0px rgba(0, 0, 0, 0.12), 0px 8px 10px 0px rgba(0, 0, 0, 0.14)) |
Description
The base shadow of the active Button. | |||
$kendo-button-selected-bg | Null | $kendo-button-active-bg | null |
Description
The base background color of the selected Button. | |||
$kendo-button-selected-text | Null | $kendo-button-active-text | null |
Description
The base text color of the selected Button. | |||
$kendo-button-selected-border | Null | $kendo-button-active-bg | null |
Description
The base border color of the selected Button. | |||
$kendo-button-selected-gradient | Null | null | null |
Description
The base background gradient of the selected Button. | |||
$kendo-button-selected-shadow | Null | null | null |
Description
The base shadow of the selected Button. | |||
$kendo-button-focus-bg | Null | null | null |
Description
The base background of the focused Button. | |||
$kendo-button-focus-text | Null | null | null |
Description
The base text color of the focused Button. | |||
$kendo-button-focus-border | Null | null | null |
Description
The base border color of the focused Button. | |||
$kendo-button-focus-gradient | Null | null | null |
Description
The base background gradient of focused Button. | |||
$kendo-button-focus-shadow | Null | null | null |
Description
The base shadow of the focused Button. | |||
$kendo-button-disabled-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 9%, transparent), k-try-shade( $kendo-body-bg, 12% )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 9%, transparent) |
Description
The base background color of the disabled Button. | |||
$kendo-button-disabled-text | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 32%, transparent), $kendo-disabled-text) | color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 32%, transparent) |
Description
The base text color of the disabled Button. | |||
$kendo-button-disabled-border | Color | if($kendo-enable-color-system, transparent, $kendo-button-disabled-bg) | transparent |
Description
The base border color of the disabled Button. | |||
$kendo-button-disabled-gradient | Null | null | null |
Description
The base background gradient of the disabled Button. | |||
$kendo-button-disabled-shadow | String | none | none |
Description
The base shadow of the disabled Button. | |||
$kendo-flat-button-hover-opacity | Number | .08 | 0.08 |
Description
The overlay opacity of the hovered flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-focus-opacity | Number | .12 | 0.12 |
Description
The overlay opacity of the focused flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-active-opacity | Number | .16 | 0.16 |
Description
The overlay opacity of the active flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-selected-opacity | Number | .22 | 0.22 |
Description
The overlay opacity of the selected flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-focus-ring-opacity | Null | null | null |
Description
The opacity of the flat Button focus ring. Used to create a border for the flat Button. | |||
$kendo-button-transition | List | box-shadow 280ms cubic-bezier( .4, 0, .2, 1 ) | box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1) |
Description
The box-shadow transition of the Button. |