Skip to Content

Action styles

Audience: CMS editors, integrators, and developers.

ActionStyle defines a complete fill and label treatment for filled actions. Every ColorVariant requires one shared style. A ThemeSurface can select a complete override.

Record fields

id●
string
required

CMS record identifier.

name●
string
required

Required display name.

userId●
string
required

CMS owner identifier, set during creation and preserved during updates. It is not part of the public ActionStyle payload.

Colors

All five fields are required color strings. The CMS color input supports hex and OKLCH, for example #1c69d4 and oklch(60% 0.15 250). It preserves the supplied text without a format conversion.

fill●
string
required

Fill in the rest state.

label●
string
required

Label color in the rest, hover, and pressed states.

hoverFill●
string
required

Fill in the hover state.

pressedFill●
string
required

Fill in the pressed state.

border●
string
required

Action border color.

The one label color must remain readable on all three fills. Editors must provide suitable pairs; the application does not choose a label color from brightness or repair poor contrast.

Selection

For the active ColorVariant and selected surface:

  1. Use the surface’s actionStyle when it is assigned.
  2. Otherwise, use the variant’s required shared actionStyle.

An override replaces the entire ActionStyle. It cannot override only fill or borrow another field from the shared style. Different surfaces can connect the same ActionStyle record.

Outlined and text actions use the surface’s interaction colors. Focus uses the surface’s focus color. Control shape and border width belong to the Theme, not the ActionStyle.

The CMS prevents deletion of an ActionStyle while a ColorVariant or ThemeSurface references it. Replace or remove those references first.

Last updated on