0.0.2 • Published 2 years ago
@grikomsn/cal-sans v0.0.2
@grikomsn/cal-sans
The CSS and web font files to easily self-host the Cal Sans font. Please visit the main repository to view more details on this font.
Installing
# using npm
npm install @grikomsn/cal-sans
# using yarn
yarn add @grikomsn/cal-sans
Example usage
Inspired by Fontsource, this package has a variety of methods to import CSS, such as using a bundler like Webpack. Within your app entry file or site component, import it in.
import "@grikomsn/cal-sans";
Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.
body {
font-family: "Cal Sans";
}
View a live Next.js project example at https://cal-sans-example.vercel.app. Example source code can be found at /example
directory.
Credits
- https://github.com/calendso/font
- https://github.com/fontsource
- https://daocentral.com/fonts/stylesheet.css
License
- This project: MIT License, Copyright (c) 2021 Griko Nibras
- Cal Sans font: SIL Open Font License, Version 1.1