GithubHelp home page GithubHelp logo

webin / spectre Goto Github PK

View Code? Open in Web Editor NEW

This project forked from picturepan2/spectre

0.0 2.0 0.0 2.68 MB

Spectre.css - A lightweight, responsive and modern CSS framework.

Home Page: https://picturepan2.github.io/spectre/

License: MIT License

JavaScript 1.96% CSS 98.04%

spectre's Introduction

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
  • Carefully designed 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 LESS compiler.

Read the documentation to learn more.

Getting started

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.

Install manually

Download the compiled and minified Spectre CSS file.

Install with NPM

$ npm install spectre.css --save

Install with Yarn

$ yarn add spectre.css

Install with Bower

$ bower install spectre.css --save

And include it in your website or Web app <head> part.

<link rel="stylesheet" href="dist/spectre.min.css" />

Compiling custom version

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

Documentation and demos

Elements

  • Typography - headings, paragraphs, semantic text, blockquote, lists and code elements, optimized for east asian fonts
  • 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
  • Labels - formatted text tags for highlighted, informative information
  • Codes - inline and multiline code snippets
  • Media - responsive images, figures and video classes
  • Experimentals - experimental elements and features, mostly are not yet ready for wide use

Layout

  • Flexbox-grid - flexbox based responsive grid system
  • Responsive - responsive grid and utilities
  • Navbar - layout container that appears in the header of apps and websites
  • Panels - flexible view container layout with auto-expand content section
  • Empty states - empty states/blank slates for first time use, empty data and error screens

Components

  • Autocomplete - form component provides suggestions while you type
  • Avatars - user profile pictures or name initials rendered avatar
  • Badges - unread number indicators
  • Cards - flexible content containers
  • Chips - complex entities in small blocks
  • Menus - list of links or buttons for actions and navigation
  • Modals - flexible dialog prompts
  • Navigation - breadcrumb, tabs, pagination and navs
  • Steps - progress indicators of a sequence of task steps
  • Tiles - repeatable or embeddable information blocks
  • Toasts - showing alerts or notifications
  • Tooltips - simple tooltip built entirely in CSS

Utilities

  • Utilities - layout, positions, display, text, shapes, loading things

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 (last 4)
  • 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.

spectre's People

Contributors

bricss avatar jkochis avatar marcobiedermann avatar picturepan2 avatar rabbitears avatar ruden avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.