Puck AI beta
Read docs
API ReferenceThemingSlot

Slot

Use the following CSS properties for theming slots (drop zones) and the components dragged within them.

.Container {
  --puck-slot-color-bg: #fff2ee;
  --puck-slot-color-border: #f6ab3b;
}

CSS properties

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

TokenDefaultDescription
--puck-slot-color-bgvar(--puck-color-selection-bg)Drop zone background when active
--puck-slot-color-bordervar(--puck-color-selection-border)Drop zone outline color
--puck-slot-border-widthvar(--puck-border-width-focus)Drop zone outline width
--puck-slot-border-styledashedDrop zone outline style
--puck-slot-component-color-overlayvar(--puck-color-selection-bg)Component overlay background on hover
--puck-slot-component-color-overlay-bordervar(--puck-color-selection-border)Component overlay outline
--puck-slot-component-border-widthvar(--puck-border-width-focus)Component overlay outline width
--puck-slot-component-color-border-selectedvar(--puck-color-selection-border)Selected component overlay outline
--puck-slot-component-color-placeholder#6499cfDrag placeholder background
--puck-slot-component-color-border-dragging#cfdff0Outline while dragging component