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

Customizing Button

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-button-border-widthNumber$btn-border-width1px
Description
The width of the border around the Button.
$kendo-button-border-radiusNullnullnull
Description
The border radius of the Button.
$kendo-button-padding-xNumber$btn-padding-x0.75rem
Description
The horizontal padding of the Button.
$kendo-button-sm-padding-xNumber$btn-padding-x-sm0.5rem
Description
The horizontal padding of the small Button.
$kendo-button-md-padding-xNumber$btn-padding-x0.75rem
Description
The horizontal padding of the medium Button.
$kendo-button-lg-padding-xNumber$btn-padding-x-lg1rem
Description
The horizontal padding of the large Button.
$kendo-button-padding-yNumber$btn-padding-y0.375rem
Description
The vertical padding of the Button.
$kendo-button-sm-padding-yNumber$btn-padding-y-sm0.25rem
Description
The vertical padding of the small Button.
$kendo-button-md-padding-yNumber$btn-padding-y0.375rem
Description
The vertical padding of the medium Button.
$kendo-button-lg-padding-yNumber$btn-padding-y-lg0.5rem
Description
The vertical padding of the large Button.
$kendo-button-font-familyList$kendo-font-familysystem-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
Description
The font family of the Button.
$kendo-button-font-sizeNumber$btn-font-size1rem
Description
The font size of the Button.
$kendo-button-sm-font-sizeNumber$kendo-font-size-sm0.875rem
Description
The font size of the small Button.
$kendo-button-md-font-sizeNumber$kendo-font-size-md1rem
Description
The font size of the medium Button.
$kendo-button-lg-font-sizeNumber$kendo-font-size-md1rem
Description
The font size of the large Button.
$kendo-button-line-heightNumber$btn-line-height1.5
Description
The line height used along with the $kendo-font-size variable.
$kendo-button-sm-line-heightNumberk-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-heightNumber$kendo-line-height-md1.5
Description
The line height used along with the $kendo-font-size variable of the medium Button.
$kendo-button-lg-line-heightNumber$kendo-line-height-md1.5
Description
The line height used along with the $kendo-font-size variable of the large Button.
$kendo-button-calc-sizeCalculationcalc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} + #{$kendo-button-border-width * 2} )calc(1.5em + 0.75rem + 2px)
Description
The calculated height of the Button.
$kendo-button-inner-calc-sizeCalculationcalc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} )calc(1.5em + 0.75rem)
Description
The calculated inner height of the Button excluding the border width.
$kendo-button-sizesMap( 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: 0.5rem, padding-y: 0.25rem, font-size: 0.875rem, line-height: 1.4285714286), md: (padding-x: 0.75rem, padding-y: 0.375rem, font-size: 1rem, line-height: 1.5), lg: (padding-x: 1rem, padding-y: 0.5rem, font-size: 1rem, line-height: 1.5))
Description
The sizes map for the Button.
$kendo-button-theme-colorsMapk-map-merge( $kendo-theme-colors, ( "base": if($kendo-enable-color-system, k-color( base ), #e4e7eb) ) )("primary": #0d6efd, "secondary": #6c757d, "tertiary": #6f42c1, "info": #0dcaf0, "success": #198754, "warning": #ffc107, "error": #dc3545, "dark": #212529, "light": #f8f9fa, "inverse": #212529, "base": #e4e7eb)
Description
The theme colors map for the Button.
$kendo-button-bgColorif($kendo-enable-color-system, k-color( base ), #e4e7eb)#e4e7eb
Description
The base background of the Button.
$kendo-button-textColorif($kendo-enable-color-system, k-color( on-base ), k-contrast-color( $kendo-button-bg, $gray-900 ))#212529
Description
The base text color of the Button.
$kendo-button-borderColor$kendo-button-bg#e4e7eb
Description
The base border color of the Button.
$kendo-button-gradientNullnullnull
Description
The base background gradient of the Button.
$kendo-button-shadowNullnullnull
Description
The base shadow of the Button.
$kendo-button-hover-bgColorif($kendo-enable-color-system, k-color( base-hover ), k-color-darken( $kendo-button-bg, 7.5% ))#ced3db
Description
The base background of the hovered Button.
$kendo-button-hover-textNullnullnull
Description
The base text color of the hovered Button.
$kendo-button-hover-borderColorif($kendo-enable-color-system, k-color( base-hover ), k-color-darken( $kendo-button-bg, 10% ))#c7cdd5
Description
The base border color of the hovered Button.
$kendo-button-hover-gradientNullnullnull
Description
The base background gradient of the hovered Button.
$kendo-button-hover-shadowNullnullnull
Description
The base shadow of the hovered Button.
$kendo-button-active-bgColorif($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 10% ))#c7cdd5
Description
The base background color of the active Button.
$kendo-button-active-textNullnullnull
Description
The base text color of the active Button.
$kendo-button-active-borderColorif($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 12.5% ))#bfc6d0
Description
The base border color of the active Button.
$kendo-button-active-gradientNullnullnull
Description
The base background gradient of the active Button.
$kendo-button-active-shadowNullnullnull
Description
The base shadow of the active Button.
$kendo-button-selected-bgColorif($kendo-enable-color-system, k-color( primary-active ), k-color-darken( $kendo-color-primary, 10% ))#0257d5
Description
The base background color of the selected Button.
$kendo-button-selected-textColorif($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-button-selected-bg ))white
Description
The text color of the selected Button.
$kendo-button-selected-borderColorif($kendo-enable-color-system, k-color( primary-active ), k-color-darken( $kendo-color-primary, 12.5% ))#0252c9
Description
The border color of the selected Button.
$kendo-button-selected-gradientNull$kendo-button-active-gradientnull
Description
The background gradient of the selected Button.
$kendo-button-selected-shadowNull$kendo-button-active-shadownull
Description
The base shadow of the selected Button.
$kendo-button-focus-bgColorif($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 10% ))#c7cdd5
Description
The base background of the focused Button.
$kendo-button-focus-textNullnullnull
Description
The base text color of the focused Button.
$kendo-button-focus-borderColorif($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 12.5% ))#bfc6d0
Description
The base border color of the focused Button.
$kendo-button-focus-gradientNullnullnull
Description
The base background gradient of the focused Button.
$kendo-button-focus-shadowList0 0 0 .25rem if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 50%, transparent), rgba( $kendo-button-border, .5 ))0 0 0 0.25rem rgba(228, 231, 235, 0.5)
Description
The base shadow of the focused Button.
$kendo-button-disabled-bgNullnullnull
Description
The base background of the disabled Button.
$kendo-button-disabled-textNullnullnull
Description
The base text color of the disabled Button.
$kendo-button-disabled-borderNullnullnull
Description
The base border color of the disabled Button.
$kendo-button-disabled-gradientNullnullnull
Description
The base background gradient of the disabled Button.
$kendo-button-disabled-shadowNullnullnull
Description
The base shadow of the disabled Button.
$kendo-flat-button-hover-opacityNumber.080.08
Description
The overlay opacity of the hovered flat Button. Used to create a background for the flat Button.
$kendo-flat-button-focus-opacityNullnullnull
Description
The overlay opacity of the focused flat Button. Used to create a background for the flat Button.
$kendo-flat-button-active-opacityNumber.160.16
Description
The overlay opacity of the active flat Button. Used to create a background for the flat Button.
$kendo-flat-button-selected-opacityNumber.20.2
Description
The overlay opacity of the selected flat Button. Used to create a background for the flat Button.
$kendo-flat-button-focus-ring-opacityNumber.120.12
Description
The opacity of the flat Button focus ring. Used to create a border for the flat Button.
$kendo-button-transitionList$kendo-transitioncolor 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out
Description
The color transition of the Button.

In this article

Not finding the help you need?