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
CMS record identifier.
Required display name.
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 in the rest state.
Label color in the rest, hover, and pressed states.
Fill in the hover state.
Fill in the pressed state.
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:
- Use the surface’s
actionStylewhen it is assigned. - 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.