0.0.2 • Published 2 years ago

@grikomsn/cal-sans v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@grikomsn/cal-sans

npm packagephobia/install packagephobia/publish

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

License