Knob Theming

Theming documentation for Knob component

Styled#

CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-knobClass name of the root element
p-knob-rangeClass name of the range element
p-knob-valueClass name of the value element
p-knob-textClass name of the text element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
knob.transition.duration
--p-knob-transition-duration
Transition duration of root
knob.focus.ring.width
--p-knob-focus-ring-width
Focus ring width of root
knob.focus.ring.style
--p-knob-focus-ring-style
Focus ring style of root
knob.focus.ring.color
--p-knob-focus-ring-color
Focus ring color of root
knob.focus.ring.offset
--p-knob-focus-ring-offset
Focus ring offset of root
knob.focus.ring.shadow
--p-knob-focus-ring-shadow
Focus ring shadow of root
knob.value.background
--p-knob-value-background
Background of value
knob.range.background
--p-knob-range-background
Background of range
knob.text.color
--p-knob-text-color
Color of text

Unstyled#

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