@entur/tokens 3.13.5 → 3.15.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/dist/buildVariables.d.ts +8 -7
- package/dist/componentColors.d.ts +156 -10
- package/dist/data.scss +32 -32
- package/dist/tokens.cjs.development.js +164 -14
- 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 +164 -14
- package/dist/tokens.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/buildVariables.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type
|
|
1
|
+
export type VariableSet = {
|
|
2
2
|
css: KeyValueSet;
|
|
3
3
|
scss: KeyValueSet;
|
|
4
4
|
less: KeyValueSet;
|
|
@@ -11,22 +11,23 @@ type KeyValueSet = {
|
|
|
11
11
|
value: string;
|
|
12
12
|
sanitizedValue?: string;
|
|
13
13
|
};
|
|
14
|
-
type ColorFileData = {
|
|
14
|
+
export type ColorFileData = {
|
|
15
15
|
outputString: string;
|
|
16
16
|
outputFileName: string;
|
|
17
17
|
packageName?: string;
|
|
18
18
|
};
|
|
19
|
-
export declare function createColorSet(fileData: string):
|
|
20
|
-
export declare function createColorsFileData({ colorSet, keyType, valueType, name, outputToPackages, }: {
|
|
21
|
-
colorSet:
|
|
19
|
+
export declare function createColorSet(fileData: string): VariableSet[];
|
|
20
|
+
export declare function createColorsFileData({ colorSet, keyType, valueType, name, outputToPackages, withColorMode, importFileNames, }: {
|
|
21
|
+
colorSet: VariableSet[];
|
|
22
22
|
keyType: 'css' | 'scss' | 'less';
|
|
23
23
|
valueType: 'css' | 'scss' | 'less';
|
|
24
24
|
name: string;
|
|
25
25
|
outputToPackages?: string[];
|
|
26
|
-
|
|
26
|
+
withColorMode?: boolean;
|
|
27
|
+
importFileNames?: string[];
|
|
27
28
|
}): ColorFileData[];
|
|
28
29
|
export declare function createJSColorFileData({ variables, name, }: {
|
|
29
|
-
variables:
|
|
30
|
+
variables: VariableSet[];
|
|
30
31
|
name: string;
|
|
31
32
|
}): {
|
|
32
33
|
outputString: string;
|
|
@@ -690,6 +690,14 @@ export declare const componentColors: {
|
|
|
690
690
|
text: string;
|
|
691
691
|
};
|
|
692
692
|
};
|
|
693
|
+
spinner: {
|
|
694
|
+
contrast: {
|
|
695
|
+
fill: string;
|
|
696
|
+
};
|
|
697
|
+
standard: {
|
|
698
|
+
fill: string;
|
|
699
|
+
};
|
|
700
|
+
};
|
|
693
701
|
skeleton: {
|
|
694
702
|
contrast: {
|
|
695
703
|
fill: string;
|
|
@@ -894,17 +902,19 @@ export declare const componentColors: {
|
|
|
894
902
|
};
|
|
895
903
|
table: {
|
|
896
904
|
contrast: {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
905
|
+
cellFill: string;
|
|
906
|
+
cellFillHover: string;
|
|
907
|
+
cellFillNegative: string;
|
|
908
|
+
headerFill: string;
|
|
900
909
|
icon: string;
|
|
901
910
|
stroke: string;
|
|
902
911
|
text: string;
|
|
903
912
|
};
|
|
904
913
|
standard: {
|
|
905
|
-
|
|
906
|
-
|
|
914
|
+
cellFill: string;
|
|
915
|
+
cellFillHover: string;
|
|
907
916
|
fillNegative: string;
|
|
917
|
+
headerFill: string;
|
|
908
918
|
icon: string;
|
|
909
919
|
stroke: string;
|
|
910
920
|
text: string;
|
|
@@ -1324,6 +1334,69 @@ export declare const componentColors: {
|
|
|
1324
1334
|
};
|
|
1325
1335
|
};
|
|
1326
1336
|
};
|
|
1337
|
+
designentur: {
|
|
1338
|
+
basecard: {
|
|
1339
|
+
contrast: {
|
|
1340
|
+
border: string;
|
|
1341
|
+
fill: string;
|
|
1342
|
+
fillTint: string;
|
|
1343
|
+
text: string;
|
|
1344
|
+
};
|
|
1345
|
+
default: {
|
|
1346
|
+
border: string;
|
|
1347
|
+
fill: string;
|
|
1348
|
+
fillTint: string;
|
|
1349
|
+
text: string;
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
dodontcard: {
|
|
1353
|
+
border: string;
|
|
1354
|
+
fill: string;
|
|
1355
|
+
statuslineSuccess: string;
|
|
1356
|
+
statuslineWarning: string;
|
|
1357
|
+
text: string;
|
|
1358
|
+
};
|
|
1359
|
+
footer: {
|
|
1360
|
+
contrast: {
|
|
1361
|
+
divider: string;
|
|
1362
|
+
fill: string;
|
|
1363
|
+
text: string;
|
|
1364
|
+
textSubdued: string;
|
|
1365
|
+
};
|
|
1366
|
+
default: {
|
|
1367
|
+
divider: string;
|
|
1368
|
+
fill: string;
|
|
1369
|
+
text: string;
|
|
1370
|
+
textSubdued: string;
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
header: {
|
|
1374
|
+
contrast: {
|
|
1375
|
+
divider: string;
|
|
1376
|
+
fill: string;
|
|
1377
|
+
};
|
|
1378
|
+
default: {
|
|
1379
|
+
divider: string;
|
|
1380
|
+
fill: string;
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
npmtag: {
|
|
1384
|
+
divide: string;
|
|
1385
|
+
text: string;
|
|
1386
|
+
};
|
|
1387
|
+
playground: {
|
|
1388
|
+
background: string;
|
|
1389
|
+
border: string;
|
|
1390
|
+
panel: string;
|
|
1391
|
+
text: string;
|
|
1392
|
+
};
|
|
1393
|
+
typographycard: {
|
|
1394
|
+
border: string;
|
|
1395
|
+
fill: string;
|
|
1396
|
+
text: string;
|
|
1397
|
+
textSubdued: string;
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1327
1400
|
};
|
|
1328
1401
|
dark: {
|
|
1329
1402
|
components: {
|
|
@@ -2016,6 +2089,14 @@ export declare const componentColors: {
|
|
|
2016
2089
|
text: string;
|
|
2017
2090
|
};
|
|
2018
2091
|
};
|
|
2092
|
+
spinner: {
|
|
2093
|
+
contrast: {
|
|
2094
|
+
fill: string;
|
|
2095
|
+
};
|
|
2096
|
+
standard: {
|
|
2097
|
+
fill: string;
|
|
2098
|
+
};
|
|
2099
|
+
};
|
|
2019
2100
|
skeleton: {
|
|
2020
2101
|
contrast: {
|
|
2021
2102
|
fill: string;
|
|
@@ -2220,17 +2301,19 @@ export declare const componentColors: {
|
|
|
2220
2301
|
};
|
|
2221
2302
|
table: {
|
|
2222
2303
|
contrast: {
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2304
|
+
cellFill: string;
|
|
2305
|
+
cellFillHover: string;
|
|
2306
|
+
cellFillNegative: string;
|
|
2307
|
+
headerFill: string;
|
|
2226
2308
|
icon: string;
|
|
2227
2309
|
stroke: string;
|
|
2228
2310
|
text: string;
|
|
2229
2311
|
};
|
|
2230
2312
|
standard: {
|
|
2231
|
-
|
|
2232
|
-
|
|
2313
|
+
cellFill: string;
|
|
2314
|
+
cellFillHover: string;
|
|
2233
2315
|
fillNegative: string;
|
|
2316
|
+
headerFill: string;
|
|
2234
2317
|
icon: string;
|
|
2235
2318
|
stroke: string;
|
|
2236
2319
|
text: string;
|
|
@@ -2650,5 +2733,68 @@ export declare const componentColors: {
|
|
|
2650
2733
|
};
|
|
2651
2734
|
};
|
|
2652
2735
|
};
|
|
2736
|
+
designentur: {
|
|
2737
|
+
basecard: {
|
|
2738
|
+
contrast: {
|
|
2739
|
+
border: string;
|
|
2740
|
+
fill: string;
|
|
2741
|
+
fillTint: string;
|
|
2742
|
+
text: string;
|
|
2743
|
+
};
|
|
2744
|
+
default: {
|
|
2745
|
+
border: string;
|
|
2746
|
+
fill: string;
|
|
2747
|
+
fillTint: string;
|
|
2748
|
+
text: string;
|
|
2749
|
+
};
|
|
2750
|
+
};
|
|
2751
|
+
dodontcard: {
|
|
2752
|
+
border: string;
|
|
2753
|
+
fill: string;
|
|
2754
|
+
statuslineSuccess: string;
|
|
2755
|
+
statuslineWarning: string;
|
|
2756
|
+
text: string;
|
|
2757
|
+
};
|
|
2758
|
+
footer: {
|
|
2759
|
+
contrast: {
|
|
2760
|
+
divider: string;
|
|
2761
|
+
fill: string;
|
|
2762
|
+
text: string;
|
|
2763
|
+
textSubdued: string;
|
|
2764
|
+
};
|
|
2765
|
+
default: {
|
|
2766
|
+
divider: string;
|
|
2767
|
+
fill: string;
|
|
2768
|
+
text: string;
|
|
2769
|
+
textSubdued: string;
|
|
2770
|
+
};
|
|
2771
|
+
};
|
|
2772
|
+
header: {
|
|
2773
|
+
contrast: {
|
|
2774
|
+
divider: string;
|
|
2775
|
+
fill: string;
|
|
2776
|
+
};
|
|
2777
|
+
default: {
|
|
2778
|
+
divider: string;
|
|
2779
|
+
fill: string;
|
|
2780
|
+
};
|
|
2781
|
+
};
|
|
2782
|
+
npmtag: {
|
|
2783
|
+
divide: string;
|
|
2784
|
+
text: string;
|
|
2785
|
+
};
|
|
2786
|
+
playground: {
|
|
2787
|
+
background: string;
|
|
2788
|
+
border: string;
|
|
2789
|
+
panel: string;
|
|
2790
|
+
text: string;
|
|
2791
|
+
};
|
|
2792
|
+
typographycard: {
|
|
2793
|
+
border: string;
|
|
2794
|
+
fill: string;
|
|
2795
|
+
text: string;
|
|
2796
|
+
textSubdued: string;
|
|
2797
|
+
};
|
|
2798
|
+
};
|
|
2653
2799
|
};
|
|
2654
2800
|
};
|
package/dist/data.scss
CHANGED
|
@@ -3,39 +3,39 @@
|
|
|
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: #
|
|
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: #
|
|
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;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[data-color-mode='dark'] {
|
|
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: #
|
|
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;
|
|
41
41
|
}
|
|
@@ -1346,6 +1346,14 @@ var componentColors = {
|
|
|
1346
1346
|
"text": "#181c56"
|
|
1347
1347
|
}
|
|
1348
1348
|
},
|
|
1349
|
+
"spinner": {
|
|
1350
|
+
"contrast": {
|
|
1351
|
+
"fill": "#ffffff"
|
|
1352
|
+
},
|
|
1353
|
+
"standard": {
|
|
1354
|
+
"fill": "#181c56"
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1349
1357
|
"skeleton": {
|
|
1350
1358
|
"contrast": {
|
|
1351
1359
|
"fill": "#292b6a",
|
|
@@ -1550,17 +1558,19 @@ var componentColors = {
|
|
|
1550
1558
|
},
|
|
1551
1559
|
"table": {
|
|
1552
1560
|
"contrast": {
|
|
1553
|
-
"
|
|
1554
|
-
"
|
|
1555
|
-
"
|
|
1561
|
+
"cellFill": "#ffffff00",
|
|
1562
|
+
"cellFillHover": "#393d79",
|
|
1563
|
+
"cellFillNegative": "#ff949433",
|
|
1564
|
+
"headerFill": "#181c56",
|
|
1556
1565
|
"icon": "#ffffff",
|
|
1557
1566
|
"stroke": "#8284ab",
|
|
1558
1567
|
"text": "#ffffff"
|
|
1559
1568
|
},
|
|
1560
1569
|
"standard": {
|
|
1561
|
-
"
|
|
1562
|
-
"
|
|
1570
|
+
"cellFill": "#ffffff00",
|
|
1571
|
+
"cellFillHover": "#f2f5f7",
|
|
1563
1572
|
"fillNegative": "#ffcece",
|
|
1573
|
+
"headerFill": "#ffffff",
|
|
1564
1574
|
"icon": "#181c56",
|
|
1565
1575
|
"stroke": "#e3e6e8",
|
|
1566
1576
|
"text": "#181c56"
|
|
@@ -1979,6 +1989,69 @@ var componentColors = {
|
|
|
1979
1989
|
}
|
|
1980
1990
|
}
|
|
1981
1991
|
}
|
|
1992
|
+
},
|
|
1993
|
+
"designentur": {
|
|
1994
|
+
"basecard": {
|
|
1995
|
+
"contrast": {
|
|
1996
|
+
"border": "#ffffff00",
|
|
1997
|
+
"fill": "#181c56",
|
|
1998
|
+
"fillTint": "#393d79",
|
|
1999
|
+
"text": "#ffffff"
|
|
2000
|
+
},
|
|
2001
|
+
"default": {
|
|
2002
|
+
"border": "#e5e5e9",
|
|
2003
|
+
"fill": "#f2f5f7",
|
|
2004
|
+
"fillTint": "#f6f6f9",
|
|
2005
|
+
"text": "#181c56"
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
"dodontcard": {
|
|
2009
|
+
"border": "#e3e6e8",
|
|
2010
|
+
"fill": "#f6f6f9",
|
|
2011
|
+
"statuslineSuccess": "#1a8e60",
|
|
2012
|
+
"statuslineWarning": "#ffca28",
|
|
2013
|
+
"text": "#181c56"
|
|
2014
|
+
},
|
|
2015
|
+
"footer": {
|
|
2016
|
+
"contrast": {
|
|
2017
|
+
"divider": "#e5e5e9",
|
|
2018
|
+
"fill": "#181c56",
|
|
2019
|
+
"text": "#ffffff",
|
|
2020
|
+
"textSubdued": "#d9dae8"
|
|
2021
|
+
},
|
|
2022
|
+
"default": {
|
|
2023
|
+
"divider": "#e5e5e9",
|
|
2024
|
+
"fill": "#f2f5f7",
|
|
2025
|
+
"text": "#181c56",
|
|
2026
|
+
"textSubdued": "#626493"
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
"header": {
|
|
2030
|
+
"contrast": {
|
|
2031
|
+
"divider": "#ffffff00",
|
|
2032
|
+
"fill": "#181c56"
|
|
2033
|
+
},
|
|
2034
|
+
"default": {
|
|
2035
|
+
"divider": "#e3e6e8",
|
|
2036
|
+
"fill": "#ffffff"
|
|
2037
|
+
}
|
|
2038
|
+
},
|
|
2039
|
+
"npmtag": {
|
|
2040
|
+
"divide": "#949699",
|
|
2041
|
+
"text": "#6e6f73"
|
|
2042
|
+
},
|
|
2043
|
+
"playground": {
|
|
2044
|
+
"background": "#f6f6f9",
|
|
2045
|
+
"border": "#e3e6e8",
|
|
2046
|
+
"panel": "#ffffff",
|
|
2047
|
+
"text": "#181c56"
|
|
2048
|
+
},
|
|
2049
|
+
"typographycard": {
|
|
2050
|
+
"border": "#e3e6e8",
|
|
2051
|
+
"fill": "#ffffff",
|
|
2052
|
+
"text": "#181c56",
|
|
2053
|
+
"textSubdued": "#626493"
|
|
2054
|
+
}
|
|
1982
2055
|
}
|
|
1983
2056
|
},
|
|
1984
2057
|
"dark": {
|
|
@@ -2672,6 +2745,14 @@ var componentColors = {
|
|
|
2672
2745
|
"text": "#e5e5e9"
|
|
2673
2746
|
}
|
|
2674
2747
|
},
|
|
2748
|
+
"spinner": {
|
|
2749
|
+
"contrast": {
|
|
2750
|
+
"fill": "#e5e5e9"
|
|
2751
|
+
},
|
|
2752
|
+
"standard": {
|
|
2753
|
+
"fill": "#e5e5e9"
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2675
2756
|
"skeleton": {
|
|
2676
2757
|
"contrast": {
|
|
2677
2758
|
"fill": "#2d2e3e",
|
|
@@ -2876,17 +2957,19 @@ var componentColors = {
|
|
|
2876
2957
|
},
|
|
2877
2958
|
"table": {
|
|
2878
2959
|
"contrast": {
|
|
2879
|
-
"
|
|
2880
|
-
"
|
|
2881
|
-
"
|
|
2960
|
+
"cellFill": "#ffffff00",
|
|
2961
|
+
"cellFillHover": "#e5e5e926",
|
|
2962
|
+
"cellFillNegative": "#ff949433",
|
|
2963
|
+
"headerFill": "#08091c",
|
|
2882
2964
|
"icon": "#e5e5e9",
|
|
2883
2965
|
"stroke": "#81828f",
|
|
2884
2966
|
"text": "#e5e5e9"
|
|
2885
2967
|
},
|
|
2886
2968
|
"standard": {
|
|
2887
|
-
"
|
|
2888
|
-
"
|
|
2969
|
+
"cellFill": "#ffffff00",
|
|
2970
|
+
"cellFillHover": "#e5e5e926",
|
|
2889
2971
|
"fillNegative": "#ff949433",
|
|
2972
|
+
"headerFill": "#08091c",
|
|
2890
2973
|
"icon": "#e5e5e9",
|
|
2891
2974
|
"stroke": "#81828f",
|
|
2892
2975
|
"text": "#e5e5e9"
|
|
@@ -3305,6 +3388,69 @@ var componentColors = {
|
|
|
3305
3388
|
}
|
|
3306
3389
|
}
|
|
3307
3390
|
}
|
|
3391
|
+
},
|
|
3392
|
+
"designentur": {
|
|
3393
|
+
"basecard": {
|
|
3394
|
+
"contrast": {
|
|
3395
|
+
"border": "#81828f",
|
|
3396
|
+
"fill": "#e5e5e926",
|
|
3397
|
+
"fillTint": "#e5e5e940",
|
|
3398
|
+
"text": "#e5e5e9"
|
|
3399
|
+
},
|
|
3400
|
+
"default": {
|
|
3401
|
+
"border": "#81828f",
|
|
3402
|
+
"fill": "#e5e5e926",
|
|
3403
|
+
"fillTint": "#e5e5e940",
|
|
3404
|
+
"text": "#e5e5e9"
|
|
3405
|
+
}
|
|
3406
|
+
},
|
|
3407
|
+
"dodontcard": {
|
|
3408
|
+
"border": "#81828f",
|
|
3409
|
+
"fill": "#e5e5e926",
|
|
3410
|
+
"statuslineSuccess": "#9cd9c2",
|
|
3411
|
+
"statuslineWarning": "#ffeeb3",
|
|
3412
|
+
"text": "#e5e5e9"
|
|
3413
|
+
},
|
|
3414
|
+
"footer": {
|
|
3415
|
+
"contrast": {
|
|
3416
|
+
"divider": "#81828f",
|
|
3417
|
+
"fill": "#2d2e3e",
|
|
3418
|
+
"text": "#e5e5e9",
|
|
3419
|
+
"textSubdued": "#b3b4bd"
|
|
3420
|
+
},
|
|
3421
|
+
"default": {
|
|
3422
|
+
"divider": "#81828f",
|
|
3423
|
+
"fill": "#2d2e3e",
|
|
3424
|
+
"text": "#e5e5e9",
|
|
3425
|
+
"textSubdued": "#b3b4bd"
|
|
3426
|
+
}
|
|
3427
|
+
},
|
|
3428
|
+
"header": {
|
|
3429
|
+
"contrast": {
|
|
3430
|
+
"divider": "#81828f",
|
|
3431
|
+
"fill": "#08091c"
|
|
3432
|
+
},
|
|
3433
|
+
"default": {
|
|
3434
|
+
"divider": "#81828f",
|
|
3435
|
+
"fill": "#08091c"
|
|
3436
|
+
}
|
|
3437
|
+
},
|
|
3438
|
+
"npmtag": {
|
|
3439
|
+
"divide": "#e5e5e9",
|
|
3440
|
+
"text": "#e5e5e9"
|
|
3441
|
+
},
|
|
3442
|
+
"playground": {
|
|
3443
|
+
"background": "#141527",
|
|
3444
|
+
"border": "#b3b4bd",
|
|
3445
|
+
"panel": "#e5e5e926",
|
|
3446
|
+
"text": "#e5e5e9"
|
|
3447
|
+
},
|
|
3448
|
+
"typographycard": {
|
|
3449
|
+
"border": "#b3b4bd",
|
|
3450
|
+
"fill": "#e5e5e926",
|
|
3451
|
+
"text": "#e5e5e9",
|
|
3452
|
+
"textSubdued": "#b3b4bd"
|
|
3453
|
+
}
|
|
3308
3454
|
}
|
|
3309
3455
|
}
|
|
3310
3456
|
};
|
|
@@ -3626,7 +3772,7 @@ function createColorSet(fileData) {
|
|
|
3626
3772
|
scss: {
|
|
3627
3773
|
key: "$" + colorNameInKebabCase,
|
|
3628
3774
|
value: usesAlias ? "$" + varNameInKebabCase : hexValue,
|
|
3629
|
-
sanitizedValue: "#{$" + varNameInKebabCase + "}"
|
|
3775
|
+
sanitizedValue: usesAlias ? "#{$" + varNameInKebabCase + "}" : hexValue
|
|
3630
3776
|
},
|
|
3631
3777
|
less: {
|
|
3632
3778
|
key: "@" + colorNameInKebabCase,
|
|
@@ -3652,7 +3798,7 @@ function createColorsOutputString(_ref) {
|
|
|
3652
3798
|
withColorMode = _ref.withColorMode,
|
|
3653
3799
|
importFileNames = _ref.importFileNames;
|
|
3654
3800
|
var needsRoot = keyType === 'css';
|
|
3655
|
-
var needsImport = colorSet.
|
|
3801
|
+
var needsImport = colorSet.some(function (color) {
|
|
3656
3802
|
return color.usesAlias;
|
|
3657
3803
|
});
|
|
3658
3804
|
if (withColorMode) {
|
|
@@ -3724,7 +3870,10 @@ function createColorsFileData(_ref3) {
|
|
|
3724
3870
|
keyType = _ref3.keyType,
|
|
3725
3871
|
valueType = _ref3.valueType,
|
|
3726
3872
|
name = _ref3.name,
|
|
3727
|
-
outputToPackages = _ref3.outputToPackages
|
|
3873
|
+
outputToPackages = _ref3.outputToPackages,
|
|
3874
|
+
_ref3$withColorMode = _ref3.withColorMode,
|
|
3875
|
+
withColorMode = _ref3$withColorMode === void 0 ? false : _ref3$withColorMode,
|
|
3876
|
+
importFileNames = _ref3.importFileNames;
|
|
3728
3877
|
var outputString = '';
|
|
3729
3878
|
if (outputToPackages) {
|
|
3730
3879
|
var outputData = [];
|
|
@@ -3793,7 +3942,8 @@ function createColorsFileData(_ref3) {
|
|
|
3793
3942
|
colorSet: colorSet,
|
|
3794
3943
|
keyType: keyType,
|
|
3795
3944
|
valueType: valueType,
|
|
3796
|
-
withColorMode:
|
|
3945
|
+
withColorMode: withColorMode,
|
|
3946
|
+
importFileNames: importFileNames
|
|
3797
3947
|
});
|
|
3798
3948
|
}
|
|
3799
3949
|
return [{
|