This document describes how you can apply the styles for the AsyncAPI component.
In the AsyncApi component, we use pure CSS styling and BEM
methodology. Each HTML tag inside the root component has a unique CSS class in the asyncapi__{ELEMENT}--{MODIFIER}
format, where:
{ELEMENT}
is the name of a specific element. Each element name is the concatenation of the names of the elements in which it is located. For example,asyncapi__channel-header-title
is located in theheader
HTML element of thechannel
element.{MODIFIER}
is a modifier for{ELEMENT}
. Very few elements have a modifier. This is usually a badge, button, or similar, generic components.
To change styles, create an appropriate class or modify it if you use the default style.
NOTE: We recommend that you first copy the default styles to a separate file and then modify them as you prefer.