Stying with CSS
Xtensio supports multiple ways of handling CSS, including:
CSS/SCSS modules
Xtensio has built-in support for CSS/CSS Modules using the .module.(s)css
extension.
CSS Modules scope CSS locally by generating unique class names, allowing the same class names in different files without conflicts—ideal for component-level styling.
Example using css modules in a popup
/popup/popup.jsx | |
---|---|
Global CSS
Any .css
file imported at any location of the project is currently treated as global CSS.
Example way of using global css
And that' it! you've included some global CSS to your project