0.1.1 • Published 5 months ago

@bu0nq/webfont.roboto-slab v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

WebFont.Roboto Slab

Package for integrating Roboto Slab fonts in a web environment.

npm npm npm


Installation

This package can be deployed automatically using NPM:

npm i @bu0nq/webfont.roboto-slab

Usage (CSS)

Font files are located in the fonts directory. To import all fonts, you can use:

body {
  font-family: 'Roboto Slab', sans-serif;
}

Importing

@import "~@bu0nq/webfont.roboto-slab/roboto-slab.css";
@import "~@bu0nq/webfont.roboto-slab/roboto-slab-normal.css";

To import specific fonts, you can use:

@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-100-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-200-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-300-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-400-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-500-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-600-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-700-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-800-normal.css";
@import "~@bu0nq/webfont.roboto-slab/css/roboto-slab-900-normal.css";

Usage (LESS)

Font files are located in the fonts directory. To import all fonts, you can use:

body {
  font-family: 'Roboto Slab', sans-serif;
}

Importing

@import "~@bu0nq/webfont.roboto-slab/roboto-slab";
@import "~@bu0nq/webfont.roboto-slab/roboto-slab-normal";

To import specific fonts, you can use:

@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-100-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-200-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-300-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-400-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-500-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-600-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-700-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-800-normal";
@import "~@bu0nq/webfont.roboto-slab/less/roboto-slab-900-normal";

Usage (SCSS)

Font files are located in the fonts directory. To import all fonts, you can use:

body {
  font-family: 'Roboto Slab', sans-serif;
}

Importing

@use "~@bu0nq/webfont.roboto-slab/roboto-slab";
@use "~@bu0nq/webfont.roboto-slab/roboto-slab-normal";

To import specific fonts, you can use:

@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-100-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-200-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-300-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-400-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-500-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-600-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-700-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-800-normal";
@use "~@bu0nq/webfont.roboto-slab/scss/roboto-slab-900-normal";

Licensing

It is important to always read the license for every font that you use. Most of the fonts in the collection use the SIL Open Font License v1.1. Some fonts use the Apache 2.0 license. The Ubuntu fonts use the Ubuntu Font License v1.0.

0.1.1

5 months ago

0.1.0

5 months ago