@sb1/ffe-symbols 1.1.3 → 2.0.0

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/ffe-symbol.less CHANGED
@@ -2,8 +2,48 @@
2
2
  @import './symbol.less';
3
3
 
4
4
  @font-face {
5
- font-family: 'Material Symbols Rounded';
5
+ font-family: 'MaterialSymbolsRounded-300';
6
6
  font-style: normal;
7
7
  font-display: fallback;
8
- src: url('@{icons-url}/MaterialSymbolsRounded.woff2') format('woff2');
8
+ src: url('@{icons-url}/MaterialSymbolsRounded300.woff2') format('woff2');
9
+ }
10
+
11
+ @font-face {
12
+ font-family: 'MaterialSymbolsRounded-400';
13
+ font-style: normal;
14
+ font-display: fallback;
15
+ src: url('@{icons-url}/MaterialSymbolsRounded400.woff2') format('woff2');
16
+ }
17
+
18
+ @font-face {
19
+ font-family: 'MaterialSymbolsRounded-500';
20
+ font-style: normal;
21
+ font-display: fallback;
22
+ src: url('@{icons-url}/MaterialSymbolsRounded500.woff2') format('woff2');
23
+ }
24
+
25
+ // Filled symbols
26
+
27
+ @font-face {
28
+ font-family: 'MaterialSymbolsRoundedFilled-300';
29
+ font-style: normal;
30
+ font-display: fallback;
31
+ src: url('@{icons-url}/MaterialSymbolsRoundedFilled300.woff2')
32
+ format('woff2');
33
+ }
34
+
35
+ @font-face {
36
+ font-family: 'MaterialSymbolsRoundedFilled-400';
37
+ font-style: normal;
38
+ font-display: fallback;
39
+ src: url('@{icons-url}/MaterialSymbolsRoundedFilled400.woff2')
40
+ format('woff2');
41
+ }
42
+
43
+ @font-face {
44
+ font-family: 'MaterialSymbolsRoundedFilled-500';
45
+ font-style: normal;
46
+ font-display: fallback;
47
+ src: url('@{icons-url}/MaterialSymbolsRoundedFilled500.woff2')
48
+ format('woff2');
9
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-symbols",
3
- "version": "1.1.3",
3
+ "version": "2.0.0",
4
4
  "description": "Styling for tilpasning av material symbols til Sb1",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "436c8dc02fe8d6015efa8db9cefc1e4f16a24b21"
36
+ "gitHead": "921f9feb983a19162c9ee54ad6ad4008b2369dca"
37
37
  }
package/symbol.less CHANGED
@@ -1,7 +1,6 @@
1
1
  @import './theme.less';
2
2
 
3
3
  .ffe-symbol {
4
- font-family: var(--ffe-v-symbol-font);
5
4
  font-style: normal;
6
5
  display: inline-block;
7
6
  line-height: 1;
@@ -11,6 +10,30 @@
11
10
  white-space: nowrap;
12
11
  direction: ltr;
13
12
 
13
+ &--filled-300 {
14
+ font-family: var(--ffe-v-symbol-filled-300-font);
15
+ }
16
+
17
+ &--filled-400 {
18
+ font-family: var(--ffe-v-symbol-filled-400-font);
19
+ }
20
+
21
+ &--filled-500 {
22
+ font-family: var(--ffe-v-symbol-filled-500-font);
23
+ }
24
+
25
+ &--300 {
26
+ font-family: var(--ffe-v-symbol-300-font);
27
+ }
28
+
29
+ &--400 {
30
+ font-family: var(--ffe-v-symbol-400-font);
31
+ }
32
+
33
+ &--500 {
34
+ font-family: var(--ffe-v-symbol-500-font);
35
+ }
36
+
14
37
  &--xs {
15
38
  font-size: 1rem;
16
39
  }
package/theme.less CHANGED
@@ -1,3 +1,12 @@
1
1
  :root {
2
- --ffe-v-symbol-font: 'Material Symbols Rounded';
2
+ --ffe-v-symbol-300-font: 'MaterialSymbolsRounded-300';
3
+ --ffe-v-symbol-400-font: 'MaterialSymbolsRounded-400';
4
+ --ffe-v-symbol-500-font: 'MaterialSymbolsRounded-500';
5
+ --ffe-v-symbol-600-font: 'MaterialSymbolsRounded-600';
6
+
7
+ // Filled symbols
8
+ --ffe-v-symbol-filled-300-font: 'MaterialSymbolsRoundedFilled-300';
9
+ --ffe-v-symbol-filled-400-font: 'MaterialSymbolsRoundedFilled-400';
10
+ --ffe-v-symbol-filled-500-font: 'MaterialSymbolsRoundedFilled-500';
11
+ --ffe-v-symbol-filled-600-font: 'MaterialSymbolsRoundedFilled-600';
3
12
  }
Binary file