Introducing PrimeReact v11-alpha 🎉Discover Now

InputColor Theming

Theming documentation for InputColor component

Styled#

InputColor CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-input-color-areaClass name of the area element
p-input-color-area-handleClass name of the area handle element
p-input-color-area-backgroundClass name of the area background element
p-input-color-sliderClass name of the slider element
p-input-color-slider-handleClass name of the slider handle element
p-input-color-slider-trackClass name of the slider track element
p-input-color-transparency-gridClass name of the transparency grid element
p-input-color-swatchClass name of the swatch element
p-input-color-swatch-backgroundClass name of the swatch background element
p-input-color-inputClass name of the input element
p-input-color-eye-dropperClass name of the eye dropper element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
inputcolor.border.color
--p-inputcolor-border-color
Shared inset border color (area background, slider track, swatch background)
inputcolor.area.border.radius
--p-inputcolor-area-border-radius
Border radius of area
inputcolor.slider.border.radius
--p-inputcolor-slider-border-radius
Border radius of slider
inputcolor.slider.size
--p-inputcolor-slider-size
Size of slider (horizontal height / vertical width)
inputcolor.handle.size
--p-inputcolor-handle-size
Size of handle (area and slider)
inputcolor.handle.border.color
--p-inputcolor-handle-border-color
Border color of handle
inputcolor.handle.border.width
--p-inputcolor-handle-border-width
Border width of handle
inputcolor.handle.shadow
--p-inputcolor-handle-shadow
Shadow of handle
inputcolor.handle.transition.duration
--p-inputcolor-handle-transition-duration
Transition duration of handle
inputcolor.handle.focus.ring.border.width
--p-inputcolor-handle-focus-ring-border-width
Focus ring border width of handle
inputcolor.handle.focus.ring.border.color
--p-inputcolor-handle-focus-ring-border-color
Focus ring border color of handle
inputcolor.handle.focus.ring.outline.width
--p-inputcolor-handle-focus-ring-outline-width
Focus ring outline width of handle
inputcolor.handle.focus.ring.outline.color
--p-inputcolor-handle-focus-ring-outline-color
Focus ring outline color of handle
inputcolor.handle.focus.ring.outline.offset
--p-inputcolor-handle-focus-ring-outline-offset
Focus ring outline offset of handle
inputcolor.transparency.grid.color
--p-inputcolor-transparency-grid-color
Color of transparency grid (checker pattern)
inputcolor.transparency.grid.background
--p-inputcolor-transparency-grid-background
Background of transparency grid (checker base)
inputcolor.transparency.grid.tile.size
--p-inputcolor-transparency-grid-tile-size
Tile size of transparency grid
inputcolor.swatch.size
--p-inputcolor-swatch-size
Size of swatch
inputcolor.swatch.border.radius
--p-inputcolor-swatch-border-radius
Border radius of swatch

Unstyled#

Theming is implemented with the pass through properties in unstyled mode.