Wagtail’s user interface is built with:
Here are the available commands:
make lint
will run all linting, make lint-server
lints templates, make lint-client
lints JS/CSSmake format
will run all formatting and fixing of linting issues. There is also make format-server
and make format-client
Have a look at our Makefile tasks and package.json scripts if you prefer more granular options.
We use djhtml for formatting and Curlylint for linting.
data-
attributes for JavaScript behavior, IDs for semantics only.We use Prettier for formatting and Stylelint for linting.
rems
for font-size
, because they offer absolute control over text. Additionally, unit-less line-height
is preferred because it does not inherit a percentage value of its parent element, but instead is based on a multiplier of the font-size
.w-
prefix for all styles intended to be reusable by Wagtail site implementers.