Basic Standards

There should be adequate white space when writing all CSS or HTML with the following standards.

  • It should be consistent, spacious and readable
  • Each line should be a tab indent of 3 spaces
  • Each CSS attribute should be on a new line
  • There should be double line returns between class selectors, and single line returns when nested selectors are grouped together
  • At the end of anything for both CSS or HTML
  • Anything that might need an explanation
  • Formatting
    • Should all be lowercase for naming
    • Use dashes for spaces
    • Camelcase for JS function names

See examples at https://github.com/DivcomWebTeam/platform_base_theme#1-basic-standards