Generate experiences with Puck AI
Read docs
API ReferenceThemingOutline

Outline

Use the following CSS properties for theming the outline (layers) panel.

.Container {
  --puck-outline-color-bg-selected: #f0f0f0;
  --puck-outline-color-border-selected: #b947ff;
}

CSS properties

Defaults shown as var(--puck-...) reference global tokens. See computed values for the values they resolve to.

TokenDefaultDescription
--puck-outline-color-textvar(--puck-color-text-secondary)Layer label text color
--puck-outline-color-text-hovervar(--puck-color-interactive)Zone label color when targeted by a drag
--puck-outline-color-text-helpervar(--puck-color-text-subtle)Empty-zone helper text color
--puck-outline-color-iconvar(--puck-color-text-subtle)Layer icon color
--puck-outline-color-bg-hovervar(--puck-color-interactive-soft)Layer background on hover
--puck-outline-color-border-hovervar(--puck-color-interactive-subtle)Layer border color on hover
--puck-outline-color-bg-selectedvar(--puck-color-interactive-subtle)Selected layer background
--puck-outline-color-border-selectedvar(--puck-color-selection-border)Selected layer border color
--puck-outline-color-drop-indicatorvar(--puck-color-line-placeholder)Drag-and-drop line indicator color
--puck-outline-border-widthvar(--puck-border-width-regular)Layer border width
--puck-outline-radiusvar(--puck-radius-m)Layer border radius
--puck-outline-font-sizevar(--puck-font-size-xxxs)Layer label font size
--puck-outline-font-familyvar(--puck-font-family-monospaced)Layer tree font family
--puck-outline-icon-sizevar(--puck-icon-size-xs)Layer and zone icon size
--puck-outline-action-sizevar(--puck-icon-size-s)Expand caret and row action icon size
--puck-outline-space-indentvar(--puck-space-3)Indentation per nesting level
--puck-outline-zone-color-textvar(--puck-color-text-muted)Nested-zone label and icon color
--puck-outline-zone-font-sizecalc(var(--puck-font-size-xxxs) * 0.9)Nested-zone label font size