CSS class names can't contain the
: character. For example, it's not possible to declare the following class in CSS:
However we can use the
\ character to correct it:
The class name is usable in HTML as usual:
\ to escape CSS class names has been used a lot in some CSS frameworks such as Tailwind.