Skip to content

un1ko85/bem-typography

 
 

Repository files navigation

bem-typography

![Gitter](https://badges.gitter.im/Join Chat.svg)

This README also available in russian.

Library for work with typography in BEM methodology. Inspired by Gridlover.

Dependencies

Install

Take way like connecting with bem-core and bem-components libraries. Use bower-npm-install to install bem-components from GitHub or Bower register.

Easy example

Example for heading and paragpaph.

{ block : 'heading', content : 'This is heading of level 1' },
{
    block : 'paragraph',
    content : [
        'Simple text'
    ]
}

Calculating

Lib have block calc for calculating fonts sizes. Any sizes writed in rem. It's absolutely right way for fonts. For more info about math model you can watch here.

Customize

Lib very simple to customize. You can configure everything. To do this you need create block variables on one of levels in your project and override any variable in it. So, list of variables you can watch here.

Authors

Ideas

Please, talk about your ideas by GitHub issues.

MIT License

About

Library for right work with typography in BEM methodology

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.7%
  • CSS 4.9%
  • HTML 2.0%
  • Shell 1.4%