This package has been deprecated

Author message:

this package has been deprecated, use @scania/typography instead

@scania-sdds/typography

1.0.1-1 • Public • Published

Scania Digital Design System - Typography package


This package contains both SCSS and CSS files available

  • SCSS available for import
  • CSS classes to apply typography properties based on tokens
  • CSS variables for font-family

How to install with npm

> npm i @scania-sdds/typography

How to use

See all available tokens in digitaldesign.scania.com

// style.scss
// you need to have sass compiler in your application
@import '~node_modules/@scania-sdds/typography/dist/scss/mixins';
@import '~node_modules/@scania-sdds/typography/dist/scss/tokens';

// use SDDS mixin type-style(token-name) to add specific token properties
.my-headline {
    @include type-style('headline-01');
}

// Result for code above:
.my-headline {
  font-family: "Scania Sans Headline", Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 10rem;
  line-height: 10rem;
  letter-spacing: 0em;
}

// OR
// use in HTML as a class
//.sdds-{token-name}
<p class="sdds-headline-01">
  This is a headline
</p>

Readme

Keywords

none

Package Sidebar

Install

npm i @scania-sdds/typography

Weekly Downloads

4

Version

1.0.1-1

License

ISC

Unpacked Size

15.2 kB

Total Files

13

Last publish

Collaborators

  • digitaldesign-scania
  • mmexvr