Socket
Book a DemoInstallSign in
Socket

@coopdigital/foundations-typography

Package Overview
Dependencies
Maintainers
14
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coopdigital/foundations-typography

Co-op Foundations: Typography

latest
Source
npmnpm
Version
4.2.7
Version published
Maintainers
14
Created
Source

Co-op Foundations: Typography

Baseline typographic setup for all Co-op's web projects.

Dependencies (for PostCSS sources only)

  • @coopdigital/foundations-vars
  • postcss
  • precss

How to use

  • Install via npm or Yarn:
$ npm install @coopdigital/foundations-typography --save
$ yarn add @coopdigital/foundations-typography
  • Add CSS module to your application via a most appropriate method. This will entirely depend on your application and how you are currently loading CSS modules within it.

Examples

Here's a bunch of examples, showing how you can integrate this CSS module in your project, based on most popular types of project. You can either use a post-processed and pre-built CSS form the dist directory, ot use PostCSS sources from the src dir.

The latter have two dependencies, which should be consumed by your frontend toolkit to postprocess the CSS correctly.

Vue.js

In Vue, you can just reference it from a global component like so:

<style>
/* Import PostCSS source */
@import "~@coopdigital/foundations-typography/src/typography.pcss";
/* Import postprocessed distributable CSS */
@import "~@coopdigital/foundations-typography/dist/typography.css";
</style>

React.js

TBD

Webpack

TBD

License

Copyright (c) 2021 Co-operative Group Limited. Licensed MIT.

FAQs

Package last updated on 28 Jun 2021

Did you know?

Socket

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.

Install

Related posts