Skip to content

niutech/amp-spectre

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

⚡ AMP Spectre CSS Framework

This is an AMP version of the lightweight Spectre.css framework by Yan Zhu. It complies with the AMP CSS spec.

Usage

Insert the contents of spectre.min.css and optionally spectre-icons.min.css file into the <style amp-custom></style> tag. Remember not to exceed 50KB of CSS and to use <amp-img> instead of <img> tags in AMP HTML.

Demo

Check out the demo page as a valid AMP HTML document.

Differences from Spectre.css

  • Removed !important attributes
  • Replaced <img> with <amp-img>
  • Replaced .video-responsive with <amp-youtube layout="responsive">
  • Interactive tabs and toasts

License

Licensed under MIT License.