Chip Theming

Theming documentation for chip component

Styled#

CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-chipClass name of the root element
p-chip-imageClass name of the image element
p-chip-iconClass name of the icon element
p-chip-labelClass name of the label element
p-chip-remove-iconClass name of the remove icon element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
chip.border.radius
--p-chip-border-radius
Border radius of root
chip.padding.x
--p-chip-padding-x
Padding x of root
chip.padding.y
--p-chip-padding-y
Padding y of root
chip.gap
--p-chip-gap
Gap of root
chip.transition.duration
--p-chip-transition-duration
Transition duration of root
chip.background
--p-chip-background
Background of root
chip.color
--p-chip-color
Color of root
chip.image.width
--p-chip-image-width
Width of image
chip.image.height
--p-chip-image-height
Height of image
chip.icon.size
--p-chip-icon-size
Size of icon
chip.icon.color
--p-chip-icon-color
Color of icon
chip.remove.icon.size
--p-chip-remove-icon-size
Size of remove icon
chip.remove.icon.focus.ring.width
--p-chip-remove-icon-focus-ring-width
Focus ring width of remove icon
chip.remove.icon.focus.ring.style
--p-chip-remove-icon-focus-ring-style
Focus ring style of remove icon
chip.remove.icon.focus.ring.color
--p-chip-remove-icon-focus-ring-color
Focus ring color of remove icon
chip.remove.icon.focus.ring.offset
--p-chip-remove-icon-focus-ring-offset
Focus ring offset of remove icon
chip.remove.icon.focus.ring.shadow
--p-chip-remove-icon-focus-ring-shadow
Focus ring shadow of remove icon
chip.remove.icon.color
--p-chip-remove-icon-color
Color of remove icon

Unstyled#

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