Appearance
In this article, you will find information about the styling options and rendering of the Kendo UI ColorPicker.
For a live example, visit the Appearance Demo of the ColorPicker.
Options
The Kendo UI ColorPicker supports the following styling options:
size—configures the overall size of the component.rounded—configures the border radius for the tags.fillMode—controls how the color is applied.
Size
The size option controls how big or small the ColorPicker component looks. The structure of the class is k-picker-{size}.
The following values are available for the size option:
sm—small sizemd—medium sizelg—large sizenone—unset
The default size value is medium and it is applied to the span wrapping element through the k-picker-md class.
The example below shows a basic configuration and how to set size to "large":
<input id="colorpicker" />
<script>
$("#colorpicker").kendoColorPicker({
size: "large"
});
</script>
Below is the HTML that is affected from the configuration. The changes are applied to the span.k-colorpicker wrapping element:
<span class="k-colorpicker k-picker k-picker-lg">
...
</span>
Rounded
The rounded option controls how much border radius is applied to the tags for the selected items in the component. The structure of the class is k-rounded-{size}.
The following values are available for the rounded option:
sm—small border radiusmd—medium border radiuslg