@utrecht/document-css 1.1.0 → 1.3.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,25 @@
1
+ # @utrecht/document-css
2
+
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e497b08: Export CSS string as default export in `dist/index.mjs`.
8
+
9
+ ## 1.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - a42a56a: Added metadata for document tokens.
14
+
15
+ ## 1.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 62f1157: Add SCSS files to `src/` directory of CSS component packages.
20
+
21
+ ## 1.0.0
22
+
23
+ ### Major Changes
24
+
25
+ - 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
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
- /**
6
- * @license EUPL-1.2
7
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
8
5
  */
9
6
  .utrecht-document {
10
- /* reset `font-smoothing: antialiasing`, prefer automatic (`subpixel-antialiasing`) behavior for high-dpi screens */
7
+ -webkit-font-smoothing: auto !important;
8
+ -moz-osx-font-smoothing: auto !important;
11
9
  color: var(--utrecht-document-color, inherit);
12
10
  font-family: var(--utrecht-document-font-family, inherit);
13
11
  font-size: var(--utrecht-document-font-size, inherit);
@@ -19,7 +17,6 @@
19
17
  text-size-adjust: none;
20
18
  }
21
19
  .utrecht-document :lang(ar) {
22
- /* `letter-spacing` design tokens break Arabic text rendering, avoid that */
23
20
  letter-spacing: 0 !important;
24
21
  }
25
22
 
@@ -0,0 +1 @@
1
+ .utrecht-document{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;color:var(--utrecht-document-color,inherit);font-family:var(--utrecht-document-font-family,inherit);font-size:var(--utrecht-document-font-size,inherit);font-weight:var(--utrecht-document-font-weight,inherit);line-height:var(--utrecht-document-line-height,inherit);text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}.utrecht-document :lang(ar){letter-spacing:0!important}.utrecht-document--surface{background-color:var(--utrecht-document-background-color,inherit)}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export default ".utrecht-document{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;color:var(--utrecht-document-color,inherit);font-family:var(--utrecht-document-font-family,inherit);font-size:var(--utrecht-document-font-size,inherit);font-weight:var(--utrecht-document-font-weight,inherit);line-height:var(--utrecht-document-line-height,inherit);text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}.utrecht-document :lang(ar){letter-spacing:0!important}.utrecht-document--surface{background-color:var(--utrecht-document-background-color,inherit)}";
@@ -0,0 +1,2 @@
1
+ declare const css: string;
2
+ export default css;
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.3.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
+ "@utrecht/build-utils-css": "0.0.1"
14
16
  },
15
17
  "keywords": [
16
18
  "nl-design-system"
@@ -18,8 +20,13 @@
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
- "build": "rollup -c ../rollup.config.mjs",
29
+ "build": "build-css-package",
23
30
  "clean": "rimraf dist"
24
31
  }
25
32
  }
package/src/_mixin.scss CHANGED
@@ -1,10 +1,18 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
4
5
  */
5
6
 
6
- @mixin utrecht-document {
7
+ @mixin reset-font-smoothing {
7
8
  /* reset `font-smoothing: antialiasing`, prefer automatic (`subpixel-antialiasing`) behavior for high-dpi screens */
9
+ -webkit-font-smoothing: auto !important;
10
+ -moz-osx-font-smoothing: auto !important;
11
+ }
12
+
13
+ @mixin utrecht-document {
14
+ @include reset-font-smoothing;
15
+
8
16
  color: var(--utrecht-document-color, inherit);
9
17
  font-family: var(--utrecht-document-font-family, inherit);
10
18
  font-size: var(--utrecht-document-font-size, inherit);
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
4
5
  */
5
6
 
6
7
  @import "../mixin";
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
4
5
  */
5
6
 
6
7
  @import "./mixin";
package/src/index.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
4
5
  */
5
6
 
6
7
  @import "./mixin";
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
  }
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- var undefined$1 = undefined;export{undefined$1 as default};