@razerspine/pug-ui-kit 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/scss/base/_fonts.scss +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -56,3 +56,8 @@ If you wish to use a custom font path (e.g., a CDN or a different local folder),
|
|
|
56
56
|
@font-path: "/my-custom-path/fonts";
|
|
57
57
|
@import "@razerspine/pug-ui-kit/less/ui-kit.less";
|
|
58
58
|
```
|
|
59
|
+
|
|
60
|
+
## [1.2.1] - 2026-02-03
|
|
61
|
+
|
|
62
|
+
### Fixed
|
|
63
|
+
- **SCSS Scope**: Fixed "Undefined variable" error in `_fonts.scss` by explicitly importing settings module via `@use`.
|
package/package.json
CHANGED
package/scss/base/_fonts.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use '../settings
|
|
1
|
+
@use '../settings' as var;
|
|
2
2
|
|
|
3
3
|
@font-face {
|
|
4
4
|
font-family: 'Roboto';
|
|
5
|
-
src: url('#{
|
|
6
|
-
url('#{
|
|
5
|
+
src: url('#{var.$font-path}/Roboto-Thin.woff2') format('woff2'),
|
|
6
|
+
url('#{var.$font-path}/Roboto-Thin.woff') format('woff');
|
|
7
7
|
font-weight: 100;
|
|
8
8
|
font-style: normal;
|
|
9
9
|
font-display: swap;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
@font-face {
|
|
13
13
|
font-family: 'Roboto';
|
|
14
|
-
src: url('#{
|
|
15
|
-
url('#{
|
|
14
|
+
src: url('#{var.$font-path}/Roboto-Light.woff2') format('woff2'),
|
|
15
|
+
url('#{var.$font-path}/Roboto-Light.woff') format('woff');
|
|
16
16
|
font-weight: 300;
|
|
17
17
|
font-style: normal;
|
|
18
18
|
font-display: swap;
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
@font-face {
|
|
22
22
|
font-family: 'Roboto';
|
|
23
|
-
src: url('#{
|
|
24
|
-
url('#{
|
|
23
|
+
src: url('#{var.$font-path}/Roboto-Regular.woff2') format('woff2'),
|
|
24
|
+
url('#{var.$font-path}/Roboto-Regular.woff') format('woff');
|
|
25
25
|
font-weight: 400;
|
|
26
26
|
font-style: normal;
|
|
27
27
|
font-display: swap;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
@font-face {
|
|
31
31
|
font-family: 'Roboto';
|
|
32
|
-
src: url('#{
|
|
33
|
-
url('#{
|
|
32
|
+
src: url('#{var.$font-path}/Roboto-Medium.woff2') format('woff2'),
|
|
33
|
+
url('#{var.$font-path}/Roboto-Medium.woff') format('woff');
|
|
34
34
|
font-weight: 500;
|
|
35
35
|
font-style: normal;
|
|
36
36
|
font-display: swap;
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
|
|
39
39
|
@font-face {
|
|
40
40
|
font-family: 'Roboto';
|
|
41
|
-
src: url('#{
|
|
42
|
-
url('#{
|
|
41
|
+
src: url('#{var.$font-path}/Roboto-Bold.woff2') format('woff2'),
|
|
42
|
+
url('#{var.$font-path}/Roboto-Bold.woff') format('woff');
|
|
43
43
|
font-weight: 700;
|
|
44
44
|
font-style: normal;
|
|
45
45
|
font-display: swap;
|