spectre README

The project's README from github.com/picturepan2/spectre. As one markdown file: README.md.

Spectre.css

Reviewed by Hound

Spectre.css is a lightweight, responsive and modern CSS framework.

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 or via Patreon 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

Utilities

Experimentals

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:

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.

spectre (picturepan2/spectre)

Searching Database…

11.3K ·GitHub
What is this?Spectre.css is a lightweight, responsive and modern CSS framework for building web UIs with a flexbox-based grid, prebuilt elements, components and utility classes.
Is this a full JS framework or just CSS?It is pure CSS (compiled from Sass/Scss) with no JavaScript included; you just link the stylesheet and use its classes.
How do I add it to a project?Download the compiled spectre.css and link it in your HTML head, or install it via NPM, Yarn or Bower.
Do I need a build tool to use it?No, you can just include the precompiled CSS file or load it from a CDN like unpkg or cdnjs; a Sass compiler is only needed if you want a custom build.
Does it work in older browsers like Internet Explorer?It targets modern browsers (latest Chrome, Edge, Firefox ESR, Safari, Opera) and only supports IE10+ with some HTML5/CSS3 features not fully working.
Is this free to use, including commercially?Yes, it's completely free under the MIT license, though the author accepts optional donations via Paypal or Patreon.
How small is the CSS file?It's about 10KB gzipped, which is the main selling point of its 'lightweight' design.
What components come built in?It ships elements like typography, buttons and forms, layout pieces like the flexbox grid and navbar, and components such as cards, modals, tabs, tooltips and pagination.
Are there experimental features?Yes, an 'Experimentals' section includes things like a 360-degree viewer, carousels, parallax effects, sliders and timelines, some implemented purely in CSS.
Why was Spectre created?It started as a side project distilling years of CSS work from a large web service project into a reusable framework.
Size
6.4 MB
Stars
11.3K
Age
10y
Commits · 90 Days