HighlightConfig

@Serializable
data class HighlightConfig(val showInfo: Boolean? = null, val showStyles: Boolean? = null, val showRulers: Boolean? = null, val showAccessibilityInfo: Boolean? = null, val showExtensionLines: Boolean? = null, val contentColor: RGBA? = null, val paddingColor: RGBA? = null, val borderColor: RGBA? = null, val marginColor: RGBA? = null, val eventTargetColor: RGBA? = null, val shapeColor: RGBA? = null, val shapeMarginColor: RGBA? = null, val cssGridColor: RGBA? = null, val colorFormat: ColorFormat? = null, val gridHighlightConfig: GridHighlightConfig? = null, val flexContainerHighlightConfig: FlexContainerHighlightConfig? = null, val flexItemHighlightConfig: FlexItemHighlightConfig? = null, val contrastAlgorithm: ContrastAlgorithm? = null, val containerQueryContainerHighlightConfig: ContainerQueryContainerHighlightConfig? = null)

Configuration data for the highlighting of page elements.

Official doc

Constructors

Link copied to clipboard
constructor(showInfo: Boolean? = null, showStyles: Boolean? = null, showRulers: Boolean? = null, showAccessibilityInfo: Boolean? = null, showExtensionLines: Boolean? = null, contentColor: RGBA? = null, paddingColor: RGBA? = null, borderColor: RGBA? = null, marginColor: RGBA? = null, eventTargetColor: RGBA? = null, shapeColor: RGBA? = null, shapeMarginColor: RGBA? = null, cssGridColor: RGBA? = null, colorFormat: ColorFormat? = null, gridHighlightConfig: GridHighlightConfig? = null, flexContainerHighlightConfig: FlexContainerHighlightConfig? = null, flexItemHighlightConfig: FlexItemHighlightConfig? = null, contrastAlgorithm: ContrastAlgorithm? = null, containerQueryContainerHighlightConfig: ContainerQueryContainerHighlightConfig? = null)

Properties

Link copied to clipboard
val borderColor: RGBA? = null

The border highlight fill color (default: transparent).

Link copied to clipboard

The color format used to format color styles (default: hex).

Link copied to clipboard

The container query container highlight configuration (default: all transparent).

Link copied to clipboard
val contentColor: RGBA? = null

The content box highlight fill color (default: transparent).

Link copied to clipboard

The contrast algorithm to use for the contrast ratio (default: aa).

Link copied to clipboard
val cssGridColor: RGBA? = null

The grid layout color (default: transparent).

Link copied to clipboard
val eventTargetColor: RGBA? = null

The event target element highlight fill color (default: transparent).

Link copied to clipboard

The flex container highlight configuration (default: all transparent).

Link copied to clipboard

The flex item highlight configuration (default: all transparent).

Link copied to clipboard

The grid layout highlight configuration (default: all transparent).

Link copied to clipboard
val marginColor: RGBA? = null

The margin highlight fill color (default: transparent).

Link copied to clipboard
val paddingColor: RGBA? = null

The padding highlight fill color (default: transparent).

Link copied to clipboard
val shapeColor: RGBA? = null

The shape outside fill color (default: transparent).

Link copied to clipboard
val shapeMarginColor: RGBA? = null

The shape margin fill color (default: transparent).

Link copied to clipboard

Whether the a11y info should be shown (default: true).

Link copied to clipboard

Whether the extension lines from node to the rulers should be shown (default: false).

Link copied to clipboard
val showInfo: Boolean? = null

Whether the node info tooltip should be shown (default: false).

Link copied to clipboard
val showRulers: Boolean? = null

Whether the rulers should be shown (default: false).

Link copied to clipboard
val showStyles: Boolean? = null

Whether the node styles in the tooltip (default: false).