@entur/tokens 3.13.2 → 3.13.4

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
@@ -51,11 +51,11 @@ Please refer to the design system documentation for which ones are available.
51
51
  To use the LESS or SCSS files, import it into your LESS or SCSS file. The method is the same:
52
52
 
53
53
  ```less
54
- @import '~@entur/tokens/dist/styles.less';
54
+ @import '@entur/tokens/dist/styles.less';
55
55
  ```
56
56
 
57
57
  ```scss
58
- @import '~@entur/tokens/dist/styles.scss';
58
+ @import '@entur/tokens/dist/styles.scss';
59
59
  ```
60
60
 
61
61
  You'll then be able to use the variables in your code as usual.
package/dist/base.css CHANGED
@@ -1,4 +1,6 @@
1
- @import '~@entur/tokens/dist/semantic.css';
1
+ @import '@entur/tokens/dist/semantic.css';
2
+ @import '@entur/tokens/dist/transport.css';
3
+
2
4
  /* DO NOT CHANGE!*/
3
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
4
6
  [data-color-mode='light'],
@@ -131,3 +133,5 @@
131
133
  --basecolors-text-subdued: var(--text-darkalt);
132
134
  --basecolors-text-subduedalt: var(--text-darkalt);
133
135
  }
136
+
137
+
package/dist/base.scss CHANGED
@@ -1,133 +1,137 @@
1
- @use '~@entur/tokens/dist/semantic.scss';
1
+ @use '@entur/tokens/dist/semantic.scss' as *;
2
+ @use '@entur/tokens/dist/transport.scss' as *;
3
+
2
4
  /* DO NOT CHANGE!*/
3
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
4
6
  [data-color-mode='light'],
5
7
  :root {
6
- $basecolors-frame-contrast: $fill-background-contrast-light;
7
- $basecolors-frame-contrastalt: $fill-background-contrast-lightalt;
8
- $basecolors-frame-default: $fill-background-standard-light;
9
- $basecolors-frame-elevated: $fill-background-standard-light;
10
- $basecolors-frame-elevatedalt: $fill-background-tint-light;
11
- $basecolors-frame-subdued: $fill-background-subdued-light;
12
- $basecolors-frame-tint: $fill-background-tint-light;
13
- $basecolors-shape-accent: $shape-accent;
14
- $basecolors-shape-bicycle-contrast: $contrast-bicycle;
15
- $basecolors-shape-bicycle-default: $standard-bicycle;
16
- $basecolors-shape-bus-contrast: $contrast-bus;
17
- $basecolors-shape-bus-default: $standard-bus;
18
- $basecolors-shape-cableway-contrast: $contrast-cableway;
19
- $basecolors-shape-cableway-default: $standard-cableway;
20
- $basecolors-shape-disabled: $shape-neutral;
21
- $basecolors-shape-disabledalt: $shape-neutralalt;
22
- $basecolors-shape-ferry-contrast: $contrast-ferry;
23
- $basecolors-shape-ferry-default: $standard-ferry;
24
- $basecolors-shape-funicular-contrast: $contrast-funicular;
25
- $basecolors-shape-funicular-default: $standard-funicular;
26
- $basecolors-shape-helicopter-contrast: $contrast-helicopter;
27
- $basecolors-shape-helicopter-default: $standard-helicopter;
28
- $basecolors-shape-highlight: $stroke-highlight;
29
- $basecolors-shape-light: $shape-light;
30
- $basecolors-shape-mask: $shape-light;
31
- $basecolors-shape-maskalt: $shape-light;
32
- $basecolors-shape-metro-contrast: $contrast-metro;
33
- $basecolors-shape-metro-default: $standard-metro;
34
- $basecolors-shape-mobility-contrast: $contrast-mobility;
35
- $basecolors-shape-mobility-default: $standard-mobility;
36
- $basecolors-shape-plane-contrast: $contrast-plane;
37
- $basecolors-shape-plane-default: $standard-plane;
38
- $basecolors-shape-subdued: $shape-subdued;
39
- $basecolors-shape-subduedalt: $shape-subduedalt;
40
- $basecolors-shape-taxi-contrast: $contrast-taxi;
41
- $basecolors-shape-taxi-default: $standard-taxi;
42
- $basecolors-shape-train-contrast: $contrast-train;
43
- $basecolors-shape-train-default: $standard-train;
44
- $basecolors-shape-tram-contrast: $contrast-tram;
45
- $basecolors-shape-tram-default: $standard-tram;
46
- $basecolors-shape-walk-contrast: $contrast-walk;
47
- $basecolors-shape-walk-default: $standard-walk;
48
- $basecolors-shape-airportlinkbus-contrast: $contrast-airportlinkbus;
49
- $basecolors-shape-airportlinkbus-default: $standard-airportlinkbus;
50
- $basecolors-shape-airportlinkrail-contrast: $contrast-airportlinkrail;
51
- $basecolors-shape-airportlinkrail-default: $standard-airportlinkrail;
52
- $basecolors-stroke-contrast: $stroke-contrast;
53
- $basecolors-stroke-default: $stroke-accent;
54
- $basecolors-stroke-disabled: $stroke-neutralalt;
55
- $basecolors-stroke-focus-contrast: $stroke-contrast;
56
- $basecolors-stroke-focus-standard: $stroke-accent;
57
- $basecolors-stroke-highlight: $stroke-highlight;
58
- $basecolors-stroke-light: $stroke-light;
59
- $basecolors-stroke-subdued: $stroke-subdued;
60
- $basecolors-stroke-subduedalt: $stroke-neutral;
61
- $basecolors-text-accent: $text-accent;
62
- $basecolors-text-disabled: $text-neutral;
63
- $basecolors-text-disabledalt: $text-neutralalt;
64
- $basecolors-text-highlight: $stroke-highlight;
65
- $basecolors-text-light: $text-light;
66
- $basecolors-text-subdued: $text-subdued;
67
- $basecolors-text-subduedalt: $text-subduedalt;
8
+ --basecolors-frame-contrast: #{$fill-background-contrast-light};
9
+ --basecolors-frame-contrastalt: #{$fill-background-contrast-lightalt};
10
+ --basecolors-frame-default: #{$fill-background-standard-light};
11
+ --basecolors-frame-elevated: #{$fill-background-standard-light};
12
+ --basecolors-frame-elevatedalt: #{$fill-background-tint-light};
13
+ --basecolors-frame-subdued: #{$fill-background-subdued-light};
14
+ --basecolors-frame-tint: #{$fill-background-tint-light};
15
+ --basecolors-shape-accent: #{$shape-accent};
16
+ --basecolors-shape-bicycle-contrast: #{$contrast-bicycle};
17
+ --basecolors-shape-bicycle-default: #{$standard-bicycle};
18
+ --basecolors-shape-bus-contrast: #{$contrast-bus};
19
+ --basecolors-shape-bus-default: #{$standard-bus};
20
+ --basecolors-shape-cableway-contrast: #{$contrast-cableway};
21
+ --basecolors-shape-cableway-default: #{$standard-cableway};
22
+ --basecolors-shape-disabled: #{$shape-neutral};
23
+ --basecolors-shape-disabledalt: #{$shape-neutralalt};
24
+ --basecolors-shape-ferry-contrast: #{$contrast-ferry};
25
+ --basecolors-shape-ferry-default: #{$standard-ferry};
26
+ --basecolors-shape-funicular-contrast: #{$contrast-funicular};
27
+ --basecolors-shape-funicular-default: #{$standard-funicular};
28
+ --basecolors-shape-helicopter-contrast: #{$contrast-helicopter};
29
+ --basecolors-shape-helicopter-default: #{$standard-helicopter};
30
+ --basecolors-shape-highlight: #{$stroke-highlight};
31
+ --basecolors-shape-light: #{$shape-light};
32
+ --basecolors-shape-mask: #{$shape-light};
33
+ --basecolors-shape-maskalt: #{$shape-light};
34
+ --basecolors-shape-metro-contrast: #{$contrast-metro};
35
+ --basecolors-shape-metro-default: #{$standard-metro};
36
+ --basecolors-shape-mobility-contrast: #{$contrast-mobility};
37
+ --basecolors-shape-mobility-default: #{$standard-mobility};
38
+ --basecolors-shape-plane-contrast: #{$contrast-plane};
39
+ --basecolors-shape-plane-default: #{$standard-plane};
40
+ --basecolors-shape-subdued: #{$shape-subdued};
41
+ --basecolors-shape-subduedalt: #{$shape-subduedalt};
42
+ --basecolors-shape-taxi-contrast: #{$contrast-taxi};
43
+ --basecolors-shape-taxi-default: #{$standard-taxi};
44
+ --basecolors-shape-train-contrast: #{$contrast-train};
45
+ --basecolors-shape-train-default: #{$standard-train};
46
+ --basecolors-shape-tram-contrast: #{$contrast-tram};
47
+ --basecolors-shape-tram-default: #{$standard-tram};
48
+ --basecolors-shape-walk-contrast: #{$contrast-walk};
49
+ --basecolors-shape-walk-default: #{$standard-walk};
50
+ --basecolors-shape-airportlinkbus-contrast: #{$contrast-airportlinkbus};
51
+ --basecolors-shape-airportlinkbus-default: #{$standard-airportlinkbus};
52
+ --basecolors-shape-airportlinkrail-contrast: #{$contrast-airportlinkrail};
53
+ --basecolors-shape-airportlinkrail-default: #{$standard-airportlinkrail};
54
+ --basecolors-stroke-contrast: #{$stroke-contrast};
55
+ --basecolors-stroke-default: #{$stroke-accent};
56
+ --basecolors-stroke-disabled: #{$stroke-neutralalt};
57
+ --basecolors-stroke-focus-contrast: #{$stroke-contrast};
58
+ --basecolors-stroke-focus-standard: #{$stroke-accent};
59
+ --basecolors-stroke-highlight: #{$stroke-highlight};
60
+ --basecolors-stroke-light: #{$stroke-light};
61
+ --basecolors-stroke-subdued: #{$stroke-subdued};
62
+ --basecolors-stroke-subduedalt: #{$stroke-neutral};
63
+ --basecolors-text-accent: #{$text-accent};
64
+ --basecolors-text-disabled: #{$text-neutral};
65
+ --basecolors-text-disabledalt: #{$text-neutralalt};
66
+ --basecolors-text-highlight: #{$stroke-highlight};
67
+ --basecolors-text-light: #{$text-light};
68
+ --basecolors-text-subdued: #{$text-subdued};
69
+ --basecolors-text-subduedalt: #{$text-subduedalt};
68
70
  }
69
71
 
70
72
  [data-color-mode='dark'] {
71
- $basecolors-frame-contrast: $fill-background-contrast-dark;
72
- $basecolors-frame-contrastalt: $fill-background-tint-dark;
73
- $basecolors-frame-default: $fill-background-standard-dark;
74
- $basecolors-frame-elevated: $fill-background-overlay-transparent;
75
- $basecolors-frame-elevatedalt: $fill-background-overlay-solidalt;
76
- $basecolors-frame-subdued: $fill-background-subdued-dark;
77
- $basecolors-frame-tint: $fill-background-tint-dark;
78
- $basecolors-shape-accent: $shape-lightalt;
79
- $basecolors-shape-bicycle-contrast: $dark-bicycle;
80
- $basecolors-shape-bicycle-default: $dark-bicycle;
81
- $basecolors-shape-bus-contrast: $dark-bus;
82
- $basecolors-shape-bus-default: $dark-bus;
83
- $basecolors-shape-cableway-contrast: $dark-cableway;
84
- $basecolors-shape-cableway-default: $dark-cableway;
85
- $basecolors-shape-disabled: $shape-neutralalt;
86
- $basecolors-shape-disabledalt: $shape-darkalt;
87
- $basecolors-shape-ferry-contrast: $dark-ferry;
88
- $basecolors-shape-ferry-default: $dark-ferry;
89
- $basecolors-shape-funicular-contrast: $dark-funicular;
90
- $basecolors-shape-funicular-default: $dark-funicular;
91
- $basecolors-shape-helicopter-contrast: $dark-helicopter;
92
- $basecolors-shape-helicopter-default: $dark-helicopter;
93
- $basecolors-shape-highlight: $stroke-highlightalt;
94
- $basecolors-shape-light: $shape-lightalt;
95
- $basecolors-shape-mask: $fill-background-subdued-dark;
96
- $basecolors-shape-maskalt: $fill-background-overlay-solid;
97
- $basecolors-shape-metro-contrast: $dark-metro;
98
- $basecolors-shape-metro-default: $dark-metro;
99
- $basecolors-shape-mobility-contrast: $dark-mobility;
100
- $basecolors-shape-mobility-default: $dark-mobility;
101
- $basecolors-shape-plane-contrast: $dark-plane;
102
- $basecolors-shape-plane-default: $dark-plane;
103
- $basecolors-shape-subdued: $shape-darkalt;
104
- $basecolors-shape-subduedalt: $shape-darkalt;
105
- $basecolors-shape-taxi-contrast: $dark-taxi;
106
- $basecolors-shape-taxi-default: $dark-taxi;
107
- $basecolors-shape-train-contrast: $dark-train;
108
- $basecolors-shape-train-default: $dark-train;
109
- $basecolors-shape-tram-contrast: $dark-tram;
110
- $basecolors-shape-tram-default: $dark-tram;
111
- $basecolors-shape-walk-contrast: $dark-walk;
112
- $basecolors-shape-walk-default: $dark-walk;
113
- $basecolors-shape-airportlinkbus-contrast: $dark-airportlinkbus;
114
- $basecolors-shape-airportlinkbus-default: $dark-airportlinkbus;
115
- $basecolors-shape-airportlinkrail-contrast: $dark-airportlinkrail;
116
- $basecolors-shape-airportlinkrail-default: $dark-airportlinkrail;
117
- $basecolors-stroke-contrast: $stroke-contrast;
118
- $basecolors-stroke-default: $stroke-dark;
119
- $basecolors-stroke-disabled: $stroke-neutral;
120
- $basecolors-stroke-focus-contrast: $stroke-contrast;
121
- $basecolors-stroke-focus-standard: $stroke-contrast;
122
- $basecolors-stroke-highlight: $stroke-highlightalt;
123
- $basecolors-stroke-light: $stroke-dark;
124
- $basecolors-stroke-subdued: $stroke-darkalt;
125
- $basecolors-stroke-subduedalt: $stroke-darkalt;
126
- $basecolors-text-accent: $text-lightalt;
127
- $basecolors-text-disabled: $text-neutralalt;
128
- $basecolors-text-disabledalt: $text-neutralalt;
129
- $basecolors-text-highlight: $stroke-highlightalt;
130
- $basecolors-text-light: $text-lightalt;
131
- $basecolors-text-subdued: $text-darkalt;
132
- $basecolors-text-subduedalt: $text-darkalt;
73
+ --basecolors-frame-contrast: #{$fill-background-contrast-dark};
74
+ --basecolors-frame-contrastalt: #{$fill-background-tint-dark};
75
+ --basecolors-frame-default: #{$fill-background-standard-dark};
76
+ --basecolors-frame-elevated: #{$fill-background-overlay-transparent};
77
+ --basecolors-frame-elevatedalt: #{$fill-background-overlay-solidalt};
78
+ --basecolors-frame-subdued: #{$fill-background-subdued-dark};
79
+ --basecolors-frame-tint: #{$fill-background-tint-dark};
80
+ --basecolors-shape-accent: #{$shape-lightalt};
81
+ --basecolors-shape-bicycle-contrast: #{$dark-bicycle};
82
+ --basecolors-shape-bicycle-default: #{$dark-bicycle};
83
+ --basecolors-shape-bus-contrast: #{$dark-bus};
84
+ --basecolors-shape-bus-default: #{$dark-bus};
85
+ --basecolors-shape-cableway-contrast: #{$dark-cableway};
86
+ --basecolors-shape-cableway-default: #{$dark-cableway};
87
+ --basecolors-shape-disabled: #{$shape-neutralalt};
88
+ --basecolors-shape-disabledalt: #{$shape-darkalt};
89
+ --basecolors-shape-ferry-contrast: #{$dark-ferry};
90
+ --basecolors-shape-ferry-default: #{$dark-ferry};
91
+ --basecolors-shape-funicular-contrast: #{$dark-funicular};
92
+ --basecolors-shape-funicular-default: #{$dark-funicular};
93
+ --basecolors-shape-helicopter-contrast: #{$dark-helicopter};
94
+ --basecolors-shape-helicopter-default: #{$dark-helicopter};
95
+ --basecolors-shape-highlight: #{$stroke-highlightalt};
96
+ --basecolors-shape-light: #{$shape-lightalt};
97
+ --basecolors-shape-mask: #{$fill-background-subdued-dark};
98
+ --basecolors-shape-maskalt: #{$fill-background-overlay-solid};
99
+ --basecolors-shape-metro-contrast: #{$dark-metro};
100
+ --basecolors-shape-metro-default: #{$dark-metro};
101
+ --basecolors-shape-mobility-contrast: #{$dark-mobility};
102
+ --basecolors-shape-mobility-default: #{$dark-mobility};
103
+ --basecolors-shape-plane-contrast: #{$dark-plane};
104
+ --basecolors-shape-plane-default: #{$dark-plane};
105
+ --basecolors-shape-subdued: #{$shape-darkalt};
106
+ --basecolors-shape-subduedalt: #{$shape-darkalt};
107
+ --basecolors-shape-taxi-contrast: #{$dark-taxi};
108
+ --basecolors-shape-taxi-default: #{$dark-taxi};
109
+ --basecolors-shape-train-contrast: #{$dark-train};
110
+ --basecolors-shape-train-default: #{$dark-train};
111
+ --basecolors-shape-tram-contrast: #{$dark-tram};
112
+ --basecolors-shape-tram-default: #{$dark-tram};
113
+ --basecolors-shape-walk-contrast: #{$dark-walk};
114
+ --basecolors-shape-walk-default: #{$dark-walk};
115
+ --basecolors-shape-airportlinkbus-contrast: #{$dark-airportlinkbus};
116
+ --basecolors-shape-airportlinkbus-default: #{$dark-airportlinkbus};
117
+ --basecolors-shape-airportlinkrail-contrast: #{$dark-airportlinkrail};
118
+ --basecolors-shape-airportlinkrail-default: #{$dark-airportlinkrail};
119
+ --basecolors-stroke-contrast: #{$stroke-contrast};
120
+ --basecolors-stroke-default: #{$stroke-dark};
121
+ --basecolors-stroke-disabled: #{$stroke-neutral};
122
+ --basecolors-stroke-focus-contrast: #{$stroke-contrast};
123
+ --basecolors-stroke-focus-standard: #{$stroke-contrast};
124
+ --basecolors-stroke-highlight: #{$stroke-highlightalt};
125
+ --basecolors-stroke-light: #{$stroke-dark};
126
+ --basecolors-stroke-subdued: #{$stroke-darkalt};
127
+ --basecolors-stroke-subduedalt: #{$stroke-darkalt};
128
+ --basecolors-text-accent: #{$text-lightalt};
129
+ --basecolors-text-disabled: #{$text-neutralalt};
130
+ --basecolors-text-disabledalt: #{$text-neutralalt};
131
+ --basecolors-text-highlight: #{$stroke-highlightalt};
132
+ --basecolors-text-light: #{$text-lightalt};
133
+ --basecolors-text-subdued: #{$text-darkalt};
134
+ --basecolors-text-subduedalt: #{$text-darkalt};
133
135
  }
136
+
137
+
@@ -0,0 +1,35 @@
1
+ type variableSet = {
2
+ css: KeyValueSet;
3
+ scss: KeyValueSet;
4
+ less: KeyValueSet;
5
+ js: KeyValueSet;
6
+ mode: string;
7
+ usesAlias: boolean;
8
+ };
9
+ type KeyValueSet = {
10
+ key: string;
11
+ value: string;
12
+ sanitizedValue?: string;
13
+ };
14
+ type ColorFileData = {
15
+ outputString: string;
16
+ outputFileName: string;
17
+ packageName?: string;
18
+ };
19
+ export declare function createColorSet(fileData: string): variableSet[];
20
+ export declare function createColorsFileData({ colorSet, keyType, valueType, name, outputToPackages, }: {
21
+ colorSet: variableSet[];
22
+ keyType: 'css' | 'scss' | 'less';
23
+ valueType: 'css' | 'scss' | 'less';
24
+ name: string;
25
+ outputToPackages?: string[];
26
+ relativeOutputPath?: string;
27
+ }): ColorFileData[];
28
+ export declare function createJSColorFileData({ variables, name, }: {
29
+ variables: variableSet[];
30
+ name: string;
31
+ }): {
32
+ outputString: string;
33
+ outputFileName: string;
34
+ };
35
+ export {};
@@ -128,14 +128,12 @@ export declare const componentColors: {
128
128
  border: string;
129
129
  fill: string;
130
130
  icon: string;
131
- iconBorder: string;
132
131
  text: string;
133
132
  };
134
133
  standard: {
135
134
  border: string;
136
135
  fill: string;
137
136
  icon: string;
138
- iconBorder: string;
139
137
  text: string;
140
138
  };
141
139
  };
@@ -144,14 +142,12 @@ export declare const componentColors: {
144
142
  border: string;
145
143
  fill: string;
146
144
  icon: string;
147
- iconBorder: string;
148
145
  text: string;
149
146
  };
150
147
  standard: {
151
148
  border: string;
152
149
  fill: string;
153
150
  icon: string;
154
- iconBorder: string;
155
151
  text: string;
156
152
  };
157
153
  };
@@ -160,14 +156,12 @@ export declare const componentColors: {
160
156
  border: string;
161
157
  fill: string;
162
158
  icon: string;
163
- iconBorder: string;
164
159
  text: string;
165
160
  };
166
161
  standard: {
167
162
  border: string;
168
163
  fill: string;
169
164
  icon: string;
170
- iconBorder: string;
171
165
  text: string;
172
166
  };
173
167
  };
@@ -176,14 +170,12 @@ export declare const componentColors: {
176
170
  border: string;
177
171
  fill: string;
178
172
  icon: string;
179
- iconBorder: string;
180
173
  text: string;
181
174
  };
182
175
  standard: {
183
176
  border: string;
184
177
  fill: string;
185
178
  icon: string;
186
- iconBorder: string;
187
179
  text: string;
188
180
  };
189
181
  };
@@ -1462,14 +1454,12 @@ export declare const componentColors: {
1462
1454
  border: string;
1463
1455
  fill: string;
1464
1456
  icon: string;
1465
- iconBorder: string;
1466
1457
  text: string;
1467
1458
  };
1468
1459
  standard: {
1469
1460
  border: string;
1470
1461
  fill: string;
1471
1462
  icon: string;
1472
- iconBorder: string;
1473
1463
  text: string;
1474
1464
  };
1475
1465
  };
@@ -1478,14 +1468,12 @@ export declare const componentColors: {
1478
1468
  border: string;
1479
1469
  fill: string;
1480
1470
  icon: string;
1481
- iconBorder: string;
1482
1471
  text: string;
1483
1472
  };
1484
1473
  standard: {
1485
1474
  border: string;
1486
1475
  fill: string;
1487
1476
  icon: string;
1488
- iconBorder: string;
1489
1477
  text: string;
1490
1478
  };
1491
1479
  };
@@ -1494,14 +1482,12 @@ export declare const componentColors: {
1494
1482
  border: string;
1495
1483
  fill: string;
1496
1484
  icon: string;
1497
- iconBorder: string;
1498
1485
  text: string;
1499
1486
  };
1500
1487
  standard: {
1501
1488
  border: string;
1502
1489
  fill: string;
1503
1490
  icon: string;
1504
- iconBorder: string;
1505
1491
  text: string;
1506
1492
  };
1507
1493
  };
@@ -1510,14 +1496,12 @@ export declare const componentColors: {
1510
1496
  border: string;
1511
1497
  fill: string;
1512
1498
  icon: string;
1513
- iconBorder: string;
1514
1499
  text: string;
1515
1500
  };
1516
1501
  standard: {
1517
1502
  border: string;
1518
1503
  fill: string;
1519
1504
  icon: string;
1520
- iconBorder: string;
1521
1505
  text: string;
1522
1506
  };
1523
1507
  };
package/dist/data.css CHANGED
@@ -1,4 +1,4 @@
1
- @import '~@entur/tokens/dist/semantic.css';
1
+
2
2
  /* DO NOT CHANGE!*/
3
3
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
4
4
  [data-color-mode='light'],
package/dist/data.scss CHANGED
@@ -1,41 +1,41 @@
1
- @use '~@entur/tokens/dist/semantic.scss';
1
+
2
2
  /* DO NOT CHANGE!*/
3
3
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
4
4
  [data-color-mode='light'],
5
5
  :root {
6
- $contrast-azure: #64b2fb;
7
- $contrast-blue: #6c6eb7;
8
- $contrast-coral: #ff5959;
9
- $contrast-jungle: #0fc2b3;
10
- $contrast-lavender: #aeb7e2;
11
- $contrast-lilac: #ea8bea;
12
- $contrast-peach: #ffbf9e;
13
- $contrast-spring: #7bc00b;
14
- $standard-azure: #2f98fa;
15
- $standard-blue: #181c56;
16
- $standard-coral: #ff5959;
17
- $standard-jungle: #0ea2a8;
18
- $standard-lavender: #8692ca;
19
- $standard-lilac: #8e57e3;
20
- $standard-peach: #ca825b;
21
- $standard-spring: #57a257;
6
+ --contrast-azure: #{$};
7
+ --contrast-blue: #{$};
8
+ --contrast-coral: #{$};
9
+ --contrast-jungle: #{$};
10
+ --contrast-lavender: #{$};
11
+ --contrast-lilac: #{$};
12
+ --contrast-peach: #{$};
13
+ --contrast-spring: #{$};
14
+ --standard-azure: #{$};
15
+ --standard-blue: #{$};
16
+ --standard-coral: #{$};
17
+ --standard-jungle: #{$};
18
+ --standard-lavender: #{$};
19
+ --standard-lilac: #{$};
20
+ --standard-peach: #{$};
21
+ --standard-spring: #{$};
22
22
  }
23
23
 
24
24
  [data-color-mode='dark'] {
25
- $contrast-azure: #669bcc;
26
- $contrast-blue: #aeb7e2;
27
- $contrast-coral: #ff9494;
28
- $contrast-jungle: #349d94;
29
- $contrast-lavender: #7c8ad0;
30
- $contrast-lilac: #c982c9;
31
- $contrast-peach: #d6855c;
32
- $contrast-spring: #8cb24c;
33
- $standard-azure: #669bcc;
34
- $standard-blue: #aeb7e2;
35
- $standard-coral: #ff9494;
36
- $standard-jungle: #349d94;
37
- $standard-lavender: #7c8ad0;
38
- $standard-lilac: #c982c9;
39
- $standard-peach: #d6855c;
40
- $standard-spring: #8cb24c;
25
+ --contrast-azure: #{$};
26
+ --contrast-blue: #{$};
27
+ --contrast-coral: #{$};
28
+ --contrast-jungle: #{$};
29
+ --contrast-lavender: #{$};
30
+ --contrast-lilac: #{$};
31
+ --contrast-peach: #{$};
32
+ --contrast-spring: #{$};
33
+ --standard-azure: #{$};
34
+ --standard-blue: #{$};
35
+ --standard-coral: #{$};
36
+ --standard-jungle: #{$};
37
+ --standard-lavender: #{$};
38
+ --standard-lilac: #{$};
39
+ --standard-peach: #{$};
40
+ --standard-spring: #{$};
41
41
  }
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './data';
5
5
  export * from './transport';
6
6
  export * from './componentColors';
7
7
  export * from './legacy-tokens';
8
+ export { createColorSet, createColorsFileData, createJSColorFileData, } from './buildVariables';
@@ -127,3 +127,4 @@
127
127
  --white-alpha-80: #ffffffcc;
128
128
  --white-alpha-90: #ffffffe5;
129
129
  }
130
+
@@ -127,3 +127,4 @@
127
127
  @white-alpha-80: #ffffffcc;
128
128
  @white-alpha-90: #ffffffe5;
129
129
 
130
+
@@ -127,3 +127,4 @@ $white-alpha-70: #ffffffb2;
127
127
  $white-alpha-80: #ffffffcc;
128
128
  $white-alpha-90: #ffffffe5;
129
129
 
130
+
package/dist/semantic.css CHANGED
@@ -1,4 +1,5 @@
1
- @import '~@entur/tokens/dist/primitive.css';
1
+ @import '@entur/tokens/dist/primitive.css';
2
+
2
3
  /* DO NOT CHANGE!*/
3
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
4
5
  :root {
@@ -130,3 +131,5 @@
130
131
  --text-success: var(--mint-60);
131
132
  --text-successalt: var(--mint-40);
132
133
  }
134
+
135
+
@@ -1,4 +1,5 @@
1
- @import '~@entur/tokens/dist/primitive.less';
1
+ @import '@entur/tokens/dist/primitive.less';
2
+
2
3
  /* DO NOT CHANGE!*/
3
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
4
5
 
@@ -130,3 +131,5 @@
130
131
  @text-success: @mint-60;
131
132
  @text-successalt: @mint-40;
132
133
 
134
+
135
+
@@ -1,4 +1,5 @@
1
- @use '~@entur/tokens/dist/primitive.scss';
1
+ @use '@entur/tokens/dist/primitive.scss' as *;
2
+
2
3
  /* DO NOT CHANGE!*/
3
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
4
5
 
@@ -130,3 +131,5 @@ $text-subduedalt: $blue-30;
130
131
  $text-success: $mint-60;
131
132
  $text-successalt: $mint-40;
132
133
 
134
+
135
+