Frontend development at Axelerant #

When building Frontend interfaces for Drupal or JavaScript applications, we like to use the right tools and practices. These help reduce cycles in development and assist us in delivering the consistent solutions.

Theme

Theme # When generating a new theme, we recommend using the create-drupal-theme tool. This will help generate the theme with all the relavant configurations and tools. You can find a detailed video walkthrough of the tool here.

Guideline

Review Guidelines # HTML and Twig # Indent by 2 spaces at a time. Don’t use tabs or mix tabs and spaces for indentation. Rely on tools like editorconfig. All code has to be lowercase. This applies to HTML element names, attributes, attribute values (unless text/CDATA), CSS selectors, properties, and property values (with the exception of strings). Remove trailing white spaces. Trailing white spaces are unnecessary and can complicate diffs.