Terminal TAST

Styles

You can style terminal responses by using the TAST Inline element. It accepts three kinds of styles:

  • CSS object styles

  • terminal theme styling

  • styles defined by types of inline.

Styling with CSS Objects

Style any TAST Inline part with CSS. Styled TAST affects only to the children of that Inline.

Nesting Styles

Styles does have inheritance. Children Inlines inherit its parent styles and they can add their own styling.

Hover and Pseudo-Styles

Use the key :hover inside the style property with an object specifying hovered styles. Note that hover styles are only applied when the pointer hovers the inline.

Note that you can use other pseudostyles, like :active.

Styling the whole line

You can style the whole line if it is wrapped by an inline. Be careful, the new line breaks the style and left rest of the line without style. You may want to use pad to be sure that the whole line is styled.

Theme Styles

Terminal has themes. These themes define distinctive elements that have significative colors. Exact colors are related to the current terminal theme. Learn more about themes in the terminal documentation.

Use the property themeType to choose which type of element is. Currently available types are: actionLink, stripedTable, link, trigger and infoLink. They might change in the future.

Other styling

Is it possible to style many inlines at once with inlineType. See InlineTypes.