Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development.
- lightweight and clean starting point for your project and prototype
- flexbox, responsive and mobile-friendly layout
- carefully designed elements
- built in useful components and utilities
- patterns and html templates (soon)
- 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.
There are 3 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM and Bower.
Download the compiled and minified Spectre CSS file.
$ npm install spectre.css --save
$ bower install spectre.css --save
And include it in your website or Web app <head> part.
<link rel="stylesheet" href="dist/spectre.min.css" />
- typography - headings, paragraphs, blockquote, lists and code elements, optimized for asian fonts
- layout - flexbox based responsive layout system
- tables - organize and display data
- buttons - button styles in different types and sizes, and even button groups
- forms - input, radio, checkbox, switch and other form elements
- media - responsive image and video class
- avatars - user profile pictures or name initials rendered avatar
- chips - complex entities in small blocks
- autocomplete - form component provides suggestions while you type
- tooltips - simple tooltip built entirely in CSS
- labels - formatted text tags for highlighted, informative information
- badges - unread number indicators
- toasts
- menus - list of links or buttons for actions and navigation
- navigation - breadcrumb, tabs and pagination
- modals - flexible dialog prompts
- cards - flexible content containers
- utilities - layout, positions, display, text, shapes, loading things
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 compatiblity, these browsers are recommended:
- Chrome (last two)
- Edge (last two)
- Firefox (last two)
- Internet Explorer 10+
- Microsoft Edge
- Opera (last two)
- Safari 6+
Currently maintained by Yan Zhu. Feel free to submit a pull request. Help is always appreciated.