MaintainableCSS - an approach to writing modular, scalable and of course, maintainable CSS(

over 7 years ago from Adam Silver, Interaction designer focused on inclusive design and design systems

  • Surjith S MSurjith S M, over 7 years ago

    Its better to use hyphens as you wrote in your CSS. or underscores like BEM.

    camelCase is often used in JS :)

    1 point
    • shaune westshaune west, over 7 years ago

      "better" is quite subjective to whom is writing the CSS and what team is reading it.

      I use a very similar naming convention as the Author and prefer it to BEM, neither methods are incorrect and both should be appreciated.

      0 points