A classless CSS framework for AMP HTML.
Go to cssamp.com for examples and documentation.
- Copy the contents of
cssamp.cssinto your page's<style amp-custom>block. - Include whichever AMP component scripts your page needs.
- Build your page with semantic markup and as few classes as possible.
- Copy
index.htmlas your starting point. - Keep the AMP boilerplate and inline
style amp-customblock in place. - Remove the demo sections and examples you do not need.
cssamp.cssis the maintainable stylesheet source.index.htmlis the demo page and keeps an inline AMP-compatible copy of the same CSS.- Form coverage includes AMP's
[submitting],[submit-success],[submit-error], andvisible-when-invalidstates to avoid abrupt layout collapse during submission.
CSSAMP/
|-- cssamp.css
|-- index.html
|-- LICENSE
`-- README.md
Morgan MacArthur