gel-foundations-styled-components ·
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.
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.