@ledgerhq/lumen-design-core 0.0.39 → 0.0.41
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 +2 -2
- package/dist/presets/allBrands.d.ts +2 -14
- package/dist/presets/allBrands.d.ts.map +1 -1
- package/dist/presets/allBrands.js +2 -0
- package/dist/presets/enterprise.d.ts +2 -14
- package/dist/presets/enterprise.d.ts.map +1 -1
- package/dist/presets/enterprise.js +2 -0
- package/dist/presets/ledger-live.d.ts +2 -14
- package/dist/presets/ledger-live.d.ts.map +1 -1
- package/dist/presets/ledger-live.js +2 -0
- package/dist/presets/websites.d.ts +2 -14
- package/dist/presets/websites.d.ts.map +1 -1
- package/dist/presets/websites.js +2 -0
- package/dist/themes/css/enterprise/theme.dark-css.d.ts.map +1 -1
- package/dist/themes/css/enterprise/theme.dark-css.js +17 -0
- package/dist/themes/css/enterprise/theme.light-css.d.ts.map +1 -1
- package/dist/themes/css/enterprise/theme.light-css.js +21 -4
- package/dist/themes/css/ledger-live/theme.dark-css.d.ts.map +1 -1
- package/dist/themes/css/ledger-live/theme.dark-css.js +8 -0
- package/dist/themes/css/ledger-live/theme.light-css.d.ts.map +1 -1
- package/dist/themes/css/ledger-live/theme.light-css.js +12 -4
- package/dist/themes/css/primitives-css.d.ts.map +1 -1
- package/dist/themes/css/primitives-css.js +168 -167
- package/dist/themes/css/typographies/typography.lg-css.d.ts.map +1 -1
- package/dist/themes/css/typographies/typography.lg-css.js +19 -14
- package/dist/themes/css/typographies/typography.md-css.d.ts.map +1 -1
- package/dist/themes/css/typographies/typography.md-css.js +19 -14
- package/dist/themes/css/typographies/typography.sm-css.d.ts.map +1 -1
- package/dist/themes/css/typographies/typography.sm-css.js +19 -14
- package/dist/themes/css/typographies/typography.xl-css.d.ts.map +1 -1
- package/dist/themes/css/typographies/typography.xl-css.js +19 -14
- package/dist/themes/css/websites/theme.dark-css.d.ts.map +1 -1
- package/dist/themes/css/websites/theme.dark-css.js +17 -0
- package/dist/themes/css/websites/theme.light-css.d.ts.map +1 -1
- package/dist/themes/css/websites/theme.light-css.js +21 -4
- package/dist/themes/js/enterprise/theme.d.ts +698 -88
- package/dist/themes/js/enterprise/theme.d.ts.map +1 -1
- package/dist/themes/js/enterprise/theme.dark.d.ts +225 -4
- package/dist/themes/js/enterprise/theme.dark.d.ts.map +1 -1
- package/dist/themes/js/enterprise/theme.dark.js +83 -75
- package/dist/themes/js/enterprise/theme.light.d.ts +221 -0
- package/dist/themes/js/enterprise/theme.light.d.ts.map +1 -1
- package/dist/themes/js/enterprise/theme.light.js +79 -71
- package/dist/themes/js/ledger-live/theme.d.ts +698 -88
- package/dist/themes/js/ledger-live/theme.d.ts.map +1 -1
- package/dist/themes/js/ledger-live/theme.dark.d.ts +225 -4
- package/dist/themes/js/ledger-live/theme.dark.d.ts.map +1 -1
- package/dist/themes/js/ledger-live/theme.dark.js +83 -75
- package/dist/themes/js/ledger-live/theme.light.d.ts +221 -0
- package/dist/themes/js/ledger-live/theme.light.d.ts.map +1 -1
- package/dist/themes/js/ledger-live/theme.light.js +79 -71
- package/dist/themes/js/primitives/primitive.colors.d.ts +146 -142
- package/dist/themes/js/primitives/primitive.colors.d.ts.map +1 -1
- package/dist/themes/js/primitives/primitive.colors.js +146 -142
- package/dist/themes/js/primitives/primitive.gradients.d.ts +437 -0
- package/dist/themes/js/primitives/primitive.gradients.d.ts.map +1 -0
- package/dist/themes/js/primitives/primitive.gradients.js +9 -0
- package/dist/themes/js/types.d.ts +21 -0
- package/dist/themes/js/types.d.ts.map +1 -1
- package/dist/themes/js/typographies/index.d.ts +84 -28
- package/dist/themes/js/typographies/index.d.ts.map +1 -1
- package/dist/themes/js/typographies/typography.lg.d.ts +21 -7
- package/dist/themes/js/typographies/typography.lg.d.ts.map +1 -1
- package/dist/themes/js/typographies/typography.md.d.ts +21 -7
- package/dist/themes/js/typographies/typography.md.d.ts.map +1 -1
- package/dist/themes/js/typographies/typography.md.js +21 -7
- package/dist/themes/js/typographies/typography.sm.d.ts +24 -10
- package/dist/themes/js/typographies/typography.sm.d.ts.map +1 -1
- package/dist/themes/js/typographies/typography.sm.js +24 -10
- package/dist/themes/js/typographies/typography.xl.d.ts +21 -7
- package/dist/themes/js/typographies/typography.xl.d.ts.map +1 -1
- package/dist/themes/js/utils/extractCryptoGradients.d.ts +216 -0
- package/dist/themes/js/utils/extractCryptoGradients.d.ts.map +1 -0
- package/dist/themes/js/utils/extractCryptoGradients.js +22 -0
- package/dist/themes/js/websites/theme.d.ts +698 -88
- package/dist/themes/js/websites/theme.d.ts.map +1 -1
- package/dist/themes/js/websites/theme.dark.d.ts +225 -4
- package/dist/themes/js/websites/theme.dark.d.ts.map +1 -1
- package/dist/themes/js/websites/theme.dark.js +83 -75
- package/dist/themes/js/websites/theme.light.d.ts +221 -0
- package/dist/themes/js/websites/theme.light.d.ts.map +1 -1
- package/dist/themes/js/websites/theme.light.js +79 -71
- package/dist/utils/createAnimationsPlugin.d.ts +4 -4
- package/dist/utils/createAnimationsPlugin.d.ts.map +1 -1
- package/dist/utils/createAnimationsPlugin.js +9 -83
- package/dist/utils/createCustomPlugin.d.ts +7 -16
- package/dist/utils/createCustomPlugin.d.ts.map +1 -1
- package/dist/utils/createCustomPlugin.js +17 -1
- package/dist/utils/createPrimitivesPlugin.d.ts +4 -4
- package/dist/utils/createPrimitivesPlugin.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -31,6 +31,9 @@ export const typographySmTokens = {
|
|
|
31
31
|
lineHeight: primitiveTypographyTokens.lineHeight['40'],
|
|
32
32
|
letterSpacing: primitiveTypographyTokens.letterSpacing['40'],
|
|
33
33
|
},
|
|
34
|
+
/**
|
|
35
|
+
* Headings
|
|
36
|
+
*/
|
|
34
37
|
heading0: {
|
|
35
38
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
36
39
|
fontSize: primitiveTypographyTokens.fontSize['48'],
|
|
@@ -45,59 +48,70 @@ export const typographySmTokens = {
|
|
|
45
48
|
lineHeight: primitiveTypographyTokens.lineHeight['48'],
|
|
46
49
|
letterSpacing: primitiveTypographyTokens.letterSpacing['48'],
|
|
47
50
|
},
|
|
48
|
-
/**
|
|
49
|
-
* Headings
|
|
50
|
-
*/
|
|
51
51
|
heading1: {
|
|
52
|
+
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
53
|
+
fontSize: primitiveTypographyTokens.fontSize['40'],
|
|
54
|
+
fontWeight: primitiveTypographyTokens.fontWeight.medium,
|
|
55
|
+
lineHeight: primitiveTypographyTokens.lineHeight['40'],
|
|
56
|
+
letterSpacing: primitiveTypographyTokens.letterSpacing['40'],
|
|
57
|
+
},
|
|
58
|
+
heading1SemiBold: {
|
|
59
|
+
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
60
|
+
fontSize: primitiveTypographyTokens.fontSize['40'],
|
|
61
|
+
fontWeight: primitiveTypographyTokens.fontWeight.semiBold,
|
|
62
|
+
lineHeight: primitiveTypographyTokens.lineHeight['40'],
|
|
63
|
+
letterSpacing: primitiveTypographyTokens.letterSpacing['40'],
|
|
64
|
+
},
|
|
65
|
+
heading2: {
|
|
52
66
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
53
67
|
fontSize: primitiveTypographyTokens.fontSize['28'],
|
|
54
68
|
fontWeight: primitiveTypographyTokens.fontWeight.medium,
|
|
55
69
|
lineHeight: primitiveTypographyTokens.lineHeight['28'],
|
|
56
70
|
letterSpacing: primitiveTypographyTokens.letterSpacing['28'],
|
|
57
71
|
},
|
|
58
|
-
|
|
72
|
+
heading2SemiBold: {
|
|
59
73
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
60
74
|
fontSize: primitiveTypographyTokens.fontSize['28'],
|
|
61
75
|
fontWeight: primitiveTypographyTokens.fontWeight.semiBold,
|
|
62
76
|
lineHeight: primitiveTypographyTokens.lineHeight['28'],
|
|
63
77
|
letterSpacing: primitiveTypographyTokens.letterSpacing['28'],
|
|
64
78
|
},
|
|
65
|
-
|
|
79
|
+
heading3: {
|
|
66
80
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
67
81
|
fontSize: primitiveTypographyTokens.fontSize['24'],
|
|
68
82
|
fontWeight: primitiveTypographyTokens.fontWeight.medium,
|
|
69
83
|
lineHeight: primitiveTypographyTokens.lineHeight['24'],
|
|
70
84
|
letterSpacing: primitiveTypographyTokens.letterSpacing['24'],
|
|
71
85
|
},
|
|
72
|
-
|
|
86
|
+
heading3SemiBold: {
|
|
73
87
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
74
88
|
fontSize: primitiveTypographyTokens.fontSize['24'],
|
|
75
89
|
fontWeight: primitiveTypographyTokens.fontWeight.semiBold,
|
|
76
90
|
lineHeight: primitiveTypographyTokens.lineHeight['24'],
|
|
77
91
|
letterSpacing: primitiveTypographyTokens.letterSpacing['24'],
|
|
78
92
|
},
|
|
79
|
-
|
|
93
|
+
heading4: {
|
|
80
94
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
81
95
|
fontSize: primitiveTypographyTokens.fontSize['20'],
|
|
82
96
|
fontWeight: primitiveTypographyTokens.fontWeight.medium,
|
|
83
97
|
lineHeight: primitiveTypographyTokens.lineHeight['20'],
|
|
84
98
|
letterSpacing: primitiveTypographyTokens.letterSpacing['20'],
|
|
85
99
|
},
|
|
86
|
-
|
|
100
|
+
heading4SemiBold: {
|
|
87
101
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
88
102
|
fontSize: primitiveTypographyTokens.fontSize['20'],
|
|
89
103
|
fontWeight: primitiveTypographyTokens.fontWeight.semiBold,
|
|
90
104
|
lineHeight: primitiveTypographyTokens.lineHeight['20'],
|
|
91
105
|
letterSpacing: primitiveTypographyTokens.letterSpacing['20'],
|
|
92
106
|
},
|
|
93
|
-
|
|
107
|
+
heading5: {
|
|
94
108
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
95
109
|
fontSize: primitiveTypographyTokens.fontSize['18'],
|
|
96
110
|
fontWeight: primitiveTypographyTokens.fontWeight.medium,
|
|
97
111
|
lineHeight: primitiveTypographyTokens.lineHeight['18'],
|
|
98
112
|
letterSpacing: primitiveTypographyTokens.letterSpacing['18'],
|
|
99
113
|
},
|
|
100
|
-
|
|
114
|
+
heading5SemiBold: {
|
|
101
115
|
fontFamily: primitiveTypographyTokens.fontFamily.sans,
|
|
102
116
|
fontSize: primitiveTypographyTokens.fontSize['18'],
|
|
103
117
|
fontWeight: primitiveTypographyTokens.fontWeight.semiBold,
|
|
@@ -42,55 +42,69 @@ export declare const typographyXlTokens: {
|
|
|
42
42
|
readonly letterSpacing: -2.5;
|
|
43
43
|
};
|
|
44
44
|
readonly heading1: {
|
|
45
|
+
readonly fontFamily: "Inter";
|
|
46
|
+
readonly fontSize: 40;
|
|
47
|
+
readonly fontWeight: "500";
|
|
48
|
+
readonly lineHeight: 48;
|
|
49
|
+
readonly letterSpacing: -2;
|
|
50
|
+
};
|
|
51
|
+
readonly heading1SemiBold: {
|
|
52
|
+
readonly fontFamily: "Inter";
|
|
53
|
+
readonly fontSize: 40;
|
|
54
|
+
readonly fontWeight: "600";
|
|
55
|
+
readonly lineHeight: 48;
|
|
56
|
+
readonly letterSpacing: -2;
|
|
57
|
+
};
|
|
58
|
+
readonly heading2: {
|
|
45
59
|
readonly fontFamily: "Inter";
|
|
46
60
|
readonly fontSize: 28;
|
|
47
61
|
readonly fontWeight: "500";
|
|
48
62
|
readonly lineHeight: 36;
|
|
49
63
|
readonly letterSpacing: -1.5;
|
|
50
64
|
};
|
|
51
|
-
readonly
|
|
65
|
+
readonly heading2SemiBold: {
|
|
52
66
|
readonly fontFamily: "Inter";
|
|
53
67
|
readonly fontSize: 28;
|
|
54
68
|
readonly fontWeight: "600";
|
|
55
69
|
readonly lineHeight: 36;
|
|
56
70
|
readonly letterSpacing: -1.5;
|
|
57
71
|
};
|
|
58
|
-
readonly
|
|
72
|
+
readonly heading3: {
|
|
59
73
|
readonly fontFamily: "Inter";
|
|
60
74
|
readonly fontSize: 24;
|
|
61
75
|
readonly fontWeight: "500";
|
|
62
76
|
readonly lineHeight: 32;
|
|
63
77
|
readonly letterSpacing: -1;
|
|
64
78
|
};
|
|
65
|
-
readonly
|
|
79
|
+
readonly heading3SemiBold: {
|
|
66
80
|
readonly fontFamily: "Inter";
|
|
67
81
|
readonly fontSize: 24;
|
|
68
82
|
readonly fontWeight: "600";
|
|
69
83
|
readonly lineHeight: 32;
|
|
70
84
|
readonly letterSpacing: -1;
|
|
71
85
|
};
|
|
72
|
-
readonly
|
|
86
|
+
readonly heading4: {
|
|
73
87
|
readonly fontFamily: "Inter";
|
|
74
88
|
readonly fontSize: 20;
|
|
75
89
|
readonly fontWeight: "500";
|
|
76
90
|
readonly lineHeight: 28;
|
|
77
91
|
readonly letterSpacing: -1;
|
|
78
92
|
};
|
|
79
|
-
readonly
|
|
93
|
+
readonly heading4SemiBold: {
|
|
80
94
|
readonly fontFamily: "Inter";
|
|
81
95
|
readonly fontSize: 20;
|
|
82
96
|
readonly fontWeight: "600";
|
|
83
97
|
readonly lineHeight: 28;
|
|
84
98
|
readonly letterSpacing: -1;
|
|
85
99
|
};
|
|
86
|
-
readonly
|
|
100
|
+
readonly heading5: {
|
|
87
101
|
readonly fontFamily: "Inter";
|
|
88
102
|
readonly fontSize: 18;
|
|
89
103
|
readonly fontWeight: "500";
|
|
90
104
|
readonly lineHeight: 26;
|
|
91
105
|
readonly letterSpacing: -0.5;
|
|
92
106
|
};
|
|
93
|
-
readonly
|
|
107
|
+
readonly heading5SemiBold: {
|
|
94
108
|
readonly fontFamily: "Inter";
|
|
95
109
|
readonly fontSize: 18;
|
|
96
110
|
readonly fontWeight: "600";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.xl.d.ts","sourceRoot":"","sources":["../../../../src/themes/js/typographies/typography.xl.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"typography.xl.d.ts","sourceRoot":"","sources":["../../../../src/themes/js/typographies/typography.xl.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEM,CAAC"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
export declare const extractCryptoGradients: (mode: "dark" | "light") => {
|
|
2
|
+
aion: {
|
|
3
|
+
color: string;
|
|
4
|
+
}[];
|
|
5
|
+
algorand: {
|
|
6
|
+
color: string;
|
|
7
|
+
}[];
|
|
8
|
+
avax: {
|
|
9
|
+
color: string;
|
|
10
|
+
}[];
|
|
11
|
+
bat: {
|
|
12
|
+
color: string;
|
|
13
|
+
}[];
|
|
14
|
+
bgb: {
|
|
15
|
+
color: string;
|
|
16
|
+
}[];
|
|
17
|
+
bitcoin: {
|
|
18
|
+
color: string;
|
|
19
|
+
}[];
|
|
20
|
+
bitcoinCash: {
|
|
21
|
+
color: string;
|
|
22
|
+
}[];
|
|
23
|
+
bitcoinGold: {
|
|
24
|
+
color: string;
|
|
25
|
+
}[];
|
|
26
|
+
bitcoinSv: {
|
|
27
|
+
color: string;
|
|
28
|
+
}[];
|
|
29
|
+
binance: {
|
|
30
|
+
color: string;
|
|
31
|
+
}[];
|
|
32
|
+
bytecoin: {
|
|
33
|
+
color: string;
|
|
34
|
+
}[];
|
|
35
|
+
cardano: {
|
|
36
|
+
color: string;
|
|
37
|
+
}[];
|
|
38
|
+
cosmos: {
|
|
39
|
+
color: string;
|
|
40
|
+
}[];
|
|
41
|
+
compound: {
|
|
42
|
+
color: string;
|
|
43
|
+
}[];
|
|
44
|
+
celo: {
|
|
45
|
+
color: string;
|
|
46
|
+
}[];
|
|
47
|
+
celo2: {
|
|
48
|
+
color: string;
|
|
49
|
+
}[];
|
|
50
|
+
chainlink: {
|
|
51
|
+
color: string;
|
|
52
|
+
}[];
|
|
53
|
+
cro: {
|
|
54
|
+
color: string;
|
|
55
|
+
}[];
|
|
56
|
+
dash: {
|
|
57
|
+
color: string;
|
|
58
|
+
}[];
|
|
59
|
+
dai: {
|
|
60
|
+
color: string;
|
|
61
|
+
}[];
|
|
62
|
+
decred: {
|
|
63
|
+
color: string;
|
|
64
|
+
}[];
|
|
65
|
+
digibyte: {
|
|
66
|
+
color: string;
|
|
67
|
+
}[];
|
|
68
|
+
dogecoin: {
|
|
69
|
+
color: string;
|
|
70
|
+
}[];
|
|
71
|
+
dydx: {
|
|
72
|
+
color: string;
|
|
73
|
+
}[];
|
|
74
|
+
dym: {
|
|
75
|
+
color: string;
|
|
76
|
+
}[];
|
|
77
|
+
elrond: {
|
|
78
|
+
color: string;
|
|
79
|
+
}[];
|
|
80
|
+
eng: {
|
|
81
|
+
color: string;
|
|
82
|
+
}[];
|
|
83
|
+
eos: {
|
|
84
|
+
color: string;
|
|
85
|
+
}[];
|
|
86
|
+
ethergem: {
|
|
87
|
+
color: string;
|
|
88
|
+
}[];
|
|
89
|
+
ethereum: {
|
|
90
|
+
color: string;
|
|
91
|
+
}[];
|
|
92
|
+
ethereumClassic: {
|
|
93
|
+
color: string;
|
|
94
|
+
}[];
|
|
95
|
+
flr: {
|
|
96
|
+
color: string;
|
|
97
|
+
}[];
|
|
98
|
+
ftm: {
|
|
99
|
+
color: string;
|
|
100
|
+
}[];
|
|
101
|
+
hedera: {
|
|
102
|
+
color: string;
|
|
103
|
+
}[];
|
|
104
|
+
hnt: {
|
|
105
|
+
color: string;
|
|
106
|
+
}[];
|
|
107
|
+
huobi: {
|
|
108
|
+
color: string;
|
|
109
|
+
}[];
|
|
110
|
+
iota: {
|
|
111
|
+
color: string;
|
|
112
|
+
}[];
|
|
113
|
+
komodo: {
|
|
114
|
+
color: string;
|
|
115
|
+
}[];
|
|
116
|
+
leo: {
|
|
117
|
+
color: string;
|
|
118
|
+
}[];
|
|
119
|
+
litecoin: {
|
|
120
|
+
color: string;
|
|
121
|
+
}[];
|
|
122
|
+
monero: {
|
|
123
|
+
color: string;
|
|
124
|
+
}[];
|
|
125
|
+
multiverseX: {
|
|
126
|
+
color: string;
|
|
127
|
+
}[];
|
|
128
|
+
nano: {
|
|
129
|
+
color: string;
|
|
130
|
+
}[];
|
|
131
|
+
near: {
|
|
132
|
+
color: string;
|
|
133
|
+
}[];
|
|
134
|
+
neo: {
|
|
135
|
+
color: string;
|
|
136
|
+
}[];
|
|
137
|
+
nimiq: {
|
|
138
|
+
color: string;
|
|
139
|
+
}[];
|
|
140
|
+
omgNetwork: {
|
|
141
|
+
color: string;
|
|
142
|
+
}[];
|
|
143
|
+
okb: {
|
|
144
|
+
color: string;
|
|
145
|
+
}[];
|
|
146
|
+
osmo: {
|
|
147
|
+
color: string;
|
|
148
|
+
}[];
|
|
149
|
+
peercoin: {
|
|
150
|
+
color: string;
|
|
151
|
+
}[];
|
|
152
|
+
pirl: {
|
|
153
|
+
color: string;
|
|
154
|
+
}[];
|
|
155
|
+
pivx: {
|
|
156
|
+
color: string;
|
|
157
|
+
}[];
|
|
158
|
+
polkadot: {
|
|
159
|
+
color: string;
|
|
160
|
+
}[];
|
|
161
|
+
polygon: {
|
|
162
|
+
color: string;
|
|
163
|
+
}[];
|
|
164
|
+
qnt: {
|
|
165
|
+
color: string;
|
|
166
|
+
}[];
|
|
167
|
+
sats: {
|
|
168
|
+
color: string;
|
|
169
|
+
}[];
|
|
170
|
+
stellar: {
|
|
171
|
+
color: string;
|
|
172
|
+
}[];
|
|
173
|
+
sol: {
|
|
174
|
+
color: string;
|
|
175
|
+
}[];
|
|
176
|
+
tetherUsdt: {
|
|
177
|
+
color: string;
|
|
178
|
+
}[];
|
|
179
|
+
tezos: {
|
|
180
|
+
color: string;
|
|
181
|
+
}[];
|
|
182
|
+
tkx: {
|
|
183
|
+
color: string;
|
|
184
|
+
}[];
|
|
185
|
+
tron: {
|
|
186
|
+
color: string;
|
|
187
|
+
}[];
|
|
188
|
+
uniswap: {
|
|
189
|
+
color: string;
|
|
190
|
+
}[];
|
|
191
|
+
tusd: {
|
|
192
|
+
color: string;
|
|
193
|
+
}[];
|
|
194
|
+
usdc: {
|
|
195
|
+
color: string;
|
|
196
|
+
}[];
|
|
197
|
+
uni: {
|
|
198
|
+
color: string;
|
|
199
|
+
}[];
|
|
200
|
+
waves: {
|
|
201
|
+
color: string;
|
|
202
|
+
}[];
|
|
203
|
+
xrp: {
|
|
204
|
+
color: string;
|
|
205
|
+
}[];
|
|
206
|
+
xin: {
|
|
207
|
+
color: string;
|
|
208
|
+
}[];
|
|
209
|
+
yieldly: {
|
|
210
|
+
color: string;
|
|
211
|
+
}[];
|
|
212
|
+
zcash: {
|
|
213
|
+
color: string;
|
|
214
|
+
}[];
|
|
215
|
+
};
|
|
216
|
+
//# sourceMappingURL=extractCryptoGradients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractCryptoGradients.d.ts","sourceRoot":"","sources":["../../../../src/themes/js/utils/extractCryptoGradients.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,sBAAsB,GAAI,MAAM,MAAM,GAAG,OAAO;;eAKJ,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;;eAAN,MAAM;;CAgB9D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { primitiveColorTokens } from '../primitives/primitive.colors';
|
|
2
|
+
function typedKeys(obj) {
|
|
3
|
+
return Object.keys(obj);
|
|
4
|
+
}
|
|
5
|
+
export const extractCryptoGradients = (mode) => {
|
|
6
|
+
const cryptoColors = primitiveColorTokens[mode].crypto;
|
|
7
|
+
const cryptoTransparentColors = primitiveColorTokens[mode].cryptoTransparent;
|
|
8
|
+
const keys = typedKeys(cryptoColors);
|
|
9
|
+
return keys.reduce((acc, colorKey) => {
|
|
10
|
+
return {
|
|
11
|
+
...acc,
|
|
12
|
+
[colorKey]: [
|
|
13
|
+
{
|
|
14
|
+
color: cryptoColors[colorKey],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
color: cryptoTransparentColors[colorKey],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
}, {});
|
|
22
|
+
};
|