fontsource-open-sans
Advanced tools
Comparing version 2.1.2 to 2.1.3
{ | ||
"name": "fontsource-open-sans", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Open Sans font in NPM glory.", | ||
@@ -17,3 +17,3 @@ "main": "index.css", | ||
"repository": "https://github.com/DecliningLotus/fontsource/tree/master/packages/open-sans", | ||
"gitHead": "20a37d921586944d665401920dd5794639156011" | ||
"gitHead": "a267ada4e111247efe8062ca5e49acf7339cdddb" | ||
} |
# Fontsource Open Sans | ||
[![npm version](https://badge.fury.io/js/fontsource-open-sans.svg)](https://github.com/DecliningLotus/fontsource) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/DecliningLotus/fontsource) [![GitHub stars](https://img.shields.io/github/stars/DecliningLotus/fontsource.svg?style=social&label=Star&maxAge=2592000)](https://GitHub.com/DecliningLotus/fontsource/stargazers/) | ||
[![npm version](https://badge.fury.io/js/fontsource-open-sans.svg)](https://github.com/DecliningLotus/fontsource) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/DecliningLotus/fontsource) [![GitHub stars](https://img.shields.io/github/stars/DecliningLotus/fontsource.svg?style=social&label=Star)](https://GitHub.com/DecliningLotus/fontsource/stargazers/) | ||
@@ -15,3 +15,3 @@ The CSS and web font files to easily self-host the “Open Sans” font. Please visit the main [Fontsource monorepo](https://github.com/DecliningLotus/fontsource) to view more details on this package. | ||
Then within your app entry file or site component, import it in. For example in Gatsby, you could simply import it into your `layout.js` component or `gatsby-browser.js` for limited circumstances. | ||
Then within your app entry file or site component, import it in. For example in Gatsby, you could choose to import it into a layout template (`layout.js`), page component, or `gatsby-browser.js`. | ||
@@ -33,4 +33,4 @@ ```javascript | ||
```scss | ||
@import "~fontsource-open-sans/index"; | ||
@import "~fontsource-open-sans/vietnamese-300-italic"; | ||
@import "~fontsource-open-sans/index.css"; | ||
@import "~fontsource-open-sans/vietnamese-300-italic.css"; | ||
``` | ||
@@ -46,2 +46,10 @@ | ||
Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS. | ||
```css | ||
body { | ||
font-family: "Open Sans"; | ||
} | ||
``` | ||
## Licensing | ||
@@ -48,0 +56,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3214795
62