Giter VIP home page Giter VIP logo

Comments (1)

jh3y avatar jh3y commented on September 3, 2024

Hi @ericraio ,

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;

<button class="button button--primary">I'm a button</button>

Actually use classes such as btn ;

<button class="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.

Hope that helps.

@jh3y

from doormat.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.