0.1.1 • Published 5 months ago

@bu0nq/webfont.ubuntu-mono v0.1.1

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

WebFont.Ubuntu Mono

Package for integrating Ubuntu Mono fonts in a web environment.

npm npm npm


Installation

This package can be deployed automatically using NPM:

npm i @bu0nq/webfont.ubuntu-mono

Usage (CSS)

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

body {
  font-family: 'Ubuntu Mono', sans-serif;
}

Importing

@import "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono.css";
@import "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono-italic.css";
@import "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono-normal.css";

To import specific fonts, you can use:

@import "~@bu0nq/webfont.ubuntu-mono/css/ubuntu-mono-400-italic.css";
@import "~@bu0nq/webfont.ubuntu-mono/css/ubuntu-mono-400-normal.css";
@import "~@bu0nq/webfont.ubuntu-mono/css/ubuntu-mono-700-italic.css";
@import "~@bu0nq/webfont.ubuntu-mono/css/ubuntu-mono-700-normal.css";

Usage (LESS)

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

body {
  font-family: 'Ubuntu Mono', sans-serif;
}

Importing

@import "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono";
@import "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono-italic";
@import "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono-normal";

To import specific fonts, you can use:

@import "~@bu0nq/webfont.ubuntu-mono/less/ubuntu-mono-400-italic";
@import "~@bu0nq/webfont.ubuntu-mono/less/ubuntu-mono-400-normal";
@import "~@bu0nq/webfont.ubuntu-mono/less/ubuntu-mono-700-italic";
@import "~@bu0nq/webfont.ubuntu-mono/less/ubuntu-mono-700-normal";

Usage (SCSS)

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

body {
  font-family: 'Ubuntu Mono', sans-serif;
}

Importing

@use "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono";
@use "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono-italic";
@use "~@bu0nq/webfont.ubuntu-mono/ubuntu-mono-normal";

To import specific fonts, you can use:

@use "~@bu0nq/webfont.ubuntu-mono/scss/ubuntu-mono-400-italic";
@use "~@bu0nq/webfont.ubuntu-mono/scss/ubuntu-mono-400-normal";
@use "~@bu0nq/webfont.ubuntu-mono/scss/ubuntu-mono-700-italic";
@use "~@bu0nq/webfont.ubuntu-mono/scss/ubuntu-mono-700-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