Color variable support for card view buttons
Learn how to use color variables to change theming in your mobile card view buttons.
Use color variables in Card template element attributes to control color values for icon buttons on your mobile cards. The following color variables are available to use:
For more information on these attributes, see Card template element attributes. | Image omitted: color-var-example-6.png Color variable used in a card view template element |
Button style guide
| Color | Example | Variables |
|---|---|---|
| Primary | Image omitted: button-primary.png Primary button example |
Mobile variable: Web variable:
Mobile variable: Web variable: |
| Secondary | Image omitted: button-secondary.png Secondary button example |
Mobile variable: Web variable:
Mobile variable: Web variable:
Mobile variable: Web variable: |
| Positive | Image omitted: button-positive.png Positive button example |
Mobile variable: Web variable:
Mobile variable: Web variable: |
| Destructive | Image omitted: button-destructive.png Destructive button example |
Mobile variable: Web variable:
Mobile variable: Web variable: |
| Bare | Image omitted: button-bare.png Bare button example |
Mobile variable: Web variable:
Mobile variable: Web variable: Note: This button can be configured with primary, positive, or destructive color. |
| Disabled | Image omitted: button-disabled.png Disabled button example | Use this style when the action is unavailable while offline. Can be used with all styles- primary, secondary, text/icon. |