Spectre.css is a lightweight, responsive and modern CSS framework.
- 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.
As the original repository unfortunately is no longer maintained, I started this fork of Spectre.css to continue development and update with latest browser versions.
My main goal for this fork is to build on the spirit of the excellent work by the original author and bring the framework to 2023, which means
- keep it simple, minimal and visually appealing
- stay up-to-date with latest browser developments
- always assure high quality of changes
Next to several bug fixes this fork has these major improvements compared to the beautiful original work:
- use Dart SASS with
@use
at-rules - automated visual tests and build & security checks
- up-to-date libraries and latest CSS improvements
- expose SASS variables as CSS variables
- Dark Mode
Of course I'm happy to accept pull requests for bugfix or feature proposals. Any contributions are welcome!
There are 4 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM, Yarn and Bower.
Download the compiled and minified Spectre CSS files and include spectre.min.css
in your website or web app <head>
part:
<link rel="stylesheet" href="spectre.min.css">
$ npm install --save @vianetz/spectre.css
$ yarn add npm install --save @vianetz/spectre.css
$ bower install npm install --save @vianetz/spectre.css --save
You can compile your custom version of Spectre.css. Read the documentation.
- Accordions
- Avatars
- Badges
- Breadcrumbs
- Bars
- Cards
- Chips
- Empty states
- Menu
- Nav
- Modals
- Pagination
- Panels
- Popovers
- Steps
- Tabs
- Tiles
- Toasts
- Tooltips
- Utilities - colors, display, divider, loading, position, shapes and text utilities
- 360-Degree Viewer - CSS ONLY
- Autocomplete
- Calendars
- Carousels - CSS ONLY
- Comparison Sliders - CSS ONLY
- Filters - CSS ONLY
- Meters
- Off-canvas - CSS ONLY
- Parallax - CSS ONLY
- Progress
- Sliders
- Timelines
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+
Spectre supports Internet Explorer 10+, but some HTML5 and CSS3 features are not perfectly supported by Internet Explorer.
Designed and built with ♥ by Yan Zhu. Feel free to submit a pull request. Help is always appreciated.