Spectre.css -一个轻量级的、响应式和现代CSS框架

网友投稿 1824 2022-10-29

Spectre.css -一个轻量级的、响应式和现代CSS框架

Spectre.css -一个轻量级的、响应式和现代CSS框架

Spectre.css

Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development.

lightweight and clean starting point for your project and prototypeflexbox, responsive and mobile-friendly layoutcarefully designed elementsbuilt in useful components and utilitiesresponsive email templates (soon)

Spectre is a side project based on years of CSS development work on a large web service project. Spectre only includes modern base styles, responsive layout system, CSS components and utilities, and it can be modified for your project with LESS compiler.

Read the documentation to learn more.

Getting started

There are 3 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM and Bower.

Install manually

Download the compiled and minified Spectre CSS file.

Install with NPM

$ npm install spectre.css

Install with Bower

$ bower install spectre.css

And include it in your website or Web app part.

Compiling custom version

You can compile your custom version of Spectre.css. Read the documentation.

Documentation and demos

Elements

typography - headings, paragraphs, blockquote, lists and code elements, optimized for asian fontstables - organize and display databuttons - button styles in different types and sizes, and even button groupsforms - input, radio, checkbox, switch and other form elementslabels - formatted text tags for highlighted, informative informationmedia - responsive image and video class

Layout

flexbox-grid - flexbox based responsive grid systemresponsive - responsive grid and utilitiesempty states - empty states/blank slates for first time use, empty data and error screens

Components

avatars - user profile pictures or name initials rendered avatarchips - complex entities in small blocksautocomplete - form component provides suggestions while you typetooltips - simple tooltip built entirely in CSSbadges - unread number indicatorstoasts - showing alerts or notificationsmenus - list of links or buttons for actions and navigationnavigation - breadcrumb, tabs and paginationmodals - flexible dialog promptscards - flexible content containers

Utilities

utilities - layout, positions, display, text, shapes, loading things

Tools

Responsive Resizer - responsive test tool

Browser support

Spectre uses Autoprefixer to make most styles compatible with earlier browsers and Normalize.css for CSS resets. Spectre is designed for modern browsers. For best compatibility, these browsers are recommended:

Chrome (last two)Edge (last two)Firefox (last two)Internet Explorer 10+Microsoft EdgeOpera (last two)Safari 6+

Currently maintained by Yan Zhu. Feel free to submit a pull request. Help is always appreciated.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Marmaray- 基于 Hadoop 的通用数据摄取和分散框架
下一篇:关于session序列化和session钝化和活化
相关文章

 发表评论

暂时没有评论,来抢沙发吧~