2.2.1 • Published 6 months ago
@spense-as/fonts v2.2.1
This is a repo for importing correct fonts locally. It requires Next.js to work.
Usage
You use it like this in your project
import { FontHandling } from "@spense-as/fonts"
<FontHandling font="Roboto" />
It then imports your specified font locally.
Adding a new font
- Create a new component for the font in this repo. See how others have implemented it.
- Add the component to index.ts
- Add the new font to the list below in readme.md
- Publish the package. This can be done by conventional commits. (ie:
fix|feat: [your text]
in your commit) - Bump the import in your project to the latest version. (Run
npm install @spense-as/fonts
in your project) - Add your font-files to the public/fonts-folder in spense web
- Get someone to release the latest version of spense web to spense.no.
Supported fonts
These fonts are supported:
- Bilia Hellix SemiBold
- Cupra
- Hellix SemiBold
- HellixRegular
- Lato
- Lora
- Merriweather
- Merriweather Sans
- Noto Sans
- Noto Serif
- Nunito
- Nunito Sans
- Open Sans
- Oswald
- Poppins
- Porsche Next TT
- PT Mono
- PT Sans
- PT Sans Narrow
- PT Serif
- Raleway
- Roboto
- Roboto Condensed
- Roboto Mono
- Rubik
- Skoda Next
- Source Code Pro
- Source Sans Pro
- Source Serif Pro
- Ubuntu
- Ubuntu Condensed
2.2.1
6 months ago
2.2.0
6 months ago
2.1.0
7 months ago
1.1.4
2 years ago
2.0.0
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.0
2 years ago