Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4www opened this issue Dec 3, 2021 · 0 comments
Open

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

4www opened this issue Dec 3, 2021 · 0 comments

Comments

@4www
Copy link
Contributor

4www commented Dec 3, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant