4.2.7 • Published 3 years ago

@coopdigital/foundations-typography v4.2.7

Weekly downloads
460
License
MIT
Repository
github
Last release
3 years ago

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

  1. Install via npm or Yarn:
    $ npm install @coopdigital/foundations-typography --save
    $ yarn add @coopdigital/foundations-typography
  2. 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.

4.2.7

3 years ago

4.2.6

3 years ago

4.2.5

3 years ago

4.2.4

3 years ago

4.2.3

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.27

3 years ago

4.1.26

4 years ago

4.1.25

4 years ago

4.1.24

4 years ago

4.1.23

4 years ago

4.1.22

4 years ago

4.1.20

4 years ago

4.1.21

4 years ago

4.1.19

4 years ago

4.1.18

4 years ago

4.1.17

4 years ago

4.1.16

4 years ago

4.1.15

4 years ago

4.1.14

4 years ago

4.1.13

4 years ago

4.1.12

4 years ago

4.1.11

4 years ago

4.1.10

4 years ago

4.1.8

4 years ago

4.1.7

4 years ago

4.1.9

4 years ago

4.1.6

4 years ago

4.1.5

4 years ago

4.1.4

4 years ago

4.1.3

4 years ago

4.1.2

4 years ago

3.1.5

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

4.1.1

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.0

4 years ago

3.0.12

4 years ago

3.0.13

4 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.8

4 years ago

3.0.6

4 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.2

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago