WebDev 2022
Repo WebDev 2022

CSS Modules

CSS Modules

CSS files in which all class names and animation names are scoped locally by default.

All URLs (url(...)) and @imports are in module request format (./xxx and ../xxx means relative, xxx and xxx/yyy means in modules folder, i. e. in node_modules). CSS Modules compile to a low-level interchange format called ICSS or Interoperable CSS, but are written like normal CSS files: