| Name | Size | |
|---|---|---|
| .csscomb.json | 767 B | log stats plain blame |
| .gitattributes | 33 B | log stats plain blame |
| .gitignore | 102 B | log stats plain blame |
| .hound.yml | 35 B | log stats plain blame |
| .scss-lint.yml | 4.8 KiB | log stats plain blame |
| CHANGELOG.md | 5.4 KiB | log stats plain blame |
| LICENSE | 1.0 KiB | log stats plain blame |
| README.md | 5.6 KiB | log stats plain blame |
| bower.json | 586 B | log stats plain blame |
| docs | 453 B | log stats plain |
| gulpfile.js | 1.2 KiB | log stats plain blame |
| package-lock.json | 107.5 KiB | log stats plain blame |
| package.json | 1.1 KiB | log stats plain blame |
| src | 2.1 KiB | log stats plain |
Spectre.css
Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development.
- Lightweight (~10KB gzipped) starting point for your projects
- Flexbox-based, responsive and mobile-friendly layout
- Elegantly designed and developed elements and components
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 SASS/SCSS compiler.
Spectre.css is completely free to use. If you enjoy it, please consider donating via Paypal for the further development. ♥
Getting started
There are 5 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM, Yarn and Bower.
Install manually
Download the compiled and minified Spectre CSS files. And include spectre.css located in /docs/dist in your website or Web app <head> part.
<link rel="stylesheet" href="spectre.min.css">
Install from CDN
Alternatively, you can use the unpkg or cdnjs CDN to load compiled Spectre.css.
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
Install with NPM
$ npm install spectre.css --save
Install with Yarn
$ yarn add spectre.css
Install with Bower
$ bower install spectre.css --save
Compiling custom version
You can compile your custom version of Spectre.css. Read the documentation.
Documentation and examples
Elements
Layout
Components
- Accordions
- Autocomplete
- Avatars
- Badges
- Breadcrumbs
- Bars
- Cards
- Chips
- Empty states
- Menus
- Navs
- Modals
- Pagination
- Panels
- Popovers
- Steps
- Tabs
- Tiles
- Toasts
- Tooltips
Utilities
- Utilities - colors, display, divider, loading, position, shapes and text utilities
Experimentals
- Calendars
- Carousels - CSS only
- Comparison Sliders - CSS only
- Filters - CSS only
- Meters
- Off-canvas - CSS only
- Parallax - CSS only
- Progress
- Sliders
- Timelines
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 4)
- Microsoft Edge (LAST 4)
- Firefox (EXTENDED SUPPORT RELEASE)
- Safari (LAST 4)
- Opera (LAST 4)
- Internet Explorer 10+
Designed and built with ♥ by Yan Zhu. Feel free to submit a pull request. Help is always appreciated.