.. _dev-css: CSS === Tuleap uses Sass for its CSS generation. SCSS files are just extended CSS files. It means you can use variables, functions, operations and more in CSS files very easily. It's fully backward compatible with exiting CSS files (you can rename file.css to file.scss, compile file.scss and it'll just work). Please refer to the `Sass documentation `_ for more information. Compile SCSS files ------------------ From the root directory of the Tuleap sources (you must have npm installed): .. code-block:: bash $ npm install $ npm run sass This command will compile all SCSS files present in ``plugin`` and ``src`` directories. .. important:: * you have to run ``npm run sass`` everytime you edit a SCSS file. * you can use ``npm run watch`` to automatically rebuild CSS after changes. * CSS files will be git-ignored so there is no use in modifying them. Best practices for Tuleap ------------------------- When you submit a patch for review, we may request changes to better match the following best practices. Please try to follow them. Files best practices ^^^^^^^^^^^^^^^^^^^^ * Never use the "style" attribute. * Always use a SCSS file. No