You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this leans towards opinionated. For me, they are conventional and intuitive. I don't believe them to be particularly unconventional.
The aim is to use BEM in combination with abbreviated words to keep the class attribute bloat to a minimum. It's ideal to keep doormat classes discreet as they are likely to be used along with other classes on a project.
dm is the abbreviation of doormat.
dm__pnl is the abbreviation of doormat__panel.
This is a common approach. Think of popular frameworks that instead of say;
<buttonclass="button button--primary">I'm a button</button>
Actually use classes such as btn ;
<buttonclass="btn btn--primary">I'm a button</button>
I have stripped it down further than that. Maybe drmt would conform better. The foundation idea is to strip vowels and repeated consonants.
That being said, If you wish to change the class names being used, there are some details in the README on how to "roll your own" custom version of doormat.
the classes seem to be very weird, would you be open to changing them?
The text was updated successfully, but these errors were encountered: