@skyscanner/bpk-foundations-web 19.5.0 → 19.6.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/gulpfile.mjs +12 -8
- package/package.json +3 -3
- package/tokens/base.common.js +1 -1
- package/tokens/base.default.scss +1 -1
- package/tokens/base.es6.d.ts +1 -1
- package/tokens/base.es6.js +1 -1
- package/tokens/base.raw.json +2 -2
- package/tokens/base.scss +1 -1
package/gulpfile.mjs
CHANGED
|
@@ -20,8 +20,8 @@ import path from 'path';
|
|
|
20
20
|
import { fileURLToPath } from 'url';
|
|
21
21
|
|
|
22
22
|
import { deleteAsync } from 'del';
|
|
23
|
+
import { exec } from 'child_process';
|
|
23
24
|
import gulp from 'gulp';
|
|
24
|
-
import jsonLint from 'gulp-jsonlint';
|
|
25
25
|
import gulpTheo from 'gulp-theo';
|
|
26
26
|
import _ from 'lodash';
|
|
27
27
|
import gulpMerge from 'merge2';
|
|
@@ -67,13 +67,17 @@ theo.registerFormat('es6.d.ts', bpkDts);
|
|
|
67
67
|
|
|
68
68
|
gulp.task('clean', (done) => deleteAsync(['tokens'], done));
|
|
69
69
|
|
|
70
|
-
gulp.task('lint', () =>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
);
|
|
70
|
+
gulp.task('lint', (done) => {
|
|
71
|
+
exec('eslint ./src --ext json', (err, stdout, _) => {
|
|
72
|
+
if (err) {
|
|
73
|
+
console.error(stdout);
|
|
74
|
+
done(err);
|
|
75
|
+
} else {
|
|
76
|
+
console.log(stdout);
|
|
77
|
+
done();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
77
81
|
|
|
78
82
|
const createTokens = (tokenSets, done) => {
|
|
79
83
|
const streams = tokenSets.map(({ format, nest, platform }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/bpk-foundations-web",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0",
|
|
4
4
|
"description": "Common Backpack design tokens for colors, spacing, font, etc.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"tokens": "gulp"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@skyscanner/bpk-foundations-common": "^19.
|
|
20
|
+
"@skyscanner/bpk-foundations-common": "^19.6.0",
|
|
21
21
|
"color": "^5.0.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "5a2dbb49f77e410b1cbc082061179f49fe0d2a5d"
|
|
24
24
|
}
|
package/tokens/base.common.js
CHANGED
|
@@ -93,7 +93,7 @@ module.exports = {
|
|
|
93
93
|
surfaceSubtleNight: "rgb(36, 51, 70)",
|
|
94
94
|
surfaceElevatedDay: "rgb(255, 255, 255)",
|
|
95
95
|
surfaceHighlightNight: "rgb(36, 51, 70)",
|
|
96
|
-
surfaceLowContrastDay: "rgb(
|
|
96
|
+
surfaceLowContrastDay: "rgb(245, 247, 250)",
|
|
97
97
|
surfaceSubtleDay: "rgb(227, 240, 255)",
|
|
98
98
|
surfaceHighlightDay: "rgb(224, 228, 233)",
|
|
99
99
|
textOnDarkDay: "rgb(255, 255, 255)",
|
package/tokens/base.default.scss
CHANGED
|
@@ -166,7 +166,7 @@ $bpk-surface-elevated-day: rgb(255, 255, 255) !default;
|
|
|
166
166
|
/// @group surface-colors
|
|
167
167
|
$bpk-surface-highlight-night: rgb(36, 51, 70) !default;
|
|
168
168
|
/// @group surface-colors
|
|
169
|
-
$bpk-surface-low-contrast-day: rgb(
|
|
169
|
+
$bpk-surface-low-contrast-day: rgb(245, 247, 250) !default;
|
|
170
170
|
/// @group surface-colors
|
|
171
171
|
$bpk-surface-subtle-day: rgb(227, 240, 255) !default;
|
|
172
172
|
/// @group surface-colors
|
package/tokens/base.es6.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare const surfaceLowContrastNight = "rgb(36, 51, 70)" as const;
|
|
|
91
91
|
export declare const surfaceSubtleNight = "rgb(36, 51, 70)" as const;
|
|
92
92
|
export declare const surfaceElevatedDay = "rgb(255, 255, 255)" as const;
|
|
93
93
|
export declare const surfaceHighlightNight = "rgb(36, 51, 70)" as const;
|
|
94
|
-
export declare const surfaceLowContrastDay = "rgb(
|
|
94
|
+
export declare const surfaceLowContrastDay = "rgb(245, 247, 250)" as const;
|
|
95
95
|
export declare const surfaceSubtleDay = "rgb(227, 240, 255)" as const;
|
|
96
96
|
export declare const surfaceHighlightDay = "rgb(224, 228, 233)" as const;
|
|
97
97
|
export declare const textOnDarkDay = "rgb(255, 255, 255)" as const;
|
package/tokens/base.es6.js
CHANGED
|
@@ -91,7 +91,7 @@ export const surfaceLowContrastNight = "rgb(36, 51, 70)";
|
|
|
91
91
|
export const surfaceSubtleNight = "rgb(36, 51, 70)";
|
|
92
92
|
export const surfaceElevatedDay = "rgb(255, 255, 255)";
|
|
93
93
|
export const surfaceHighlightNight = "rgb(36, 51, 70)";
|
|
94
|
-
export const surfaceLowContrastDay = "rgb(
|
|
94
|
+
export const surfaceLowContrastDay = "rgb(245, 247, 250)";
|
|
95
95
|
export const surfaceSubtleDay = "rgb(227, 240, 255)";
|
|
96
96
|
export const surfaceHighlightDay = "rgb(224, 228, 233)";
|
|
97
97
|
export const textOnDarkDay = "rgb(255, 255, 255)";
|
package/tokens/base.raw.json
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"value": "#ffb54d"
|
|
53
53
|
},
|
|
54
54
|
"GREY_05": {
|
|
55
|
-
"value": "#
|
|
55
|
+
"value": "#F5F7FA"
|
|
56
56
|
},
|
|
57
57
|
"NIGHT_GREEN_SPOT": {
|
|
58
58
|
"value": "#62F1C6"
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
"SURFACE_LOW_CONTRAST_DAY": {
|
|
1025
1025
|
"type": "color",
|
|
1026
1026
|
"category": "surface-colors",
|
|
1027
|
-
"value": "rgb(
|
|
1027
|
+
"value": "rgb(245, 247, 250)",
|
|
1028
1028
|
"originalValue": "{!GREY_05}",
|
|
1029
1029
|
"name": "SURFACE_LOW_CONTRAST_DAY"
|
|
1030
1030
|
},
|
package/tokens/base.scss
CHANGED
|
@@ -166,7 +166,7 @@ $bpk-surface-elevated-day: rgb(255, 255, 255);
|
|
|
166
166
|
/// @group surface-colors
|
|
167
167
|
$bpk-surface-highlight-night: rgb(36, 51, 70);
|
|
168
168
|
/// @group surface-colors
|
|
169
|
-
$bpk-surface-low-contrast-day: rgb(
|
|
169
|
+
$bpk-surface-low-contrast-day: rgb(245, 247, 250);
|
|
170
170
|
/// @group surface-colors
|
|
171
171
|
$bpk-surface-subtle-day: rgb(227, 240, 255);
|
|
172
172
|
/// @group surface-colors
|