https://github.com/kunukn/apis-font
Apis font
https://github.com/kunukn/apis-font
Last synced: about 2 months ago
JSON representation
Apis font
- Host: GitHub
- URL: https://github.com/kunukn/apis-font
- Owner: kunukn
- License: unlicense
- Created: 2021-08-26T12:04:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-01T13:58:29.000Z (over 3 years ago)
- Last Synced: 2025-03-01T15:03:05.136Z (3 months ago)
- Language: CSS
- Size: 309 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apis font
## Load font from CDN
load the font by inluding this in HTML
```html
```
or import it from CSS
```html
@import "https://unpkg.com/apis-font/fonts/font.css";
```
or load it dynamically from JavaScript
```html
```
or lazy load the CSS
```html
```
apply the font in CSS
```css
body {
font-family: Apis, sans-serif;
}
.font-bold {
font-weight: bold;
}
.font-medium {
font-weight: 500;
}
.font-italic {
font-style: italic;
}
```Use the font
```html
this is a normal font
this is a bold font
this is a medium font
this is an italic style
```## Font from npm
```bash
npm install apis-font # yarn add apis-font
```- The files are in `node_modules/apis-font/fonts`
For quick prototyping, load the font by inluding this in HTML.
```html
```
Alternatively copy the files to a folder outside node_modules.
## More
To see all the available CDN files go to
https://unpkg.com/apis-font/