--- title: Color Picker layout: nested-component.html ---

Color Picker

Uses bootstrap-colorpicker
Full list of options can be found at the plugin webpage. As with our other javascript components, options can be configured using the data-options attribute.
The color picker can be configured to be larger by setting data-size="large" on the element.

SCSS Variables

The color pickers container inherits from the bootstrap dropdown variables, the sizing of the picker and the sliders can be configured with the following variables

Variable Default Description
$color-picker-default-size 100px This defines the size of the color-spectrum. The color-picker naturally expands to fit this + the sliders
$color-picker-large-size 200px For use with the data-size="large" option
$color-picker-slider-default-size 15px The static size of the sliders. If a slider is horizontal, the variable will define the height, if vertical it will define the width
$color-picker-slider-large-size 30px For use with the data-size="large" option

Default color-picker

Loading...

NYI

Large color-picker

Loading...

NYI

Hex colors only

Loading...

NYI