Reasonable use of CSS framework to speed up UI design process

Reprinted, please indicate the source: Grape City official website , Grape City provides developers with professional development tools, solutions and services to empower developers.

Original source: https://dzone.com/articles/how-to-speed-up-your-design-process-using-modern-c

 

The style of websites now is very different from what they looked like long ago. If I look back at the UI of some companies' original websites now, I think most Internet users will find it difficult to recognize. So thanks to the innovation of web design technology, now websites not only can only display information, they can also have interesting animations, diverse layouts and interactive elements. Among them, most of these are implemented by CSS.

So the emergence of CSS has injected vitality into the original plain web page. This is why the user experience of the website has further evolved. This may be one of the reasons why almost all websites today use CSS more or less.

This year, some CSS technologies are setting off a new technological innovation, such as Flexbox. Although 83% of the page loads on Google Chrome use Flexbox, another new competitor called Grid is slowly gaining popularity. In addition, technologies such as CSS Writing-Mode, mobile animation, single-page websites, flexible fonts, and scroll capture may also have some impact.

However, in this article, we will not discuss the similarities and differences between different CSS technologies, mainly to introduce the CSS framework. Because they have only become popular in the past few years, but more and more developers have begun to use them.

What is a CSS framework?

 

We define CSS as a design language, which provides help for the UI design of HTML documents. Designing with CSS has many advantages. It can be used with any type of XML, including XUL and SVG. The CSS framework is like a ready-made package that contains files that can be used as the basis of the website structure.

There are many benefits to using frameworks. Here are some of them:

  • Save time : This is one of the most prominent advantages. With the CSS framework, developers do n’t have to start from scratch when building apps or websites. They can spare time to study and focus on other important tasks, such as UI design, mobile terminalization, and solving specific browser compatibility issues.

  • Reusable code : If your project is a large project with many pages, and it is continuously updated in the future, the use of the framework will be useful to you. It can be said that a framework with powerful reuse features can significantly shorten the preparation cycle of your project.

  • Cross-browser problem : For a long time, dealing with the access differences between browsers has been the biggest headache for most front-end developers. But the CSS framework can find and solve the differences between browsers for you in advance, to ensure that you can run without differences in any browser.

  • Standard structure ensures consistency : The front-end framework usually consists of CSS, HTML, and JavaScript files, which help to ensure the consistency of elements (such as design and forms) on all pages.

Excellent CSS framework 

Bootstrap

Bootstrap was originally created by Twitter Blueprint as a tool for internal team use. But after it was publicly released, it was widely used by developers and the usage rate continued to grow.

Bootstrap provides design templates for elements such as warning windows, buttons, carousels, drop-down menus, and forms. Through Bootstrap mobile priority function, you can easily create a responsive layout, which can achieve a consistent design for your application on multiple devices.

Skeleton

Skeleton is known for its "simple support for responsive boilerplate". Because the framework has only about 400 lines of code, it is more suitable for smaller projects or developers who have lightweight requirements.

For those who are just beginning to use front-end frameworks, this is also a good choice. But because Skeleton lacks CSS design templates, preprocessors, and more rich features, this makes it less suitable for larger teams and projects.

ZURB Foundation

如果您正在寻找的是一个快速且响应迅速的前端框架,那么ZURB Foundation可能正是您要的。它允许您为所有设备创建生产环境的代码和原型。依靠ZURB Foundation支持具有“准系统结构”的框架结构,可以让用户快速地完成产品设计原型。同时它在GitHub上也有大量的支持,提交的数量超过了14000个,贡献者也在940个以上。目前华盛顿邮报和国家地理等网站均使用了ZURB Foundation框架。

UI Kit

UI Kit以具有高度可定制的轻量级元素而著称。基于使用它提供的模板,您将可以轻松创建各种Web界面。它的安装包里包含了CSS、HTML和JavaScript文件,以及用于Sublime Text和Atom编辑器的包。另外,它还提供30多个可混合搭配的模块化组件,以实现更多功能。这意味着您不必重复搜索标记和类名。

UI Kit与Bootstrap和Foundation等其他框架的不同之处在于它没有使用将页面分为12列的网格设置。它将它的布局分为三个组件,即Flex、Grid和With。不过由于相关的支持资源不多,所以这个框架更适合有相当经验的开发人员来使用。

Bulma

Bulma作为最常用的框架之一,已经得到了超过15万名开发人员的支持。它是基于Flexbox的免费开源框架之一。Bulma易于使用,即使是作为初学者,也是非常易于上手的,因为该框架仅保留了开发人员开发响应式网站的最低要求。同时,在支持方面,Bulma在GitHub上拥有一个庞大的用户社区,可提供支持。

Materialize

这个前端CSS框架是根据Google的设计规范而创建的。它带有易于使用的IZ列网格,在布局方面具备良好的基础。它的包里还包括了按钮,卡片,表格,图标以及许多其他随时可用的常用组件。

您还可以使用如:拖出式移动菜单,涟漪动画效果,SASS mixins等功能。另外,Materialize也是可以在任何类型的设备上使用。

Semantic UI

尽管Semantic UI是作为较新的框架之一,但它在几个方面的努力还是值得肯定的。首先,它在代码中使用了自然语言,这可能受到初学者开发人员的青睐。而且它的继承系统中有一个高级主题变量,所以这使你在设计时拥有较高的自由度。

使用Semantic UI时,您不必使用其他库,因为它附带了大量的第三方库。这使您的Web开发过程更加方便。凭借它出色的功能,可能很轻松俘获新老开发人员。

Tailwind CSS

Tailwind CSS与其他CSS框架不同,因为它的包中没有预置任何的UI组件。该框架更多注重的是实用性。它附带的CSS类可以在您构建网站时需要设置颜色、大小、位置等内容时为您提供极大的帮助。Tailwind是为那些希望在网页设计方面拥有完全自由度的开发人员而设计的。

Picnic CSS

该框架非常轻量,压缩后代码尺寸不到10KB。Picnic CSS还提供了基于Flexbox的网格布局和许多UI元素,还包括了适合初学者使用的模态窗口和导航栏,您可以使用它们来启动您的Web开发项目。

Ionic

这个开源的移动UI框架可用于为原生Android和iOS开发出高网络性能的应用程序。它带有直观的UI组件,有助于加快网站或应用程序的开发过程。

Ionic提供卓越的原生功能和速度,并能很好地与社区、主要分析、身份验证、插件和其他功能集成一起工作。

Pure.css

Pure.css专注于移动优先的理念。由于Pure.css是模块化的,您可以很轻松地导入您要使用的包。您还可以访问大量可供下载和安装的布局。Pure.css 以其轻量著称。在压缩后,这个框架的尺寸只有3.8KB。

mini.css

mini.css也是一款能够提供完整功能且足够轻量的框架,它压缩后的大小约为10KB,虽然它是个很轻量的框架,但它仍然提供大量布局和UI的元素。如果您想了解它的工作原理是怎样的,您可以通过它的文档了解。

Base

如果您的主要工作是为所有的应用程序和Web开发项目打下坚实的基础,那么您可以尝试一下这个模块化框架。Base自称是 “坚如磐石”的响应性框架。Base基于Normalize.css,并提供基本的、可自定义的样式。如果你的需求只是一个简单的框架,那么它可以满足你。

Concise CSS

如果你需要的是一个简单并实用的框架,那么Concise CSS可能会是你的选择。它的框架是为那些想要“放弃臃肿”的开发人员准备的。顾名思义,它们为开发人员提供的是不包含其他额外附件的包,如果需要更多UI元素,您可以通过单独的工具包完成添加。

Mobi.css

压缩后的Mobi.css只有2.6KB,它是您能找到的最小的框架之一。它的执行速度是它的特点,特别是对于移动设备,所以如果你追求的是速度,那么试试这个框架吧。

不过,和其他模块化框架一样,如果您需要的不只是它们提供的基本样式和功能,您可以在其基础上以模块化方式进行构建。

总结

各类CSS框架除了为用户提供了项目正常运行所需的基础外,还确保了您的应用在各浏览器中访问的一致性和包含响应式的网站设计。这样您就可以集中精力更好地去专注于应用程序的内容和策略的制定。那么,希望您能从上面的列表中找到符合您需求的框架。


Guess you like

Origin blog.51cto.com/powertoolsteam/2487699