Toast CSS Styling

All Common CSS variables:

  • --smart-primary: The theme primary color.
  • --smart-primary-color: Text color on top of a primary background.
  • --smart-secondary: The theme secondary color.
  • --smart-secondary-color: Text color on top of a secondary background.
  • --smart-error: The theme error color.
  • --smart-error-color: Text color on top of a error background.
  • --smart-success: The theme success color.
  • --smart-success-color: Text color on top of a success background.
  • --smart-background: The theme background color. The background color appears behind scrollable content.
  • --smart-background-color: Text color on top of a background background.
  • --smart-surface: The theme surface color. Surface colors affect surfaces of components, such as cards, sheets, and menus.
  • --smart-surface-color: Text color on top of a surface surface.
  • --smart-disabled: The theme primary color in disabled state.
  • --smart-disabled-color: Text color on top of a theme background in disabled state.
  • --smart-font-size: Theme font-size.
  • --smart-font-family: Theme font-family.
  • --smart-border-width: Theme border-width.
  • --smart-border-radius: Theme border-radius.
  • --smart-border: The theme border settings.
  • --smart-outline: The theme border color.
  • --smart-arrow-size: Font size of the arrow elements.
  • --smart-editor-selection: Background color of the selected text.
  • --smart-editor-selection-color: Color of the selected text.
  • --smart-alternation-index0-color: Alternation color for index0.
  • --smart-alternation-index0-border-color: Alternation border color for index0.
  • --smart-alternation-index0-background: Alternation background color for index0.
  • --smart-alternation-index1-color: Alternation color for index1.
  • --smart-alternation-index1-border-color: Alternation border color for index1.
  • --smart-alternation-index1-background: Alternation background color for index1.
  • --smart-alternation-index2-color: Alternation color for index2.
  • --smart-alternation-index2-border-color: Alternation border color for index2.
  • --smart-alternation-index2-background: Alternation background color for index2.
  • --smart-tick-color: Default tick color for smartTank, smartSlider and smartGauge.
  • --smart-tick-label-color: Default tick label color for smartTank, smartSlider and smartGauge.
  • --smart-box-height: Default height for Dialog, Gauge, Accordion, Tabs, Tree, Array.
  • --smart-box-width: Default width for Dialog, Gauge, Accordion, Tabs, Tree, Array.
  • --smart-bar-height: Default height for headers and footers.
  • --smart-bar-width: Default width for headers and footers.
  • --smart-editor-height: Default height for editors.
  • --smart-editor-width: Default width for editors.
  • --smart-editor-drop-down-width: Default width for editors drop-down.
  • --smart-editor-drop-down-height: Default height for editors drop-down.
  • --smart-editor-label-padding: Default padding for inputs.
  • --smart-editor-addon-width: Default width for spin buttons, dropdown buttons.

Specific CSS variables for Toast styling:

  • --smart-toast-container-default-width: Default width of the Toast's containers, positioned top-left, top-right, bottom-left, bottom-right.
  • --smart-toast-border-width: Default Toast border width.
  • --smart-toast-background: Default Toast background color.
  • --smart-toast-border: Default Toast border color.
  • --smart-toast-color: Default Toast color.
  • --smart-toast-font-family: Default Toast color.
  • --smart-toast-font-size: Default Toast font size.
  • --smart-toast-border-top-right-radius: Default Toast top-right border radius.
  • --smart-toast-border-top-left-radius: Default Toast top-left border radius.
  • --smart-toast-border-bottom-left-radius: Default Toast bottom-left border radius.
  • --smart-toast-border-bottom-right-radius: Default Toast bottom-right border radius.

The following CSS selectors can be used to style Toast:

  • smart-toast - the element itself. Classes applied to the element are also applied to the toast's items(.smart-toast-item).
    • .smart-container - the container used in all custom elements. In smart-toast it doesn't affect to the styling.
      • .smart-toast-container-top-left - the container used as storage of toast instances positioned in the top left corner of the page.
      • .smart-toast-container-top-right - the container used as storage of toast instances positioned in the top right corner of the page.
      • .smart-toast-container-bottom-left - the container as storage of about toast instances positioned in the bottom left corner of the page.
      • .smart-toast-container-bottom-right - the container as storage of about toast instances positioned in the bottom right corner of the page.
      • .smart-toast-container-custom - the container used as storage of toast instances positioned in custom html element.
      • .smart-toast-container-modal - the container used as storage of toast instances in modal mode.
        • .smart-toast-item - defines an accordion item. Classes applied to smart-toast are applied to .smart-toast-item when a new item is opened.
      • .smart-toast-item-header - used as an item's header container.
        • .smart-toast-item-close-button - an HTML Span element used as item's close button.
      • .smart-toast-item-container - used as a container of the icon and text content.
        • .smart-toast-item-icon - an HTML Span element used as item's icon.
          • .smart-toast-item-content - an HTML Span element used as item's content storage.