@sb1/ffe-icons 15.0.1 → 15.1.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/README.md CHANGED
@@ -12,6 +12,14 @@ npm install --save @sb1/ffe-icons
12
12
 
13
13
  Full documentation on icon usage is available at https://design.sparebank1.no/komponenter/ikoner/.
14
14
 
15
+ ### Importing compiled CSS
16
+
17
+ If your project does not use Less, you can import the compiled styling:
18
+
19
+ ```css
20
+ @import '~@sb1/ffe-icons/css/ffe-icons.css';
21
+ ```
22
+
15
23
  See also `@sb1/ffe-icons-react`.
16
24
 
17
25
  ## Updating available icons
@@ -0,0 +1,41 @@
1
+ :root,
2
+ :host {
3
+ --ffe-v-icons-size-sm: 20px;
4
+ --ffe-v-icons-size-md: 24px;
5
+ --ffe-v-icons-size-lg: 40px;
6
+ --ffe-v-icons-size-xl: 48px;
7
+ --ffe-v-icons-default-color: var(--ffe-farge-vann);
8
+ }
9
+ @media (prefers-color-scheme: dark) {
10
+ .regard-color-scheme-preference :root,
11
+ .regard-color-scheme-preference :host {
12
+ --ffe-v-icons-default-color: var(--ffe-farge-vann-70);
13
+ }
14
+ }
15
+ .ffe-icons {
16
+ -webkit-mask-repeat: no-repeat;
17
+ mask-repeat: no-repeat;
18
+ -webkit-mask-position: top;
19
+ mask-position: top;
20
+ background-color: currentcolor;
21
+ display: inline-block;
22
+ }
23
+ .ffe-icons--sm {
24
+ height: var(--ffe-v-icons-size-sm);
25
+ width: var(--ffe-v-icons-size-sm);
26
+ }
27
+ .ffe-icons--md {
28
+ height: var(--ffe-v-icons-size-md);
29
+ width: var(--ffe-v-icons-size-md);
30
+ }
31
+ .ffe-icons--lg {
32
+ height: var(--ffe-v-icons-size-lg);
33
+ width: var(--ffe-v-icons-size-lg);
34
+ }
35
+ .ffe-icons--xl {
36
+ height: var(--ffe-v-icons-size-xl);
37
+ width: var(--ffe-v-icons-size-xl);
38
+ }
39
+ :where(.ffe-icons) {
40
+ color: var(--ffe-v-icons-default-color);
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-icons",
3
- "version": "15.0.1",
3
+ "version": "15.1.1",
4
4
  "description": "Felles Front End Icons",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -9,14 +9,15 @@
9
9
  },
10
10
  "files": [
11
11
  "icons",
12
- "less"
12
+ "less",
13
+ "css"
13
14
  ],
14
15
  "repository": {
15
16
  "type": "git",
16
17
  "url": "ssh://git@github.com:SpareBank1/designsystem.git"
17
18
  },
18
19
  "scripts": {
19
- "build:": "",
20
+ "build": "lessc less/ffe-icons.less css/ffe-icons.css --autoprefix",
20
21
  "build:icons": "node bin/build.js",
21
22
  "lint": "eslint bin",
22
23
  "test": "npm run lint"
@@ -32,5 +33,5 @@
32
33
  "publishConfig": {
33
34
  "access": "public"
34
35
  },
35
- "gitHead": "dba35bd2fc2066cfd771757d68a3598a6eb6f429"
36
+ "gitHead": "dc7c61f175a6472f848beabc04f65ccfaea3c22e"
36
37
  }