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

Customizing Color-preview

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-color-preview-border-radiusvar( --kendo-border-radius-md, #{$kendo-border-radius-md} )
Description
Border radius of the color preview.
$kendo-color-preview-border-width1px
Description
Border width of the color preview.
$kendo-color-preview-bgtransparent
Description
Default background color of the color preview.
$kendo-color-preview-textinherit
Description
Text color of the color preview.
$kendo-color-preview-borderif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 28%, transparent), k-get-theme-color-var( neutral-60 ))
Description
Border color of the color preview.
$kendo-color-preview-hover-borderif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 28%, transparent), k-get-theme-color-var( neutral-60 ))
Description
Hover Border color of the color preview.
$kendo-color-preview-no-color-bgif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
Background color of the color preview when no color is selected.
$kendo-color-preview-no-color-textif($kendo-enable-color-system, k-color( error-on-surface ), k-get-theme-color( error, 190 ))
Description
Text color of the color preview when no color is selected.
$kendo-color-preview-no-color-bordercurrentColor
Description
Border color of the color preview when no color is selected.

In this article

Not finding the help you need?