@utrecht/document-css 1.2.0 → 1.4.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @utrecht/document-css
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 725617a: Add `tokens.mjs` and `tokens.d.mts` files to CSS packages.
8
+
9
+ ## 1.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - e497b08: Export CSS string as default export in `dist/index.mjs`.
14
+
3
15
  ## 1.2.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.css CHANGED
@@ -1,13 +1,9 @@
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 */
11
7
  -webkit-font-smoothing: auto !important;
12
8
  -moz-osx-font-smoothing: auto !important;
13
9
  color: var(--utrecht-document-color, inherit);
@@ -21,7 +17,6 @@
21
17
  text-size-adjust: none;
22
18
  }
23
19
  .utrecht-document :lang(ar) {
24
- /* `letter-spacing` design tokens break Arabic text rendering, avoid that */
25
20
  letter-spacing: 0 !important;
26
21
  }
27
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;
@@ -0,0 +1,4 @@
1
+
2
+ declare const tokens: any;
3
+
4
+ export default tokens;
@@ -0,0 +1,69 @@
1
+ export default {
2
+ "utrecht": {
3
+ "document": {
4
+ "background-color": {
5
+ "$extensions": {
6
+ "nl.nldesignsystem.css.property": {
7
+ "syntax": "<color>",
8
+ "inherits": true
9
+ },
10
+ "nl.nldesignsystem.figma.supports-token": true
11
+ },
12
+ "type": "color"
13
+ },
14
+ "color": {
15
+ "$extensions": {
16
+ "nl.nldesignsystem.css.property": {
17
+ "syntax": "<color>",
18
+ "inherits": true
19
+ },
20
+ "nl.nldesignsystem.figma.supports-token": true
21
+ },
22
+ "type": "color"
23
+ },
24
+ "font-family": {
25
+ "$extensions": {
26
+ "nl.nldesignsystem.css.property": {
27
+ "syntax": "*",
28
+ "inherits": true
29
+ },
30
+ "nl.nldesignsystem.figma.supports-token": true
31
+ },
32
+ "type": "fontFamilies"
33
+ },
34
+ "font-size": {
35
+ "$extensions": {
36
+ "nl.nldesignsystem.css.property": {
37
+ "syntax": "<length>",
38
+ "inherits": true
39
+ },
40
+ "nl.nldesignsystem.figma.supports-token": true
41
+ },
42
+ "type": "fontSizes"
43
+ },
44
+ "font-weight": {
45
+ "$extensions": {
46
+ "nl.nldesignsystem.css.property": {
47
+ "syntax": "<number>",
48
+ "inherits": true
49
+ },
50
+ "nl.nldesignsystem.figma.supports-token": true
51
+ },
52
+ "type": "fontWeights"
53
+ },
54
+ "line-height": {
55
+ "$extensions": {
56
+ "nl.nldesignsystem.css.property": {
57
+ "syntax": [
58
+ "<length>",
59
+ "<number>"
60
+ ],
61
+ "inherits": true
62
+ },
63
+ "nl.nldesignsystem.figma.supports-token": true
64
+ },
65
+ "type": "lineHeights"
66
+ }
67
+ }
68
+ }
69
+ };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0",
2
+ "version": "1.4.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",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "main": "dist/index.css",
14
14
  "devDependencies": {
15
- "rollup": "4.18.0"
15
+ "@utrecht/build-utils-css": "0.0.1"
16
16
  },
17
17
  "keywords": [
18
18
  "nl-design-system"
@@ -26,7 +26,7 @@
26
26
  "directory": "components/document"
27
27
  },
28
28
  "scripts": {
29
- "build": "rollup -c ../rollup.config.mjs",
29
+ "build": "build-css-package",
30
30
  "clean": "rimraf dist"
31
31
  }
32
32
  }
package/src/_mixin.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
  @mixin reset-font-smoothing {
@@ -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/dist/index.js DELETED
@@ -1 +0,0 @@
1
- var undefined$1 = undefined;export{undefined$1 as default};