@fontsource/poppins
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -15,2 +15,12 @@ # Changelog | ||
## 4.1.x | ||
### Features | ||
- Added customisable SASS support through mixins for more flexible user setups. [#64](https://github.com/fontsource/fontsource/issues/64) [#122](https://github.com/fontsource/fontsource/pull/122) | ||
### Fixes | ||
- Major refactor to organise the templates and generic packager. [#120](https://github.com/fontsource/fontsource/pull/120) | ||
## 4.0.x | ||
@@ -23,3 +33,3 @@ | ||
- `import @fontsource/<font name>/<weight>` now only contains normal style variants of fonts. The `-normal.css` files throughout the respository have been removed. Importing italic variants remain the same via `import @fontsource/<font name>/<weight>-italic.css`. | ||
- `import @fontsource/<font name>/<weight>.css` now only contains normal style variants of fonts. The `-normal.css` files throughout the respository have been removed. Importing italic variants remain the same via `import @fontsource/<font name>/<weight>-italic.css`. | ||
Please see [#88](https://github.com/fontsource/fontsource/issues/88) for more details. [#112](https://github.com/fontsource/fontsource/pull/112) | ||
@@ -31,2 +41,7 @@ | ||
### Fixes | ||
- Add publishConfig to package.json templates for scoped packages to successfully publish. [#118](https://github.com/fontsource/fontsource/pull/118) | ||
- Generate index.css for fonts that do not have weight 400. [#119](https://github.com/fontsource/fontsource/pull/119) | ||
# 3.x Release | ||
@@ -33,0 +48,0 @@ |
{ | ||
"name": "@fontsource/poppins", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Poppins font in NPM glory.", | ||
@@ -25,3 +25,3 @@ "main": "index.css", | ||
}, | ||
"gitHead": "bec2f484683f686c527a028a3813a5fd76a7f565" | ||
"gitHead": "7c3699bded5aa61c8ec25dbd813b6e68374dafe1" | ||
} |
@@ -35,2 +35,26 @@ # Fontsource Poppins | ||
For more advanced setups, you can use our highly customisable Sass mixins that can modify many of the existing @font-face variables. | ||
```scss | ||
@import "~@fontsource/poppins/scss/mixins"; | ||
// Uses a unicode-range map to automatically generate multiple @font-face rules. | ||
@include fontFace( | ||
$weight: 500, | ||
$display: fallback, | ||
$fontDir: "~@fontsource/poppins/files" | ||
); | ||
// Fully customisable single @font-face mixin. | ||
@include fontFaceCustom( | ||
$weight: 600, | ||
$display: optional, | ||
$woff2Path: "~@fontsource/poppins/files/poppins-latin-500-normal.woff2", | ||
$unicodeRange: false | ||
); | ||
// More options available in link below. | ||
``` | ||
You can see all of the existing inputtable mixin variables [here](https://github.com/fontsource/fontsource/tree/master/packages/poppins/scss/mixins.scss). | ||
_These examples may not reflect actual compatibility. Please refer below._ | ||
@@ -58,3 +82,3 @@ | ||
import "@fontsource/poppins/cyrillic-ext-500.css" // Weight 500 with normal style. | ||
import "@fontsource/poppins/greek-900-normal.css" // Italic variant. | ||
import "@fontsource/poppins/greek-900-italic.css" // Italic variant. | ||
``` | ||
@@ -61,0 +85,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
208
98
3973069
1337