npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ilo-org/fonts

v1.0.0

Published

ILO brand fonts and fontface declarations

Downloads

78

Readme

ILO Design System - Fonts Package

This package includes the ILO's brand fonts and typeface declarations. Fore more information about typography at the ILO, see the ILO Brand Hub.

Usage

Simply add the project as a dependency in your package.json and then import the font-face declarations.

// SCSS
@import "~@ilo-org/fonts";
// JavaScript with Webpack
import "~@ilo-org/fonts";

Then, in any css file

.my-type-class {
  font-family: "Overpass", sans;
  font-weight: normal;
  font-style: normal;
}

As Google Fonts

If you need to import the fonts for Google for some reason, you can also do this:

/* CSS */
@import url("@ilo-org/fonts/font-css/fonts-google.css");

Fonts included

This package includes a subset of Overpass and Noto Sans fonts used in ILO projects.

| font-family | font-weight | font-style | file | | ----------- | ----------- | ---------- | ----------------------- | | "Overpass" | normal | normal | Overpass-Regular | | "Overpass" | normal | italic | Overpass-Italic | | "Overpass" | 300 | normal | Overpass-Light | | "Overpass" | 700 | normal | Overpass-SemiBold | | "Overpass" | 700 | italic | Overpass-SemiBoldItalic | | "Noto Sans" | normal | normal | NotoSans | | "Noto Sans" | normal | italic | NotoSans-Italic | | "Noto Sans" | 700 | normal | NotoSans-Bold | | "Noto Sans" | 700 | italic | NotoSans-BoldItalic |

Formats

All fonts-face declarations include files in the following formats:

  • .eot
  • .woff
  • .woff2
  • .ttf

Raw CSS Import files

This pacakge includes a directory named fonts-css which contains raw css for importing font stacks. Included as of now:

| character set | font-family | | ------------- | ---------------- | | Latin | Noto Sans | | Latin | Overpass | | Arabic | Noto Sans Arabic |

(Note there is no Arabic character set for Overpass).

Note that both CSS imports refer to their character set's font-family as "Noto Sans" in the CSS. This allows switching out just the font import files while loading CSS from the styles pacakge without having to load an entirely new version of styles package CSS. In an example font stack in an HTML <head> you might have the following logic (pseduo-code):

if is latin
	<link rel="stylesheet" href="css/fonts.css" type="text/css" media="screen" />
else
	<link rel="stylesheet" href="css/fonts-{{language}}.css" type="text/css" media="screen" />
endif

Non-Latin Languages

Arabic

This pacakge also includes Noto Sans Arabic.

| font-family | font-weight | font-style | file | | ----------- | ----------- | ---------- | ------------------- | | "Noto Sans" | normal | normal | NotoSansArabic | | "Noto Sans" | 700 | normal | NotoSansArabic-Bold |

Chinese & Japense

Chinese and Japanese webfonts are very large and not often used. As such, when using the ILO Design System in a Chines or Japanese website, we recommend using the following system fonts:

Chinese

PingFang SC, Microsoft YaHei, 微软雅黑, sans-serif

Japanese

Noto Sans CJK JP, Yu Gothic, Hiragino Sans

Note: These font-family declarations are already included in the @ilo-org/styles package. You will probably not have to make them yourself.