0.2.1 • Published 5 years ago

@bbc/gel-foundations-styled-components v0.2.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

gel-foundations-styled-components · GitHub license npm version PRs Welcome

THIS PACKAGE IS DEPRECATED. PLEASE USE @bbc/gel-foundations

This package is a collection of styled component implementations based on BBC GEL guidelines which can be imported into your application.

More details on the type sizes defined in this package are available here.

Installation

npm install @bbc/gel-foundations-styled-components --save

Usage

import { GEL_BREVIER } from '@bbc/gel-foundations-styled-components/typography';

To allow the typography to be fully accessible and responsive, please note that you should apply a default font-size to the document root (e.g. html { font-size: 100% }).

Our typography uses em for font-size and rem for line-height. em allows modularity of components: you can change the component font-size by changing the font-size of its container. rem is relative to the document root, so we use that for line-height and spacing for a consistent look-and-feel across the document. You can read our detailed analysis of "REMs vs EMs for spacing" for more information.

Exports

/typography - GEL typography. These are based on the gel typography standard which can be found in the GEL guidelines.

Contributing

Psammead is completely open source. We are grateful for any contributions, whether they be new components, bug fixes or general improvements. Please see our primary contributing guide which can be found at the root of the Psammead respository.

Code of Conduct

We welcome feedback and help on this work. By participating in this project, you agree to abide by the code of conduct. Please take a moment to read it.

License

Psammead is Apache 2.0 licensed.