Skip to content

Use BEM for theme styles/markup, instead of CSS utility framework #6

@4www

Description

@4www

In favor of BEM for classes naming, and styling, in the theme project.

It will:

  • give semantic to the HTML elements and components http://getbem.com/introduction/
  • allow users of the theme (installed through npm), to customize the styles of their instance, by just editing/overwrite of the CSS classes

On the contrary, using a utility framework for styling the theme, will:

  • the CSS utility classes used in the themes on HTML elements and gatsby/react components won't be able to be changed in the site instance
  • cannot style a theme component with just css, need to re-write the component's markup to edit the utility classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions