Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@bbc/gel-foundations-styled-components
Advanced tools
Deprecated in favour of @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.
npm install @bbc/gel-foundations-styled-components --save
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.
/typography
- GEL typography. These are based on the gel typography standard which can be found in the GEL guidelines.
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.
Psammead is Apache 2.0 licensed.
FAQs
Deprecated in favour of @bbc/gel-foundations
We found that @bbc/gel-foundations-styled-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.