@conduction/theme 1.0.13 → 1.0.15

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.
Files changed (84) hide show
  1. package/.prettierrc +12 -0
  2. package/README.md +2 -0
  3. package/conduction-design-tokens/LICENSE.md +17 -0
  4. package/conduction-design-tokens/dist/design-tokens.css +294 -0
  5. package/conduction-design-tokens/dist/font.css +5 -0
  6. package/conduction-design-tokens/dist/index.css +7 -0
  7. package/conduction-design-tokens/dist/index.js +292 -0
  8. package/conduction-design-tokens/dist/index.json +5699 -0
  9. package/conduction-design-tokens/dist/index.less +291 -0
  10. package/conduction-design-tokens/dist/index.scss +291 -0
  11. package/conduction-design-tokens/dist/tokens.json +6098 -0
  12. package/conduction-design-tokens/package.json +40 -0
  13. package/conduction-design-tokens/src/brand/conduction/color.tokens.json +59 -0
  14. package/conduction-design-tokens/src/brand/conduction/font-size.tokens.json +17 -0
  15. package/conduction-design-tokens/src/brand/conduction/size.tokens.json +17 -0
  16. package/conduction-design-tokens/src/brand/conduction/typography.tokens.json +47 -0
  17. package/conduction-design-tokens/src/common/utrecht/action.tokens.json +9 -0
  18. package/conduction-design-tokens/src/common/utrecht/space.tokens.json +28 -0
  19. package/conduction-design-tokens/src/component/conduction/card.tokens.json +15 -0
  20. package/conduction-design-tokens/src/component/conduction/select.tokens.json +15 -0
  21. package/conduction-design-tokens/src/component/conduction/table.tokens.json +16 -0
  22. package/conduction-design-tokens/src/component/utrecht/alert.tokens.json +47 -0
  23. package/conduction-design-tokens/src/component/utrecht/blockquote.tokens.json +27 -0
  24. package/conduction-design-tokens/src/component/utrecht/button.tokens.json +152 -0
  25. package/conduction-design-tokens/src/component/utrecht/code.tokens.json +27 -0
  26. package/conduction-design-tokens/src/component/utrecht/document.tokens.json +12 -0
  27. package/conduction-design-tokens/src/component/utrecht/form-input.tokens.json +44 -0
  28. package/conduction-design-tokens/src/component/utrecht/heading.tokens.json +53 -0
  29. package/conduction-design-tokens/src/component/utrecht/icon.tokens.json +13 -0
  30. package/conduction-design-tokens/src/component/utrecht/link.tokens.json +33 -0
  31. package/conduction-design-tokens/src/component/utrecht/list.tokens.json +32 -0
  32. package/conduction-design-tokens/src/component/utrecht/page-footer.tokens.json +13 -0
  33. package/conduction-design-tokens/src/component/utrecht/page-header.tokens.json +10 -0
  34. package/conduction-design-tokens/src/component/utrecht/page.tokens.json +11 -0
  35. package/conduction-design-tokens/src/component/utrecht/paragraph.tokens.json +25 -0
  36. package/conduction-design-tokens/src/component/utrecht/table.tokens.json +60 -0
  37. package/conduction-design-tokens/src/component/utrecht/textbox.tokens.json +44 -0
  38. package/conduction-design-tokens/src/config.json +7 -0
  39. package/conduction-design-tokens/src/font/Aldritch.woff2 +0 -0
  40. package/conduction-design-tokens/src/font.scss +6 -0
  41. package/conduction-design-tokens/src/index.scss +8 -0
  42. package/conduction-design-tokens/style-dictionary.config.js +6 -0
  43. package/municipalities/xxllnc-design-tokens/LICENSE.md +17 -0
  44. package/municipalities/xxllnc-design-tokens/dist/design-tokens.css +289 -0
  45. package/municipalities/xxllnc-design-tokens/dist/font.css +1 -0
  46. package/municipalities/xxllnc-design-tokens/dist/index.css +7 -0
  47. package/municipalities/xxllnc-design-tokens/dist/index.js +287 -0
  48. package/municipalities/xxllnc-design-tokens/dist/index.json +5606 -0
  49. package/municipalities/xxllnc-design-tokens/dist/index.less +286 -0
  50. package/municipalities/xxllnc-design-tokens/dist/index.scss +286 -0
  51. package/municipalities/xxllnc-design-tokens/dist/tokens.json +5989 -0
  52. package/municipalities/xxllnc-design-tokens/package.json +40 -0
  53. package/municipalities/xxllnc-design-tokens/src/brand/xxllnc/color.tokens.json +84 -0
  54. package/municipalities/xxllnc-design-tokens/src/brand/xxllnc/font-size.tokens.json +17 -0
  55. package/municipalities/xxllnc-design-tokens/src/brand/xxllnc/size.tokens.json +17 -0
  56. package/municipalities/xxllnc-design-tokens/src/brand/xxllnc/typography.tokens.json +47 -0
  57. package/municipalities/xxllnc-design-tokens/src/common/utrecht/action.tokens.json +9 -0
  58. package/municipalities/xxllnc-design-tokens/src/common/utrecht/space.tokens.json +28 -0
  59. package/municipalities/xxllnc-design-tokens/src/component/conduction/card.tokens.json +15 -0
  60. package/municipalities/xxllnc-design-tokens/src/component/conduction/select.tokens.json +15 -0
  61. package/municipalities/xxllnc-design-tokens/src/component/utrecht/alert.tokens.json +47 -0
  62. package/municipalities/xxllnc-design-tokens/src/component/utrecht/blockquote.tokes.json +27 -0
  63. package/municipalities/xxllnc-design-tokens/src/component/utrecht/button.tokens.json +152 -0
  64. package/municipalities/xxllnc-design-tokens/src/component/utrecht/code.tokens.json +27 -0
  65. package/municipalities/xxllnc-design-tokens/src/component/utrecht/document.tokens.json +12 -0
  66. package/municipalities/xxllnc-design-tokens/src/component/utrecht/footer.tokens.json +13 -0
  67. package/municipalities/xxllnc-design-tokens/src/component/utrecht/form-input.tokens.json +44 -0
  68. package/municipalities/xxllnc-design-tokens/src/component/utrecht/heading.tokens.json +53 -0
  69. package/municipalities/xxllnc-design-tokens/src/component/utrecht/icon.tokens.json +13 -0
  70. package/municipalities/xxllnc-design-tokens/src/component/utrecht/link.tokens.json +33 -0
  71. package/municipalities/xxllnc-design-tokens/src/component/utrecht/list.tokens.json +32 -0
  72. package/municipalities/xxllnc-design-tokens/src/component/utrecht/page-header.tokens.json +10 -0
  73. package/municipalities/xxllnc-design-tokens/src/component/utrecht/page.tokens.json +11 -0
  74. package/municipalities/xxllnc-design-tokens/src/component/utrecht/paragraph.tokens.json +25 -0
  75. package/municipalities/xxllnc-design-tokens/src/component/utrecht/table.tokens.json +60 -0
  76. package/municipalities/xxllnc-design-tokens/src/component/utrecht/textbox.tokens.json +44 -0
  77. package/municipalities/xxllnc-design-tokens/src/config.json +7 -0
  78. package/municipalities/xxllnc-design-tokens/src/font.scss +1 -0
  79. package/municipalities/xxllnc-design-tokens/src/index.scss +11 -0
  80. package/municipalities/xxllnc-design-tokens/style-dictionary.config.js +6 -0
  81. package/municipalities/xxllnc.css +70 -59
  82. package/package.json +1 -1
  83. package/style-dictionary-config.js +80 -0
  84. package/theme.css +51 -39
@@ -0,0 +1,13 @@
1
+ {
2
+ "utrecht": {
3
+ "icon": {
4
+ "color": {},
5
+ "gap": { "value": "{xxllnc.size.xs}" },
6
+ "size": {},
7
+ "inset-block-start": {},
8
+ "baseline": {
9
+ "inset-block-start": {}
10
+ }
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "utrecht": {
3
+ "link": {
4
+ "color": { "value": "{xxllnc.color.primary}" },
5
+ "text-decoration": { "value": "none" },
6
+ "text-decoration-color": { "value": "unset" },
7
+ "text-decoration-thickness": { "value": 0 },
8
+ "text-underline-offset": { "value": "{xxllnc.size.3xs}" },
9
+ "active": {
10
+ "color": {}
11
+ },
12
+ "focus": {
13
+ "color": {},
14
+ "text-decoration": {},
15
+ "text-decoration-thickness": {}
16
+ },
17
+ "hover": {
18
+ "color": { "value": "{xxllnc.color.primary-hover}" },
19
+ "text-decoration": { "value": "none" },
20
+ "text-decoration-thickness": { "value": 0 }
21
+ },
22
+ "placeholder": {
23
+ "color": {}
24
+ },
25
+ "visited": {
26
+ "color": { "value": "{xxllnc.color.primary}" }
27
+ },
28
+ "icon": {
29
+ "size": { "value": "{xxllnc.size.md}" }
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "utrecht": {
3
+ "ordered-list": {
4
+ "font-size": { "value": "{utrecht.document.font-size}" },
5
+ "line-height": {},
6
+ "margin-block-start": { "value": "{xxllnc.size.sm}" },
7
+ "margin-block-end": { "value": "{xxllnc.size.sm}" },
8
+ "padding-inline-start": { "value": "{xxllnc.size.xl}" },
9
+ "item": {
10
+ "margin-block-start": { "value": "{xxllnc.size.2xs}" },
11
+ "margin-block-end": { "value": "{xxllnc.size.2xs}" },
12
+ "padding-inline-start": { "value": "1ch" }
13
+ }
14
+ },
15
+
16
+ "unordered-list": {
17
+ "font-size": { "value": "{utrecht.document.font-size}" },
18
+ "line-height": {},
19
+ "margin-block-start": { "value": "{xxllnc.size.md}" },
20
+ "margin-block-end": { "value": 0 },
21
+ "padding-inline-start": { "value": "2ch" },
22
+ "item": {
23
+ "margin-block-start": { "value": "{xxllnc.size.xs}" },
24
+ "margin-block-end": { "value": "{xxllnc.size.xs}" },
25
+ "padding-inline-start": { "value": "1ch" }
26
+ },
27
+ "marker": {
28
+ "color": { "value": "{xxllnc.color.primary}" }
29
+ }
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "utrecht": {
3
+ "page-header": {
4
+ "background-color": { "value": "{xxllnc.color.grey.92}" },
5
+ "color": { "value": "{xxllnc.color.black.16}" },
6
+ "padding-block-start": { "value": "{xxllnc.size.sm}" },
7
+ "padding-block-end": { "value": "{xxllnc.size.sm}" }
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "utrecht": {
3
+ "page": {
4
+ "background-color": {},
5
+ "color": {},
6
+ "padding-inline-start": { "value": "{xxllnc.size.lg}" },
7
+ "padding-inline-end": { "value": "{xxllnc.size.lg}" },
8
+ "max-inline-size": { "value": "1140px" }
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "utrecht": {
3
+ "paragraph": {
4
+ "color": { "value": "{utrecht.document.color}" },
5
+ "font-family": { "value": "{xxllnc.typography.sans-serif.font-family}" },
6
+ "font-size": { "value": "{xxllnc.font-size.md}" },
7
+ "font-weight": { "value": "{xxllnc.typography.font-weight.normal}" },
8
+ "line-height": { "value": "1.5em" },
9
+ "margin-block-start": {},
10
+ "margin-block-end": {},
11
+ "lead": {
12
+ "color": {},
13
+ "font-size": {},
14
+ "font-weight": {},
15
+ "line-height": {}
16
+ },
17
+ "small": {
18
+ "color": {},
19
+ "font-size": {},
20
+ "font-weight": {},
21
+ "line-height": {}
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "utrecht": {
3
+ "table": {
4
+ "border-color": { "value": "{xxllnc.color.lightgrey}" },
5
+ "border-width": { "value": "{xxllnc.size.4xs}" },
6
+ "font-family": { "value": "{utrecht.document.font-family}" },
7
+ "font-size": { "value": "{utrecht.document.font-size}" },
8
+ "line-height": {},
9
+ "margin-block-end": { "value": 0 },
10
+ "margin-block-start": { "value": "{xxllnc.size.md}" },
11
+ "caption": {
12
+ "font-weight": {},
13
+ "font-family": {},
14
+ "font-size": {},
15
+ "color": {},
16
+ "line-height": {},
17
+ "text-align": {},
18
+ "margin-block-end": {}
19
+ },
20
+ "header": {
21
+ "font-weight": { "value": "{xxllnc.typography.font-weight.bold}" },
22
+ "background-color": {},
23
+ "color": { "value": "{utrecht.document.color}" },
24
+ "text-transform": { "value": "unset" },
25
+ "border-block-end-color": {},
26
+ "border-block-end-width": {}
27
+ },
28
+ "header-cell": {
29
+ "font-size": { "value": "{utrecht.document.font-size}" },
30
+ "font-weight": { "value": "{xxllnc.typography.font-weight.bold}" },
31
+ "color": { "value": "{utrecht.document.color}" },
32
+ "text-transform": { "value": "unset" }
33
+ },
34
+ "cell": {
35
+ "line-height": {},
36
+ "padding-block-end": { "value": "{xxllnc.size.md}" },
37
+ "padding-block-start": { "value": "{xxllnc.size.md}" },
38
+ "padding-inline-end": { "value": "{xxllnc.size.md}" },
39
+ "padding-inline-start": { "value": "{xxllnc.size.md}" },
40
+ "icon": {
41
+ "size": {}
42
+ }
43
+ },
44
+ "row": {
45
+ "border-block-end-color": { "value": "{xxllnc.color.lightgrey}" },
46
+ "border-block-end-width": { "value": "{xxllnc.size.4xs}" },
47
+ "padding-inline-end": {},
48
+ "padding-inline-start": {},
49
+ "alternate-odd": {
50
+ "background-color": {},
51
+ "color": {}
52
+ },
53
+ "alternate-even": {
54
+ "background-color": {},
55
+ "color": {}
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "utrecht": {
3
+ "textbox": {
4
+ "background-color": { "value": "{xxllnc.color.white.100-0t}" },
5
+ "border-bottom-width": {},
6
+ "border-color": { "value": "{xxllnc.color.black.0-22t}" },
7
+ "border-radius": { "value": "6px" },
8
+ "border-width": { "value": "{xxllnc.size.4xs}" },
9
+ "color": { "value": "{xxllnc.color.grey.43}" },
10
+ "font-family": { "value": "{xxllnc.typography.sans-serif.font-family}" },
11
+ "font-size": { "value": "15px" },
12
+ "line-height": {},
13
+ "max-inline-size": {},
14
+ "padding-block-end": { "value": "{xxllnc.size.xs}" },
15
+ "padding-block-start": { "value": "{xxllnc.size.xs}" },
16
+ "padding-inline-end": { "value": "{xxllnc.size.sm}" },
17
+ "padding-inline-start": { "value": "{xxllnc.size.sm}" },
18
+ "placeholder": {
19
+ "color": { "value": "{xxllnc.color.grey.43}" }
20
+ },
21
+ "disabled": {
22
+ "background-color": {},
23
+ "border-color": {},
24
+ "color": {}
25
+ },
26
+ "focus": {
27
+ "background-color": {},
28
+ "border-color": {},
29
+ "color": {}
30
+ },
31
+ "invalid": {
32
+ "background-color": {},
33
+ "border-color": {},
34
+ "border-width": {},
35
+ "color": {}
36
+ },
37
+ "read-only": {
38
+ "background-color": {},
39
+ "border-color": {},
40
+ "color": {}
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "fullName": "xxllnc",
3
+ "name": "xxllnc",
4
+ "prefix": "xxllnc",
5
+ "npm": "@conduction/xxllnc-design-tokens",
6
+ "stories": ["react-utrecht-link--default"]
7
+ }
@@ -0,0 +1 @@
1
+ /* Place any @font-face definitions here */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license SEE LICENSE.md
3
+ * Copyright (c) 2021 NL Design System Community
4
+ * All rights reserved
5
+ */
6
+
7
+ @import "./design-tokens.css";
8
+
9
+ /* stylelint-disable block-no-empty */
10
+ .example-theme {
11
+ }
@@ -0,0 +1,6 @@
1
+ const config = require('./src/config.json');
2
+ const { createConfig } = require('../../style-dictionary-config');
3
+
4
+ module.exports = createConfig({
5
+ selector: `.${config.prefix}-theme`,
6
+ });
@@ -21,7 +21,7 @@
21
21
  --xxllnc-font-size-2xs: 10px;
22
22
  --xxllnc-font-size-xs: 12px;
23
23
  --xxllnc-font-size-sm: 14px;
24
- --xxllnc-font-size-md: 18px;
24
+ --xxllnc-font-size-md: 16px;
25
25
  --xxllnc-font-size-lg: 20px;
26
26
  --xxllnc-font-size-xl: 24px;
27
27
  --xxllnc-font-size-2xl: 32px;
@@ -29,9 +29,9 @@
29
29
  --xxllnc-font-size-4xl: 58px;
30
30
 
31
31
  /* Font weights */
32
- --xxllnc-font-weight-light: 100;
33
- --xxllnc-font-weight-normal: 400;
34
- --xxllnc-font-weight-bold: 700;
32
+ --xxllnc-typography-font-weight-light: 100;
33
+ --xxllnc-typography-font-weight-normal: 400;
34
+ --xxllnc-typography-font-weight-bold: 700;
35
35
 
36
36
  /* Letter Spacing */
37
37
  --xxllnc-letter-spacing-normal: normal;
@@ -53,31 +53,31 @@
53
53
  --xxllnc-color-alert-success-background: #d4edda;
54
54
 
55
55
  --xxllnc-color-info: var(--xxllnc-color-primary);
56
- --xxllnc-color-alert-info: var(--xxllnc-color-black);
57
- --xxllnc-color-alert-info-background: var(--xxllnc-color-grey);
56
+ --xxllnc-color-alert-info: var(--xxllnc-color-black-16);
57
+ --xxllnc-color-alert-info-background: var(--xxllnc-color-grey-92);
58
58
 
59
- --xxllnc-color-grey: #eaeaea;
60
- --xxllnc-color-grey-95: #e5e5e5;
61
- --xxllnc-color-grey-95-hover: #e5e5e5cc;
59
+ --xxllnc-color-grey-92: #eaeaea;
60
+ --xxllnc-color-grey-90: #e5e5e5;
61
+ --xxllnc-color-grey-90-hover: #e5e5e5cc;
62
62
  --xxllnc-color-grey-43: #6d6d6d;
63
63
 
64
64
  --xxllnc-color-lightgrey: #f5f5f5;
65
65
 
66
- --xxllnc-color-white: #ffffff;
66
+ --xxllnc-color-white-100: #ffffff;
67
67
  --xxllnc-color-white-95: #f1f1f1;
68
- --xxllnc-color-white-100: #ffffff00;
68
+ --xxllnc-color-white-100-0t: #ffffff00;
69
69
 
70
- --xxllnc-color-black: #28282c;
71
- --xxllnc-color-black-15: #2b2b2b;
72
- --xxllnc-color-black-15-hover: #2b2b2bcc;
70
+ --xxllnc-color-black-16: #28282c;
71
+ --xxllnc-color-black-17: #2b2b2b;
72
+ --xxllnc-color-black-17-hover: #2b2b2bcc;
73
73
  --xxllnc-color-black-21: #333338;
74
- --xxllnc-color-black-38: #00000038;
74
+ --xxllnc-color-black-0-22t: #00000038;
75
75
 
76
76
  /* Typography */
77
77
  --xxllnc-typography-sans-serif-font-family: neue-haas-grotesk-text, sans-serif;
78
78
  --xxllnc-typography-header-font-family: neue-haas-grotesk-text, sans-serif;
79
- --xxllnc-typography-code-font-family: Monospace, "Lucida Console";
80
- --xxllnc-typography-button-font-family: "Inter", sans-serif;
79
+ --xxllnc-typography-monospace-font-family: Monospace, "Lucida Console";
80
+ --xxllnc-typography-inter-font-family: "Inter", sans-serif;
81
81
 
82
82
  /*
83
83
  *
@@ -130,9 +130,9 @@
130
130
  --utrecht-document-font-family: var(
131
131
  --xxllnc-typography-sans-serif-font-family
132
132
  );
133
- --utrecht-document-font-size: var(--xxllnc-font-size-sm);
134
- --utrecht-document-color: var(--xxllnc-color-black);
135
- --utrecht-document-background-color: var(--xxllnc-color-white);
133
+ --utrecht-document-font-size: var(--xxllnc-font-size-md);
134
+ --utrecht-document-color: var(--xxllnc-color-black-16);
135
+ --utrecht-document-background-color: var(--xxllnc-color-white-100);
136
136
  --utrecht-space-around: 1;
137
137
 
138
138
  /* Typography */
@@ -141,8 +141,8 @@
141
141
  );
142
142
 
143
143
  /* Header */
144
- --utrecht-page-header-color: var(--xxllnc-color-black);
145
- --utrecht-page-header-background-color: var(--xxllnc-color-grey);
144
+ --utrecht-page-header-color: var(--xxllnc-color-black-16);
145
+ --utrecht-page-header-background-color: var(--xxllnc-color-grey-92);
146
146
  --utrecht-page-header-padding-block-start: var(--xxllnc-size-sm);
147
147
  --utrecht-page-header-padding-block-end: var(--xxllnc-size-sm);
148
148
 
@@ -150,25 +150,25 @@
150
150
  --utrecht-page-padding-inline-start: var(--xxllnc-size-lg);
151
151
  --utrecht-page-padding-inline-end: var(--xxllnc-size-lg);
152
152
  --utrecht-page-max-inline-size: 1140px;
153
- --utrecht-page-content-background-color: var(--xxllnc-color-black);
153
+ --utrecht-page-content-background-color: var(--xxllnc-color-black-16);
154
154
 
155
155
  /* Headings */
156
156
  --utrecht-heading-1-font-family: var(--xxllnc-typography-header-font-family);
157
157
  --utrecht-heading-1-font-size: var(--xxllnc-font-size-3xl);
158
- --utrecht-heading-1-font-weight: var(--xxllnc-font-weight-normal);
158
+ --utrecht-heading-1-font-weight: var(--xxllnc-typography-font-weight-normal);
159
159
  --utrecht-heading-1-letter-spacing: var(--xxllnc-letter-spacing-normal);
160
160
  --utrecht-heading-1-margin-block-start: var(--xxllnc-size-2xl);
161
161
  --utrecht-heading-1-margin-block-end: var(--xxllnc-size-md);
162
162
 
163
163
  --utrecht-heading-2-font-family: var(--xxllnc-typography-header-font-family);
164
- --utrecht-heading-2-font-weight: var(--xxllnc-font-weight-normal);
164
+ --utrecht-heading-2-font-weight: var(--xxllnc-typography-font-weight-normal);
165
165
  --utrecht-heading-2-font-size: var(--xxllnc-font-size-2xl);
166
166
  --utrecht-heading-2-letter-spacing: var(--xxllnc-letter-spacing-normal);
167
167
  --utrecht-heading-2-margin-block-start: var(--xxllnc-size-2xl);
168
168
  --utrecht-heading-2-margin-block-end: var(--xxllnc-size-md);
169
169
 
170
170
  --utrecht-heading-3-font-family: var(--xxllnc-typography-header-font-family);
171
- --utrecht-heading-3-font-weight: var(--xxllnc-font-weight-normal);
171
+ --utrecht-heading-3-font-weight: var(--xxllnc-typography-font-weight-normal);
172
172
  --utrecht-heading-3-font-size: var(--xxllnc-font-size-xl);
173
173
  --utrecht-heading-3-letter-spacing: var(--xxllnc-letter-spacing-normal);
174
174
  --utrecht-heading-3-margin-block-start: var(--xxllnc-size-xl);
@@ -176,14 +176,14 @@
176
176
 
177
177
  --utrecht-heading-4-font-family: var(--xxllnc-typography-header-font-family);
178
178
  --utrecht-heading-4-font-size: var(--xxllnc-font-size-lg);
179
- --utrecht-heading-4-font-weight: var(--xxllnc-font-weight-normal);
179
+ --utrecht-heading-4-font-weight: var(--xxllnc-typography-font-weight-normal);
180
180
  --utrecht-heading-4-letter-spacing: var(--xxllnc-letter-spacing-normal);
181
- --utrecht-heading-4-margin-block-start: var(--xxllnc-size-lf);
181
+ --utrecht-heading-4-margin-block-start: var(--xxllnc-size-lg);
182
182
  --utrecht-heading-4-margin-block-end: var(--xxllnc-size-md);
183
183
 
184
184
  --utrecht-heading-5-font-family: var(--xxllnc-typography-header-font-family);
185
185
  --utrecht-heading-5-font-size: var(--xxllnc-font-size-md);
186
- --utrecht-heading-5-font-weight: var(--xxllnc-font-weight-light);
186
+ --utrecht-heading-5-font-weight: var(--xxllnc-typography-font-weight-light);
187
187
  --utrecht-heading-5-letter-spacing: var(--xxllnc-letter-spacing-normal);
188
188
  --utrecht-heading-5-text-transform: unset;
189
189
  --utrecht-heading-5-margin-block-start: var(--xxllnc-size-lg);
@@ -194,15 +194,15 @@
194
194
  --utrecht-paragraph-font-family: var(
195
195
  --xxllnc-typography-sans-serif-font-family
196
196
  );
197
- --utrecht-paragraph-font-size: var(--xxllnc-font-size-sm);
198
- --utrecht-paragraph-font-weight: var(--xxllnc-font-weight-normal);
197
+ --utrecht-paragraph-font-size: var(--xxllnc-font-size-md);
198
+ --utrecht-paragraph-font-weight: var(--xxllnc-typography-font-weight-normal);
199
199
  --utrecht-paragraph-line-height: 1.5;
200
200
  --utrecht-paragraph-margin-block-start: 0;
201
201
  --utrecht-paragraph-margin-block-end: 0;
202
202
 
203
203
  /* Footer */
204
204
  --utrecht-page-footer-color: var(--xxllnc-color-primary);
205
- --utrecht-page-footer-background-color: var(--xxllnc-color-white);
205
+ --utrecht-page-footer-background-color: var(--xxllnc-color-white-100);
206
206
  --utrecht-page-footer-background-image: unset;
207
207
  --utrecht-page-footer-padding-block-start: var(--xxllnc-size-2xl);
208
208
  --utrecht-page-footer-padding-block-end: var(--xxllnc-size-2xl);
@@ -242,22 +242,24 @@
242
242
  /* --utrecht-link-hover-text-decoration-thickness: <size>; */
243
243
 
244
244
  /* Blockquote */
245
- --utrecht-blockquote-content-color: var(--xxllnc-color-black);
245
+ --utrecht-blockquote-content-color: var(--xxllnc-color-black-16);
246
246
  --utrecht-blockquote-content-font-size: var(--xxllnc-size-md);
247
247
  --utrecht-blockquote-margin-inline-start: var(--xxllnc-size-xl);
248
248
  --utrecht-blockquote-margin-inline-end: var(--xxllnc-size-xl);
249
249
 
250
250
  /* Code */
251
- --utrecht-code-color: var(--xxllnc-color-black);
251
+ --utrecht-code-color: var(--xxllnc-color-black-16);
252
252
  --utrecht-code-background-color: var(--xxllnc-color-lightgrey);
253
- --utrecht-code-font-family: var(--xxllnc-typography-code-font-family);
253
+ --utrecht-code-font-family: var(--xxllnc-typography-monospace-font-family);
254
254
  --utrecht-code-font-size: inherit;
255
255
 
256
- --utrecht-code-block-color: var(--xxllnc-color-black);
256
+ --utrecht-code-block-color: var(--xxllnc-color-black-16);
257
257
  --utrecht-code-block-background-color: var(--xxllnc-color-lightgrey);
258
- --utrecht-code-block-font-family: var(--xxllnc-typography-code-font-family);
259
- --utrecht-code-block-font-size: var(--xxllnc-font-size-sm);
260
- --utrecht-code-block-font-weight: var(--xxllnc-font-weight-normal);
258
+ --utrecht-code-block-font-family: var(
259
+ --xxllnc-typography-monospace-font-family
260
+ );
261
+ --utrecht-code-block-font-size: var(--xxllnc-font-size-md);
262
+ --utrecht-code-block-font-weight: var(--xxllnc-typography-font-weight-normal);
261
263
  --utrecht-code-block-line-height: var(--xxllnc-size-lg);
262
264
  --utrecht-code-block-margin-block-start: var(--xxllnc-size-md);
263
265
  --utrecht-code-block-margin-block-end: var(--xxllnc-size-md);
@@ -280,11 +282,14 @@
280
282
  --utrecht-table-margin-block-end: 0;
281
283
 
282
284
  --utrecht-table-header-color: var(--utrecht-document-color) inherit;
283
- --utrecht-table-header-font-weight: var(--xxllnc-font-weight-bold);
285
+ --utrecht-table-header-font-weight: var(--xxllnc-typography-font-weight-bold);
284
286
  --utrecht-table-header-text-transform: unset;
285
287
 
286
- --utrecht-table-header-cell-font-size: var(--utrecht-document-font-size) inherit;
287
- --utrecht-table-header-cell-font-weight: var(--xxllnc-font-weight-bold);
288
+ --utrecht-table-header-cell-font-size: var(--utrecht-document-font-size)
289
+ inherit;
290
+ --utrecht-table-header-cell-font-weight: var(
291
+ --xxllnc-typography-font-weight-bold
292
+ );
288
293
  --utrecht-table-header-cell-text-transform: unset;
289
294
 
290
295
  --utrecht-table-row-border-block-end-color: var(--xxllnc-color-lightgrey);
@@ -330,16 +335,16 @@
330
335
  --utrecht-icon-gap: var(--xxllnc-size-xs);
331
336
 
332
337
  /* Button */
333
- --utrecht-button-color: var(--xxllnc-color-grey-95);
334
- --utrecht-button-background-color: var(--xxllnc-color-black-15);
338
+ --utrecht-button-color: var(--xxllnc-color-grey-90);
339
+ --utrecht-button-background-color: var(--xxllnc-color-black-17);
335
340
 
336
341
  --utrecht-button-icon-gap: var(--xxllnc-size-xs);
337
342
  /* --utrecht-button-border-color: <color>; */
338
343
  --utrecht-button-border-width: 0;
339
- --utrecht-button-border-radius: var(--xxllnc-size-xs);
344
+ --utrecht-button-border-radius: "16px";
340
345
  /* --utrecht-button-border-bottom-width: <length>; */
341
346
 
342
- --utrecht-button-font-family: var(--xxllnc-typography-button-font-family);
347
+ --utrecht-button-font-family: var(--xxllnc-typography-inter-font-family);
343
348
  --utrecht-button-font-size: inherit;
344
349
  --utrecht-button-font-weight: inherit;
345
350
 
@@ -361,21 +366,25 @@
361
366
  /* --utrecht-button-focus-border-color: <color>; */
362
367
  /* --utrecht-button-focus-color: <color>; */
363
368
 
364
- --utrecht-button-hover-background-color: var(--xxllnc-color-black-15-hover);
365
- --utrecht-button-hover-color: var(--xxllnc-color-grey-95-hover);
369
+ --utrecht-button-hover-background-color: var(--xxllnc-color-black-17-hover);
370
+ --utrecht-button-hover-color: var(--xxllnc-color-grey-90-hover);
366
371
  /* --utrecht-button-hover-border-color: unset; */
367
372
  /* --utrecht-button-focus-transform-scale: unset; */
368
373
 
369
- --utrecht-button-secondary-action-background-color: var(--xxllnc-color-white);
370
- --utrecht-button-secondary-action-border-color: var(--xxllnc-color-black-15);
374
+ --utrecht-button-secondary-action-background-color: var(
375
+ --xxllnc-color-white-100
376
+ );
377
+ --utrecht-button-secondary-action-border-color: var(--xxllnc-color-black-17);
371
378
  --utrecht-button-secondary-action-border-width: 2px;
372
- --utrecht-button-secondary-action-color: var(--xxllnc-color-black-15);
373
- --utrecht-button-secondary-action-font-weight: var(--xxllnc-font-weight-normal);
379
+ --utrecht-button-secondary-action-color: var(--xxllnc-color-black-17);
380
+ --utrecht-button-secondary-action-font-weight: var(
381
+ --xxllnc-typography-font-weight-normal
382
+ );
374
383
 
375
384
  /* InputField */
376
- --utrecht-form-input-background-color: var(--xxllnc-color-white-100);
385
+ --utrecht-form-input-background-color: var(--xxllnc-color-white-100-0t);
377
386
  --utrecht-form-input-border-width: var(--xxllnc-size-4xs);
378
- --utrecht-form-input-border-color: var(--xxllnc-color-black-38);
387
+ --utrecht-form-input-border-color: var(--xxllnc-color-black-0-22t);
379
388
  --utrecht-form-input-border-radius: 6px;
380
389
  --utrecht-form-input-color: var(--xxllnc-color-grey-43);
381
390
  --utrecht-form-input-font-family: var(
@@ -389,10 +398,10 @@
389
398
  --utrecht-form-input-padding-inline-start: var(--xxllnc-size-sm);
390
399
 
391
400
  /* InputField-TextField */
392
- --utrecht-textbox-background-color: var(--xxllnc-color-white-100);
401
+ --utrecht-textbox-background-color: var(--xxllnc-color-white-100-0t);
393
402
  --utrecht-textbox-border-width: var(--xxllnc-size-4xs);
394
403
  /* --utrecht-textbox-border-bottom-width: ; */
395
- --utrecht-textbox-border-color: var(--xxllnc-color-black-38);
404
+ --utrecht-textbox-border-color: var(--xxllnc-color-black-0-22t);
396
405
  --utrecht-textbox-border-radius: 6px;
397
406
  --utrecht-textbox-color: var(--xxllnc-color-grey-43);
398
407
  --utrecht-textbox-font-family: var(
@@ -416,9 +425,11 @@
416
425
  /* Input select single */
417
426
  --conduction-input-select-padding-block-start: 0;
418
427
  --conduction-input-select-padding-block-end: 0;
419
- --conduction-input-select-border-radius: var(--utrecht-form-input-border-radius);
420
- --conduction-input-select-background-color: var(--xxllnce-color-white);
421
- --conduction-input-select-border: 1px solid var(--xxllnc-color-grey);
428
+ --conduction-input-select-border-radius: var(
429
+ --utrecht-form-input-border-radius
430
+ );
431
+ --conduction-input-select-background-color: var(--xxllnc-color-white-100);
432
+ --conduction-input-select-border: 1px solid var(--xxllnc-color-grey-92);
422
433
  --conduction-input-select-border-focus: unset;
423
434
  --conduction-input-select-invalid-border-color: var(--xxllnc-color-error);
424
435
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/theme",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Conduction's design tokens theme",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -0,0 +1,80 @@
1
+ const stringSort = (a, b) => (a === b ? 0 : a > b ? 1 : -1);
2
+
3
+ const sortByName = (a, b) => stringSort(a.name, b.name);
4
+
5
+ const createConfig = ({ selector, source = ['src/**/*.tokens.json'] }) => ({
6
+ format: {
7
+ 'json/list': function ({ dictionary }) {
8
+ return JSON.stringify(dictionary.allTokens.sort(sortByName), null, ' ');
9
+ },
10
+ },
11
+ source,
12
+ platforms: {
13
+ js: {
14
+ transforms: ['attribute/cti', 'name/cti/camel', 'color/hsl-4'],
15
+ buildPath: 'dist/',
16
+ files: [
17
+ {
18
+ destination: 'index.js',
19
+ format: 'javascript/es6',
20
+ },
21
+ ],
22
+ },
23
+ json: {
24
+ transforms: ['attribute/cti', 'name/cti/camel', 'color/hsl-4'],
25
+ buildPath: 'dist/',
26
+ files: [
27
+ {
28
+ destination: 'tokens.json',
29
+ format: 'json',
30
+ },
31
+ {
32
+ destination: 'index.json',
33
+ format: 'json/list',
34
+ },
35
+ ],
36
+ },
37
+ css: {
38
+ transforms: ['attribute/cti', 'name/cti/kebab', 'color/hsl-4'],
39
+ buildPath: 'dist/',
40
+ files: [
41
+ {
42
+ destination: 'design-tokens.css',
43
+ format: 'css/variables',
44
+ options: {
45
+ selector,
46
+ outputReferences: true,
47
+ },
48
+ },
49
+ ],
50
+ },
51
+ scss: {
52
+ transforms: ['attribute/cti', 'name/cti/kebab', 'color/hsl-4'],
53
+ buildPath: 'dist/',
54
+ files: [
55
+ {
56
+ destination: 'index.scss',
57
+ format: 'scss/variables',
58
+ options: {
59
+ outputReferences: true,
60
+ },
61
+ },
62
+ ],
63
+ },
64
+ less: {
65
+ transforms: ['attribute/cti', 'name/cti/kebab', 'color/hsl-4'],
66
+ buildPath: 'dist/',
67
+ files: [
68
+ {
69
+ destination: 'index.less',
70
+ format: 'less/variables',
71
+ options: {
72
+ outputReferences: true,
73
+ },
74
+ },
75
+ ],
76
+ },
77
+ },
78
+ });
79
+
80
+ module.exports = { createConfig };