@entur/tokens 3.12.0 → 3.13.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/README.md +23 -1
- package/dist/base.css +133 -0
- package/dist/base.d.ts +150 -0
- package/dist/base.less +133 -0
- package/dist/base.scss +133 -0
- package/dist/componentColors.d.ts +2624 -0
- package/dist/data.css +41 -0
- package/dist/data.d.ts +46 -0
- package/dist/data.less +41 -0
- package/dist/data.scss +41 -0
- package/dist/index.d.ts +7 -276
- package/dist/legacy-tokens.d.ts +262 -0
- package/dist/primitive.css +128 -0
- package/dist/primitive.d.ts +147 -0
- package/dist/primitive.less +128 -0
- package/dist/primitive.scss +128 -0
- package/dist/semantic.css +131 -0
- package/dist/semantic.d.ts +186 -0
- package/dist/semantic.less +131 -0
- package/dist/semantic.scss +131 -0
- package/dist/styles.css +0 -1824
- package/dist/styles.less +0 -1824
- package/dist/styles.scss +1 -1825
- package/dist/tokens.cjs.development.js +3277 -1838
- package/dist/tokens.cjs.development.js.map +1 -1
- package/dist/tokens.cjs.production.min.js +1 -1
- package/dist/tokens.cjs.production.min.js.map +1 -1
- package/dist/tokens.esm.js +3273 -1839
- package/dist/tokens.esm.js.map +1 -1
- package/dist/transport.css +98 -0
- package/dist/transport.d.ts +101 -0
- package/dist/transport.less +98 -0
- package/dist/transport.scss +98 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Entur design tokens
|
|
2
2
|
|
|
3
|
-
This package contains all design tokens used throughout the design system.
|
|
3
|
+
This package contains all design tokens and design variables used throughout the design system. We are currently in a process to migrate over to a new design variable system based on [Figma Variables](https://help.figma.com/hc/en-us/articles/15339657135383-Guide-to-variables-in-Figma).
|
|
4
|
+
|
|
5
|
+
Since not all values are available as a variable yet and to avoid breaking changes, all previous design tokens will be kept around for a while. These are built from the `src/legacy-tokens.ts` file.
|
|
4
6
|
|
|
5
7
|
> 💡 Looking for the [documentation](https://design.entur.no/komponenter/resources/tokens)?
|
|
6
8
|
|
|
@@ -97,3 +99,23 @@ StyleSheet.create({
|
|
|
97
99
|
#### px vs rem
|
|
98
100
|
|
|
99
101
|
These values are mainly provided in pixels. If you need the values in rem instead, add a `.rem` after the token name, e.g. `space.rem.large` for rem value and `space.large` for pixel value.
|
|
102
|
+
|
|
103
|
+
## [For maintainers] Updating design variables
|
|
104
|
+
|
|
105
|
+
There are three steps needed to update the set of available designs variables in this repo:
|
|
106
|
+
|
|
107
|
+
1. generate a JSON-export of the variable set from Figma
|
|
108
|
+
2. Update the corresponding JSON-file in the `src` folder
|
|
109
|
+
3. Build the new variables and commit the changes
|
|
110
|
+
|
|
111
|
+
### 1. Generate a JSON export
|
|
112
|
+
|
|
113
|
+
The JSON is exported from Figma using the [variabels2css-plugin](https://www.figma.com/community/plugin/1261234393153346915), download the plugin if you haven't already. Go to the Figma file containing the variables you want to export, eg. [Semantic Colors](https://www.figma.com/file/zFFjH3gKGON6vFJZQK5ltr/Tokens-Semantic-colors?type=design&mode=design&t=M9cT0w0kaaxyBHiq-1). In you menu bar, select 'Plugins' and choose 'variables2css' – this opens a modal. Under 'choose your collection' choose the variable set you want to export. Under 'type' choose 'JSON', and under 'color' and 'unit' choose 'hex' and 'rem'. Then click 'Generate' and copy the result.
|
|
114
|
+
|
|
115
|
+
### 2. Update JSON file
|
|
116
|
+
|
|
117
|
+
Back in this repo, find the JSON-variables file you want to update, eg. `semantic.json`, delete its content and paste the generated result you copied in step 1. Then save the file.
|
|
118
|
+
|
|
119
|
+
### 3. Build variables
|
|
120
|
+
|
|
121
|
+
When the JSON-file content is updated, run the script `yarn build` inside this package or `yarn build:packages` from root. This will generate new files with updated values in both this package and in all other packages where the component color value has been updated. Once the build is finished, commit all changes and push the commit.
|
package/dist/base.css
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@import '~@entur/tokens/dist/semantic.css';
|
|
2
|
+
/* DO NOT CHANGE!*/
|
|
3
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
4
|
+
[data-color-mode='light'],
|
|
5
|
+
:root {
|
|
6
|
+
--basecolors-frame-contrast: var(--fill-background-contrast-light);
|
|
7
|
+
--basecolors-frame-contrastalt: var(--fill-background-contrast-lightalt);
|
|
8
|
+
--basecolors-frame-default: var(--fill-background-standard-light);
|
|
9
|
+
--basecolors-frame-elevated: var(--fill-background-standard-light);
|
|
10
|
+
--basecolors-frame-elevatedalt: var(--fill-background-tint-light);
|
|
11
|
+
--basecolors-frame-subdued: var(--fill-background-subdued-light);
|
|
12
|
+
--basecolors-frame-tint: var(--fill-background-tint-light);
|
|
13
|
+
--basecolors-shape-accent: var(--shape-accent);
|
|
14
|
+
--basecolors-shape-bicycle-contrast: var(--contrast-bicycle);
|
|
15
|
+
--basecolors-shape-bicycle-default: var(--standard-bicycle);
|
|
16
|
+
--basecolors-shape-bus-contrast: var(--contrast-bus);
|
|
17
|
+
--basecolors-shape-bus-default: var(--standard-bus);
|
|
18
|
+
--basecolors-shape-cableway-contrast: var(--contrast-cableway);
|
|
19
|
+
--basecolors-shape-cableway-default: var(--standard-cableway);
|
|
20
|
+
--basecolors-shape-disabled: var(--shape-neutral);
|
|
21
|
+
--basecolors-shape-disabledalt: var(--shape-neutralalt);
|
|
22
|
+
--basecolors-shape-ferry-contrast: var(--contrast-ferry);
|
|
23
|
+
--basecolors-shape-ferry-default: var(--standard-ferry);
|
|
24
|
+
--basecolors-shape-funicular-contrast: var(--contrast-funicular);
|
|
25
|
+
--basecolors-shape-funicular-default: var(--standard-funicular);
|
|
26
|
+
--basecolors-shape-helicopter-contrast: var(--contrast-helicopter);
|
|
27
|
+
--basecolors-shape-helicopter-default: var(--standard-helicopter);
|
|
28
|
+
--basecolors-shape-highlight: var(--stroke-highlight);
|
|
29
|
+
--basecolors-shape-light: var(--shape-light);
|
|
30
|
+
--basecolors-shape-mask: var(--shape-light);
|
|
31
|
+
--basecolors-shape-maskalt: var(--shape-light);
|
|
32
|
+
--basecolors-shape-metro-contrast: var(--contrast-metro);
|
|
33
|
+
--basecolors-shape-metro-default: var(--standard-metro);
|
|
34
|
+
--basecolors-shape-mobility-contrast: var(--contrast-mobility);
|
|
35
|
+
--basecolors-shape-mobility-default: var(--standard-mobility);
|
|
36
|
+
--basecolors-shape-plane-contrast: var(--contrast-plane);
|
|
37
|
+
--basecolors-shape-plane-default: var(--standard-plane);
|
|
38
|
+
--basecolors-shape-subdued: var(--shape-subdued);
|
|
39
|
+
--basecolors-shape-subduedalt: var(--shape-subduedalt);
|
|
40
|
+
--basecolors-shape-taxi-contrast: var(--contrast-taxi);
|
|
41
|
+
--basecolors-shape-taxi-default: var(--standard-taxi);
|
|
42
|
+
--basecolors-shape-train-contrast: var(--contrast-train);
|
|
43
|
+
--basecolors-shape-train-default: var(--standard-train);
|
|
44
|
+
--basecolors-shape-tram-contrast: var(--contrast-tram);
|
|
45
|
+
--basecolors-shape-tram-default: var(--standard-tram);
|
|
46
|
+
--basecolors-shape-walk-contrast: var(--contrast-walk);
|
|
47
|
+
--basecolors-shape-walk-default: var(--standard-walk);
|
|
48
|
+
--basecolors-shape-airportlinkbus-contrast: var(--contrast-airportlinkbus);
|
|
49
|
+
--basecolors-shape-airportlinkbus-default: var(--standard-airportlinkbus);
|
|
50
|
+
--basecolors-shape-airportlinkrail-contrast: var(--contrast-airportlinkrail);
|
|
51
|
+
--basecolors-shape-airportlinkrail-default: var(--standard-airportlinkrail);
|
|
52
|
+
--basecolors-stroke-contrast: var(--stroke-contrast);
|
|
53
|
+
--basecolors-stroke-default: var(--stroke-accent);
|
|
54
|
+
--basecolors-stroke-disabled: var(--stroke-neutralalt);
|
|
55
|
+
--basecolors-stroke-focus-contrast: var(--stroke-contrast);
|
|
56
|
+
--basecolors-stroke-focus-standard: var(--stroke-accent);
|
|
57
|
+
--basecolors-stroke-highlight: var(--stroke-highlight);
|
|
58
|
+
--basecolors-stroke-light: var(--stroke-light);
|
|
59
|
+
--basecolors-stroke-subdued: var(--stroke-subdued);
|
|
60
|
+
--basecolors-stroke-subduedalt: var(--stroke-neutral);
|
|
61
|
+
--basecolors-text-accent: var(--text-accent);
|
|
62
|
+
--basecolors-text-disabled: var(--text-neutral);
|
|
63
|
+
--basecolors-text-disabledalt: var(--text-neutralalt);
|
|
64
|
+
--basecolors-text-highlight: var(--stroke-highlight);
|
|
65
|
+
--basecolors-text-light: var(--text-light);
|
|
66
|
+
--basecolors-text-subdued: var(--text-subdued);
|
|
67
|
+
--basecolors-text-subduedalt: var(--text-subduedalt);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-color-mode='dark'] {
|
|
71
|
+
--basecolors-frame-contrast: var(--fill-background-contrast-dark);
|
|
72
|
+
--basecolors-frame-contrastalt: var(--fill-background-tint-dark);
|
|
73
|
+
--basecolors-frame-default: var(--fill-background-standard-dark);
|
|
74
|
+
--basecolors-frame-elevated: var(--fill-background-overlay-transparent);
|
|
75
|
+
--basecolors-frame-elevatedalt: var(--fill-background-overlay-solidalt);
|
|
76
|
+
--basecolors-frame-subdued: var(--fill-background-subdued-dark);
|
|
77
|
+
--basecolors-frame-tint: var(--fill-background-tint-dark);
|
|
78
|
+
--basecolors-shape-accent: var(--shape-lightalt);
|
|
79
|
+
--basecolors-shape-bicycle-contrast: var(--dark-bicycle);
|
|
80
|
+
--basecolors-shape-bicycle-default: var(--dark-bicycle);
|
|
81
|
+
--basecolors-shape-bus-contrast: var(--dark-bus);
|
|
82
|
+
--basecolors-shape-bus-default: var(--dark-bus);
|
|
83
|
+
--basecolors-shape-cableway-contrast: var(--dark-cableway);
|
|
84
|
+
--basecolors-shape-cableway-default: var(--dark-cableway);
|
|
85
|
+
--basecolors-shape-disabled: var(--shape-neutralalt);
|
|
86
|
+
--basecolors-shape-disabledalt: var(--shape-darkalt);
|
|
87
|
+
--basecolors-shape-ferry-contrast: var(--dark-ferry);
|
|
88
|
+
--basecolors-shape-ferry-default: var(--dark-ferry);
|
|
89
|
+
--basecolors-shape-funicular-contrast: var(--dark-funicular);
|
|
90
|
+
--basecolors-shape-funicular-default: var(--dark-funicular);
|
|
91
|
+
--basecolors-shape-helicopter-contrast: var(--dark-helicopter);
|
|
92
|
+
--basecolors-shape-helicopter-default: var(--dark-helicopter);
|
|
93
|
+
--basecolors-shape-highlight: var(--stroke-highlightalt);
|
|
94
|
+
--basecolors-shape-light: var(--shape-lightalt);
|
|
95
|
+
--basecolors-shape-mask: var(--fill-background-subdued-dark);
|
|
96
|
+
--basecolors-shape-maskalt: var(--fill-background-overlay-solid);
|
|
97
|
+
--basecolors-shape-metro-contrast: var(--dark-metro);
|
|
98
|
+
--basecolors-shape-metro-default: var(--dark-metro);
|
|
99
|
+
--basecolors-shape-mobility-contrast: var(--dark-mobility);
|
|
100
|
+
--basecolors-shape-mobility-default: var(--dark-mobility);
|
|
101
|
+
--basecolors-shape-plane-contrast: var(--dark-plane);
|
|
102
|
+
--basecolors-shape-plane-default: var(--dark-plane);
|
|
103
|
+
--basecolors-shape-subdued: var(--shape-darkalt);
|
|
104
|
+
--basecolors-shape-subduedalt: var(--shape-darkalt);
|
|
105
|
+
--basecolors-shape-taxi-contrast: var(--dark-taxi);
|
|
106
|
+
--basecolors-shape-taxi-default: var(--dark-taxi);
|
|
107
|
+
--basecolors-shape-train-contrast: var(--dark-train);
|
|
108
|
+
--basecolors-shape-train-default: var(--dark-train);
|
|
109
|
+
--basecolors-shape-tram-contrast: var(--dark-tram);
|
|
110
|
+
--basecolors-shape-tram-default: var(--dark-tram);
|
|
111
|
+
--basecolors-shape-walk-contrast: var(--dark-walk);
|
|
112
|
+
--basecolors-shape-walk-default: var(--dark-walk);
|
|
113
|
+
--basecolors-shape-airportlinkbus-contrast: var(--dark-airportlinkbus);
|
|
114
|
+
--basecolors-shape-airportlinkbus-default: var(--dark-airportlinkbus);
|
|
115
|
+
--basecolors-shape-airportlinkrail-contrast: var(--dark-airportlinkrail);
|
|
116
|
+
--basecolors-shape-airportlinkrail-default: var(--dark-airportlinkrail);
|
|
117
|
+
--basecolors-stroke-contrast: var(--stroke-contrast);
|
|
118
|
+
--basecolors-stroke-default: var(--stroke-dark);
|
|
119
|
+
--basecolors-stroke-disabled: var(--stroke-neutral);
|
|
120
|
+
--basecolors-stroke-focus-contrast: var(--stroke-contrast);
|
|
121
|
+
--basecolors-stroke-focus-standard: var(--stroke-contrast);
|
|
122
|
+
--basecolors-stroke-highlight: var(--stroke-highlightalt);
|
|
123
|
+
--basecolors-stroke-light: var(--stroke-dark);
|
|
124
|
+
--basecolors-stroke-subdued: var(--stroke-darkalt);
|
|
125
|
+
--basecolors-stroke-subduedalt: var(--stroke-darkalt);
|
|
126
|
+
--basecolors-text-accent: var(--text-lightalt);
|
|
127
|
+
--basecolors-text-disabled: var(--text-neutralalt);
|
|
128
|
+
--basecolors-text-disabledalt: var(--text-neutralalt);
|
|
129
|
+
--basecolors-text-highlight: var(--stroke-highlightalt);
|
|
130
|
+
--basecolors-text-light: var(--text-lightalt);
|
|
131
|
+
--basecolors-text-subdued: var(--text-darkalt);
|
|
132
|
+
--basecolors-text-subduedalt: var(--text-darkalt);
|
|
133
|
+
}
|
package/dist/base.d.ts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
export declare const base: {
|
|
2
|
+
light: {
|
|
3
|
+
baseColors: {
|
|
4
|
+
frame: {
|
|
5
|
+
contrast: string;
|
|
6
|
+
contrastalt: string;
|
|
7
|
+
default: string;
|
|
8
|
+
elevated: string;
|
|
9
|
+
elevatedalt: string;
|
|
10
|
+
subdued: string;
|
|
11
|
+
tint: string;
|
|
12
|
+
};
|
|
13
|
+
shape: {
|
|
14
|
+
accent: string;
|
|
15
|
+
bicycleContrast: string;
|
|
16
|
+
bicycleDefault: string;
|
|
17
|
+
busContrast: string;
|
|
18
|
+
busDefault: string;
|
|
19
|
+
cablewayContrast: string;
|
|
20
|
+
cablewayDefault: string;
|
|
21
|
+
disabled: string;
|
|
22
|
+
disabledalt: string;
|
|
23
|
+
ferryContrast: string;
|
|
24
|
+
ferryDefault: string;
|
|
25
|
+
funicularContrast: string;
|
|
26
|
+
funicularDefault: string;
|
|
27
|
+
helicopterContrast: string;
|
|
28
|
+
helicopterDefault: string;
|
|
29
|
+
highlight: string;
|
|
30
|
+
light: string;
|
|
31
|
+
mask: string;
|
|
32
|
+
maskalt: string;
|
|
33
|
+
metroContrast: string;
|
|
34
|
+
metroDefault: string;
|
|
35
|
+
mobilityContrast: string;
|
|
36
|
+
mobilityDefault: string;
|
|
37
|
+
planeContrast: string;
|
|
38
|
+
planeDefault: string;
|
|
39
|
+
subdued: string;
|
|
40
|
+
subduedalt: string;
|
|
41
|
+
taxiContrast: string;
|
|
42
|
+
taxiDefault: string;
|
|
43
|
+
trainContrast: string;
|
|
44
|
+
trainDefault: string;
|
|
45
|
+
tramContrast: string;
|
|
46
|
+
tramDefault: string;
|
|
47
|
+
walkContrast: string;
|
|
48
|
+
walkDefault: string;
|
|
49
|
+
airportlinkbusContrast: string;
|
|
50
|
+
airportlinkbusDefault: string;
|
|
51
|
+
airportlinkrailContrast: string;
|
|
52
|
+
airportlinkrailDefault: string;
|
|
53
|
+
};
|
|
54
|
+
stroke: {
|
|
55
|
+
contrast: string;
|
|
56
|
+
default: string;
|
|
57
|
+
disabled: string;
|
|
58
|
+
focusContrast: string;
|
|
59
|
+
focusStandard: string;
|
|
60
|
+
highlight: string;
|
|
61
|
+
light: string;
|
|
62
|
+
subdued: string;
|
|
63
|
+
subduedalt: string;
|
|
64
|
+
};
|
|
65
|
+
text: {
|
|
66
|
+
accent: string;
|
|
67
|
+
disabled: string;
|
|
68
|
+
disabledalt: string;
|
|
69
|
+
highlight: string;
|
|
70
|
+
light: string;
|
|
71
|
+
subdued: string;
|
|
72
|
+
subduedalt: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
dark: {
|
|
77
|
+
baseColors: {
|
|
78
|
+
frame: {
|
|
79
|
+
contrast: string;
|
|
80
|
+
contrastalt: string;
|
|
81
|
+
default: string;
|
|
82
|
+
elevated: string;
|
|
83
|
+
elevatedalt: string;
|
|
84
|
+
subdued: string;
|
|
85
|
+
tint: string;
|
|
86
|
+
};
|
|
87
|
+
shape: {
|
|
88
|
+
accent: string;
|
|
89
|
+
bicycleContrast: string;
|
|
90
|
+
bicycleDefault: string;
|
|
91
|
+
busContrast: string;
|
|
92
|
+
busDefault: string;
|
|
93
|
+
cablewayContrast: string;
|
|
94
|
+
cablewayDefault: string;
|
|
95
|
+
disabled: string;
|
|
96
|
+
disabledalt: string;
|
|
97
|
+
ferryContrast: string;
|
|
98
|
+
ferryDefault: string;
|
|
99
|
+
funicularContrast: string;
|
|
100
|
+
funicularDefault: string;
|
|
101
|
+
helicopterContrast: string;
|
|
102
|
+
helicopterDefault: string;
|
|
103
|
+
highlight: string;
|
|
104
|
+
light: string;
|
|
105
|
+
mask: string;
|
|
106
|
+
maskalt: string;
|
|
107
|
+
metroContrast: string;
|
|
108
|
+
metroDefault: string;
|
|
109
|
+
mobilityContrast: string;
|
|
110
|
+
mobilityDefault: string;
|
|
111
|
+
planeContrast: string;
|
|
112
|
+
planeDefault: string;
|
|
113
|
+
subdued: string;
|
|
114
|
+
subduedalt: string;
|
|
115
|
+
taxiContrast: string;
|
|
116
|
+
taxiDefault: string;
|
|
117
|
+
trainContrast: string;
|
|
118
|
+
trainDefault: string;
|
|
119
|
+
tramContrast: string;
|
|
120
|
+
tramDefault: string;
|
|
121
|
+
walkContrast: string;
|
|
122
|
+
walkDefault: string;
|
|
123
|
+
airportlinkbusContrast: string;
|
|
124
|
+
airportlinkbusDefault: string;
|
|
125
|
+
airportlinkrailContrast: string;
|
|
126
|
+
airportlinkrailDefault: string;
|
|
127
|
+
};
|
|
128
|
+
stroke: {
|
|
129
|
+
contrast: string;
|
|
130
|
+
default: string;
|
|
131
|
+
disabled: string;
|
|
132
|
+
focusContrast: string;
|
|
133
|
+
focusStandard: string;
|
|
134
|
+
highlight: string;
|
|
135
|
+
light: string;
|
|
136
|
+
subdued: string;
|
|
137
|
+
subduedalt: string;
|
|
138
|
+
};
|
|
139
|
+
text: {
|
|
140
|
+
accent: string;
|
|
141
|
+
disabled: string;
|
|
142
|
+
disabledalt: string;
|
|
143
|
+
highlight: string;
|
|
144
|
+
light: string;
|
|
145
|
+
subdued: string;
|
|
146
|
+
subduedalt: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
package/dist/base.less
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@import '~@entur/tokens/dist/semantic.css';
|
|
2
|
+
/* DO NOT CHANGE!*/
|
|
3
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
4
|
+
[data-color-mode='light'],
|
|
5
|
+
: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;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[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;
|
|
133
|
+
}
|
package/dist/base.scss
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@use '~@entur/tokens/dist/semantic.css';
|
|
2
|
+
/* DO NOT CHANGE!*/
|
|
3
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
4
|
+
[data-color-mode='light'],
|
|
5
|
+
: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;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[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;
|
|
133
|
+
}
|