How to Choose a Perfect UI Framework
While working on projects, many web-developers are facing an irresistible desire to add, modify, or sometimes even create their own UI framework. And this makes me wonder, whether a perfect UI framework exists and what it looks like.
After thinking this over and analyzing the niche, I’ve come to several conclusions I’d like to share with you.
Properties of an excellent UI framework
To answer this question, we must first determine the properties of a functional UI framework:
After all, every framework is designed to make our lives easier, reduce the time for prototyping and develop basic UI elements.
The framework must also strike a balance between different elements, their usage, and quick loading. In my opinion, this is possible with the help of fine tuning and the ability to attach only the required modules.
3. Mobile Device Support.
There is no way we can create products not compatible with mobile since in a world we live portable devices have changed our daily lives completely.
4. Cross-browsing and Old Browsers Support.
Many devices and modern systems are designed based on the cutting-edge technologies. But there are still many users who don’t have access to the latest platforms or have no desire to get the latest updates. It isn’t wise to create obstacles between your product and such users. It would also be nice to support old browsers as an optional framework feature because it influences its size.
This point is particularly interesting, because some frameworks don’t use clean JS, but are based on libraries such as jQuery. Of course, it’s great, since it simplifies the code. But on the other hand, loading and execution speeds must be considered – in large projects they can become really insane
Now that we have determined the main properties of a perfect UI framework, let’s look at real examples. We will discuss projects such as Bootstrap, Foundation, UIKit and Semantic UI, which have been included in TOP-5 ratings recently.
Now, let’s try to understand the details and answer your question.
What makes a framework perfect?
If our goal is to develop a product compatible with as many browsers as possible, then we will likely give priority to those which are more adapted. If we want users to access our system through IE8, we’ll probably prefer Bootstrap.This will help us reduce the labor costs of supporting this browser.
Differences in CSS Units
Foundation stores almost all its units in ems and rems. Bootstrap uses mostly ems and rems, with pixels for media queries. UIKit uses mostly pixel measurements. Therefore, for each individual project, you will need to choose the CSS unit that is the most suitable. This decision should be based on the devices you want to support.
Number of Components
In all projects, the number of components is permanent and you must decide what will be required for your current project; whether you want to use the heavyweight Semantic UI and UIKit with a huge number of components and templates or something less developed. Or maybe you only need one component and you will refer to a very simple framework.
This is simply a matter of taste. We can write and talk about the pros and cons of each but the result will be the same. The versatility and optimality of styles will determine the quality of the product being developed.
Longer projects will most likely be developed and improved on the go, and you will need to modify the existing style. But this can’t always be done painlessly. For example, Foundation blocks any hard interference, and Bootstrap, Semantic UI, and UIKit only allows partial modification.
Focus on Content
You should fully understand the functionality you are developing and the content you are working with. In case of administrative site sections, UIKit or Semantic UI are perfect. If there are a lot of block-content components, it is better to use Foundation.
Differences in the Template Grid
Bootstrap and Foundation offer 12-column grids. UIKit offers a completely different approach to grid layouts, and with different styles. Foundation grids can be easily modified for more or fewer columns using SCSS. Grids of UIKit, Semantic UI and Bootstrap are by default based on flexbox. Foundation’s grids are based on floating points but can be converted to flexbox via SCSS.
Now that we’ve gone through the basic properties, and the details that must be considered, we would all agree that a choice of a perfect UI framework depends on the project being developed. Each new project will require a different perfect UI framework that will not only reduce development time but also provide a good basis for further support and development of the project.
Above all, the most important thing is not to get lost in this huge range of UI frameworks and always try to make the right choice for your project.