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/CSS.make 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 behaviour, 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.We use Prettier for formatting and ESLint for linting.
This is an area of active improvement for Wagtail, with ongoing discussions.
trimmed attribute on blocktrans tags to prevent unnecessary whitespace from being added to the translation strings.
© 2014-present Torchbox Ltd and individual contributors.
All rights are reserved.
Licensed under the BSD License.
https://docs.wagtail.org/en/stable/contributing/ui_guidelines.html