Generate experiences with Puck AI
Read docs
API ReferenceThemingField tabs

Field tabs

Use the following CSS properties for theming the field tabs.

.Container {
  --puck-fieldtabs-color-bg-selected: #0158ad;
  --puck-fieldtabs-color-text-selected: #ffffff;
  --puck-fieldtabs-radius: 999px;
}

CSS properties

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

TokenDefaultDescription
--puck-fieldtabs-color-bgnoneTab background
--puck-fieldtabs-color-textvar(--puck-color-text-secondary)Tab text color
--puck-fieldtabs-color-bg-hovervar(--puck-color-interactive-soft)Tab background on hover
--puck-fieldtabs-color-text-hovervar(--puck-color-text-secondary)Tab text color on hover
--puck-fieldtabs-color-bg-selectedvar(--puck-color-interactive-soft)Selected tab background
--puck-fieldtabs-color-text-selectedvar(--puck-color-interactive)Selected tab text color
--puck-fieldtabs-radiusvar(--puck-radius-m)Tab border radius
--puck-fieldtabs-font-sizevar(--puck-font-size-xxxs)Tab font size
--puck-fieldtabs-font-weightvar(--puck-font-weight-medium)Tab font weight
--puck-fieldtabs-spacevar(--puck-space-2)Tab padding