@fontsource/poiret-one
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -15,2 +15,14 @@ # Changelog | ||
## 4.2.x | ||
### Features | ||
- Added default variables to SCSS mixins. [#144](https://github.com/fontsource/fontsource/pull/144) | ||
- Added $fontDir variable to SCSS mixins. [#146](https://github.com/fontsource/fontsource/pull/146) | ||
- Added variable font support and $defSubset variable to SCSS mixins. [#147](https://github.com/fontsource/fontsource/pull/147) | ||
### Documentation | ||
- Changed package.json descriptions to something more mature. [#148](https://github.com/fontsource/fontsource/pull/148) | ||
## 4.1.x | ||
@@ -17,0 +29,0 @@ |
{ | ||
"name": "@fontsource/poiret-one", | ||
"version": "4.1.0", | ||
"description": "Poiret One font in NPM glory.", | ||
"version": "4.2.0", | ||
"description": "Self-host the Poiret One font in a neatly bundled NPM package.", | ||
"main": "index.css", | ||
@@ -25,3 +25,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "7c3699bded5aa61c8ec25dbd813b6e68374dafe1" | ||
"gitHead": "43c9423cb86c9707cfa83a7e1063868f213b0d59" | ||
} |
@@ -51,3 +51,3 @@ # Fontsource Poiret One | ||
$display: optional, | ||
$woff2Path: "~@fontsource/poiret-one/files/poiret-one-latin-500-normal.woff2", | ||
$woff2Path: "#{$fontDir}/custom-file.woff2", | ||
$unicodeRange: false | ||
@@ -58,2 +58,15 @@ ); | ||
We also have default variables that you can use! | ||
```scss | ||
@import "~@fontsource/poiret-one/scss/mixins"; | ||
$style: italic; | ||
@include fontFace($weight: 500); | ||
@include fontFace($weight: 600); | ||
// Applies italic to both @includes. | ||
``` | ||
You can see all of the existing inputtable mixin variables [here](https://github.com/fontsource/fontsource/tree/master/packages/poiret-one/scss/mixins.scss). | ||
@@ -60,0 +73,0 @@ |
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
101063
111