Preformat css module

Another simple module extracted from the `core` script.

(PR needs to be rebased on `dev`, currently by mistake came from the other active PR)