CSS Modules
Overview
A CSS Module is a CSS file in which all class names and animation names are scoped locally by default. This helps avoid name collisions by ensuring that styles are only applied to the component where they are defined.
Tuono supports CSS modules out of the box.
For more information, you can refer to the official CSS Modules repository.
Example
Any CSS file ending with .module.css
is considered a CSS modules file.
Given the following file:
Importing such file will return the corresponding module object: