@bedu-tmp/rubik
v0.1.0-canary.4
Published
Self-hosted Rubik fonts
Downloads
1
Readme
Fonts Rubik
The CSS and web font files to easily self-host the "Rubik" font.
Quick installation
This package has only the fonts variety available in Bedu's Design System, you can import the CSS, such as using a bundler like Webpack.
$ yarn add @bedu-tmp/rubik // npm i @bedu-tmp/rubik
Within your app entry file or site component, import it in.
import "@bedu-tmp/rubik"; // Defaults to weight 400.
Supported variables:
- Weights:
[400,600,700]
. - Styles:
[normal]
. - Supported subsets:
[latin, latin-ext]
.
Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.
body {
font-family: "Rubik";
}
This package allows you to selecty weights and even individual styles, allowing you to cut down on payload sizes to the last byte!
import "@bedu-tmp/rubik/600.css"; // Weight 600.
import "@bedu-tmp/rubik/700.css"; // Weight 700.
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 license. The Ubuntu fonts use the Ubuntu Font License v1.0.