anchor-css

A tiny css boilerplate


License
MIT
Install
bower install anchor-css

Documentation

A tiny css boilerplate

Installation

git clone https://github.com/yoshuawuyts/anchor-css
npm install
gulp styles

Features

  • Flexbox centric
  • Sensible defaults only
  • Roles > class selectors
  • Built for today's browsers
  • <10 kb

About selectors

There's no such thing as a semantic class, roles are the only way to convey context. If you use roles as selectors you get screen reader support for free. Classes are only used as modifiers or to style non-visible elements (e.g. grids). I have no idea what an ID is.

Directory structure

.
├── utilities			// helper classes
│   ├── base
│   ├── colors 
│   ├── grid          
│   └── media
├── micro				// atoms
│   ├── animations
│   ├── buttons
│   ├── forms
│   ├── images
│   ├── navigation
│   ├── progress
│   ├── tables
│   └── typography
└── macro				// widgets
    ├── dialogs                 
    └── feedback       

Inspiration

License

MIT © Yoshua Wuyts