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

ColorPicker Appearance

The ColorPicker provides predefined appearance options such as different sizes, border radiuses and fill modes.

The following example demonstrates all available appearance options of the ColorPicker in action.

Example
View Source
Edit In Stackblitz  
Change Theme:

Size

The ColorPicker allows you to set different padding to its internal elements. To achieve this utilize the size property. It accepts values of type InputSize or none.

The size option supports the following values:

  • smallSets the padding of the ColorPicker internal elements to 2px.
  • medium (default)Sets the padding of the ColorPicker internal elements to 4px.
  • largeSets the padding of the ColorPicker internal elements to 6px.
  • noneThe none option removes the built-in sizing of the ColorPicker. Allows for custom padding.

The following example demonstrates how to define the size of the ColorPicker.

Example
View Source
Edit In Stackblitz  
Change Theme:

Roundness

The ColorPicker enables you to apply different border radius to the component through the rounded property. It accepts values of type InputRounded or none.

The rounded option supports the following values:

  • smallSets the border radius of the ColorPicker to 1px.
  • medium (default)Sets the border radius of the ColorPicker to 2px.
  • largeSets the border radius of the ColorPicker to 4px.
  • fullSets the border radius of the ColorPicker track to 9999px.
  • noneThe none option removes the built-in roundness of the ColorPicker. Allows for custom border radius.

The following example demonstrates how to define the border radius of the ColorPicker.

Example
View Source
Edit In Stackblitz  
Change Theme:

Fill Mode

The ColorPicker allows you to set different fill modes by using the fillMode property. It accepts values of type InputFillMode or none.

The fillModeoption supports the following values:

  • flatSets a transparent background and solid bottom border.
  • solid (default)Applies a background color and solid borders.
  • outlineSets a transparent background and solid borders.
  • noneThe none option removes the built-in fill mode styles of the ColorPicker. Allows for custom background and border styles.

The following example demonstrates how to define the fill mode of the ColorPicker.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?