@utrecht/document-css 1.1.0 → 1.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # @utrecht/document-css
2
+
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a42a56a: Added metadata for document tokens.
8
+
9
+ ## 1.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 62f1157: Add SCSS files to `src/` directory of CSS component packages.
14
+
15
+ ## 1.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - 856d996: Switch from alpha releases to semantic versioning.
package/_lang.md ADDED
@@ -0,0 +1,7 @@
1
+ <!-- @license CC0-1.0 -->
2
+
3
+ <!-- markdownlint-disable first-line-h1 -->
4
+
5
+ Maak duidelijk welke taal het document is ([WCAG eis 3.1.1](https://www.w3.org/TR/WCAG21/#language-of-page)) met het `lang` attribuut.
6
+
7
+ Het is gebruikelijk om de tweeletterige ISO-639-1 code te gebruiken als die bestaat, anders de drieletterige ISO-639-3 code.
package/dist/index.css CHANGED
@@ -8,6 +8,8 @@
8
8
  */
9
9
  .utrecht-document {
10
10
  /* reset `font-smoothing: antialiasing`, prefer automatic (`subpixel-antialiasing`) behavior for high-dpi screens */
11
+ -webkit-font-smoothing: auto !important;
12
+ -moz-osx-font-smoothing: auto !important;
11
13
  color: var(--utrecht-document-color, inherit);
12
14
  font-family: var(--utrecht-document-font-family, inherit);
13
15
  font-size: var(--utrecht-document-font-size, inherit);
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Document component for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
6
6
  "name": "@utrecht/document-css",
7
7
  "files": [
8
8
  "dist/",
9
- "src/"
9
+ "docs/",
10
+ "src/",
11
+ "*.md"
10
12
  ],
11
13
  "main": "dist/index.css",
12
14
  "devDependencies": {
13
- "rollup": "3.29.4"
15
+ "rollup": "4.18.0"
14
16
  },
15
17
  "keywords": [
16
18
  "nl-design-system"
@@ -18,6 +20,11 @@
18
20
  "publishConfig": {
19
21
  "access": "public"
20
22
  },
23
+ "repository": {
24
+ "type": "git+ssh",
25
+ "url": "git@github.com:nl-design-system/utrecht.git",
26
+ "directory": "components/document"
27
+ },
21
28
  "scripts": {
22
29
  "build": "rollup -c ../rollup.config.mjs",
23
30
  "clean": "rimraf dist"
package/src/_mixin.scss CHANGED
@@ -3,8 +3,15 @@
3
3
  * Copyright (c) 2021 Robbert Broersma
4
4
  */
5
5
 
6
- @mixin utrecht-document {
6
+ @mixin reset-font-smoothing {
7
7
  /* reset `font-smoothing: antialiasing`, prefer automatic (`subpixel-antialiasing`) behavior for high-dpi screens */
8
+ -webkit-font-smoothing: auto !important;
9
+ -moz-osx-font-smoothing: auto !important;
10
+ }
11
+
12
+ @mixin utrecht-document {
13
+ @include reset-font-smoothing;
14
+
8
15
  color: var(--utrecht-document-color, inherit);
9
16
  font-family: var(--utrecht-document-font-family, inherit);
10
17
  font-size: var(--utrecht-document-font-size, inherit);
package/src/tokens.json CHANGED
@@ -6,7 +6,8 @@
6
6
  "nl.nldesignsystem.css.property": {
7
7
  "syntax": "<color>",
8
8
  "inherits": true
9
- }
9
+ },
10
+ "nl.nldesignsystem.figma.supports-token": true
10
11
  },
11
12
  "type": "color"
12
13
  },
@@ -15,7 +16,8 @@
15
16
  "nl.nldesignsystem.css.property": {
16
17
  "syntax": "<color>",
17
18
  "inherits": true
18
- }
19
+ },
20
+ "nl.nldesignsystem.figma.supports-token": true
19
21
  },
20
22
  "type": "color"
21
23
  },
@@ -24,7 +26,8 @@
24
26
  "nl.nldesignsystem.css.property": {
25
27
  "syntax": "*",
26
28
  "inherits": true
27
- }
29
+ },
30
+ "nl.nldesignsystem.figma.supports-token": true
28
31
  },
29
32
  "type": "fontFamilies"
30
33
  },
@@ -33,25 +36,28 @@
33
36
  "nl.nldesignsystem.css.property": {
34
37
  "syntax": "<length>",
35
38
  "inherits": true
36
- }
39
+ },
40
+ "nl.nldesignsystem.figma.supports-token": true
37
41
  },
38
42
  "type": "fontSizes"
39
43
  },
40
44
  "font-weight": {
41
45
  "$extensions": {
42
46
  "nl.nldesignsystem.css.property": {
43
- "syntax": "<length>",
47
+ "syntax": "<number>",
44
48
  "inherits": true
45
- }
49
+ },
50
+ "nl.nldesignsystem.figma.supports-token": true
46
51
  },
47
52
  "type": "fontWeights"
48
53
  },
49
54
  "line-height": {
50
55
  "$extensions": {
51
56
  "nl.nldesignsystem.css.property": {
52
- "syntax": "<length>",
57
+ "syntax": ["<length>", "<number>"],
53
58
  "inherits": true
54
- }
59
+ },
60
+ "nl.nldesignsystem.figma.supports-token": true
55
61
  },
56
62
  "type": "lineHeights"
57
63
  }