Ask DN: Creating personal UI Frameworks, advice please!

over 6 years ago from Sam Garson, Designer Developer in London

  • Jonathan CutrellJonathan Cutrell, over 6 years ago

    I'd recommend getting very familiar with another framework and perhaps taking pieces of that framework and rolling your own from it.

    Specifically, I'd recommend taking someone else's compatibility-based things (mixins, etc) and only rolling things that are truly unique to your stuff. Leave the cruft behind.

    I've found that the bloat comes from a bunch of the stuff I don't use but still end up rewriting myself, like buttons, alerts, wells, carousel styles, etc. Take that stuff out, and set up some kind of consistent style guide. Don't go 100% either direction.

    0 points
    • Sam GarsonSam Garson, over 6 years ago

      Thanks for the reply. I've used Bourbon before and it's gone very smoothly, so I intend to continue with that to cover the compatibility stuff, and basically add on my own ui based stuff...

      0 points
    • Sam Pierce LollaSam Pierce Lolla, over 6 years ago

      To each his own I suppose.

      If I did this I'd waste a lot of time reading other peoples CSS and probably bloat my codebase with it. I've pulled code from Bootstrap before only to find they used a complicated abstract JS solution when all I needed was one line of CSS.

      My two cents: if you have very high CSS proficiency, just go for it solo :)

      1 point
      • Sam GarsonSam Garson, over 6 years ago

        I think we're on the same side! Bourbon is just a library of scss mixins for compatibility based stuff.

        That's exactly the reason I don't want to use Bootstrap etc, I like to think I am pretty proficient but I've never taken on a project as complex as this before, I guess I was just asking for best practices when creating your own frameworky type thing.

        1 point