Skip to content

yoshuawuyts/anchor-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tiny css boilerplate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages