@skbkontur/colors 2.0.0-alpha.0 → 2.0.0-alpha.1
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/cjs/get-colors.js +12 -3
- package/dist/cjs/get-default-tokens.d.ts +12 -12
- package/dist/cjs/get-default-tokens.js +15 -16
- package/dist/colors.default-dark.js +9 -9
- package/dist/colors.default-light.js +6 -6
- package/dist/colors.js +6 -6
- package/dist/colors.less +6 -6
- package/dist/colors.scss +6 -6
- package/dist/esm/get-colors.js +12 -3
- package/dist/esm/get-default-tokens.d.ts +12 -12
- package/dist/esm/get-default-tokens.js +15 -16
- package/dist/tokens/brand-blue-deep_accent-brand.css +640 -640
- package/dist/tokens/brand-blue-deep_accent-gray.css +640 -640
- package/dist/tokens/brand-blue_accent-brand.css +640 -640
- package/dist/tokens/brand-blue_accent-gray.css +640 -640
- package/dist/tokens/brand-green_accent-brand.css +640 -640
- package/dist/tokens/brand-green_accent-gray.css +640 -640
- package/dist/tokens/brand-mint_accent-brand.css +640 -640
- package/dist/tokens/brand-mint_accent-gray.css +640 -640
- package/dist/tokens/brand-orange_accent-gray.css +640 -640
- package/dist/tokens/brand-purple_accent-brand.css +640 -640
- package/dist/tokens/brand-purple_accent-gray.css +640 -640
- package/dist/tokens/brand-red_accent-gray.css +640 -640
- package/dist/tokens/brand-violet_accent-brand.css +640 -640
- package/dist/tokens/brand-violet_accent-gray.css +640 -640
- package/dist/tokens-js/brand-blue-deep_accent-brand.js +15 -15
- package/dist/tokens-js/brand-blue-deep_accent-gray.js +15 -15
- package/dist/tokens-js/brand-blue_accent-brand.js +15 -15
- package/dist/tokens-js/brand-blue_accent-gray.js +15 -15
- package/dist/tokens-js/brand-green_accent-brand.js +15 -15
- package/dist/tokens-js/brand-green_accent-gray.js +15 -15
- package/dist/tokens-js/brand-mint_accent-brand.js +15 -15
- package/dist/tokens-js/brand-mint_accent-gray.js +15 -15
- package/dist/tokens-js/brand-orange_accent-gray.js +15 -15
- package/dist/tokens-js/brand-purple_accent-brand.js +15 -15
- package/dist/tokens-js/brand-purple_accent-gray.js +15 -15
- package/dist/tokens-js/brand-red_accent-gray.js +15 -15
- package/dist/tokens-js/brand-violet_accent-brand.js +15 -15
- package/dist/tokens-js/brand-violet_accent-gray.js +15 -15
- package/dist/tokens-mobile/brand-blue-deep_accent-brand.json +13 -13
- package/dist/tokens-mobile/brand-blue-deep_accent-gray.json +13 -13
- package/dist/tokens-mobile/brand-blue_accent-brand.json +13 -13
- package/dist/tokens-mobile/brand-blue_accent-gray.json +13 -13
- package/dist/tokens-mobile/brand-green_accent-brand.json +13 -13
- package/dist/tokens-mobile/brand-green_accent-gray.json +13 -13
- package/dist/tokens-mobile/brand-mint_accent-brand.json +13 -13
- package/dist/tokens-mobile/brand-mint_accent-gray.json +13 -13
- package/dist/tokens-mobile/brand-orange_accent-gray.json +13 -13
- package/dist/tokens-mobile/brand-purple_accent-brand.json +13 -13
- package/dist/tokens-mobile/brand-purple_accent-gray.json +13 -13
- package/dist/tokens-mobile/brand-red_accent-gray.json +13 -13
- package/dist/tokens-mobile/brand-violet_accent-brand.json +13 -13
- package/dist/tokens-mobile/brand-violet_accent-gray.json +13 -13
- package/package.json +2 -2
package/dist/cjs/get-colors.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.getColors = void 0;
|
|
4
|
-
var get_base_tokens_1 = require('./get-base-tokens');
|
|
4
|
+
var get_base_tokens_1 = require('./get-base-tokens'); //
|
|
5
5
|
var get_default_tokens_1 = require('./get-default-tokens');
|
|
6
6
|
var DEFAULT_THEME = 'light';
|
|
7
7
|
function getColors(params) {
|
|
8
8
|
var theme = params.theme || DEFAULT_THEME;
|
|
9
9
|
var base = (0, get_base_tokens_1.getBaseTokens)(params);
|
|
10
10
|
var defaults = (0, get_default_tokens_1.getDefaultTokens)(base);
|
|
11
|
+
var result;
|
|
12
|
+
// 1. Получаем базовый объект цветов (либо дефолтный, либо переопределенный)
|
|
11
13
|
if (params.overrides) {
|
|
12
|
-
|
|
14
|
+
result = params.overrides(base, defaults, params)[theme];
|
|
15
|
+
} else {
|
|
16
|
+
result = defaults[theme];
|
|
13
17
|
}
|
|
14
|
-
|
|
18
|
+
// 2. Конвертируем oklch без прозрачности в HEX
|
|
19
|
+
// Используем 'as any', так как конвертеры рассчитаны на рекурсивную структуру ColorStructure
|
|
20
|
+
var hexConverted = (0, get_base_tokens_1.convertOklchToHex)(result);
|
|
21
|
+
// 3. Конвертируем оставшиеся oklch (с прозрачностью) в RGBA
|
|
22
|
+
var finalResult = (0, get_base_tokens_1.convertAlphaOklchToRgba)(hexConverted);
|
|
23
|
+
return finalResult;
|
|
15
24
|
}
|
|
16
25
|
exports.getColors = getColors;
|
|
@@ -4,17 +4,16 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
4
4
|
textAccentHeavy: string;
|
|
5
5
|
textAccentHeavyHover: string;
|
|
6
6
|
textAccentHeavyPressed: string;
|
|
7
|
-
textDisabled: string;
|
|
8
7
|
textErrorHeavy: string;
|
|
9
8
|
textErrorHeavyHover: string;
|
|
10
9
|
textErrorHeavyPressed: string;
|
|
11
10
|
textInvertedAccentHeavy: string;
|
|
12
11
|
textInvertedAccentHeavyHover: string;
|
|
13
12
|
textInvertedAccentHeavyPressed: string;
|
|
14
|
-
textInvertedDisabled: string;
|
|
15
13
|
textInvertedErrorHeavy: string;
|
|
16
14
|
textInvertedErrorHeavyHover: string;
|
|
17
15
|
textInvertedErrorHeavyPressed: string;
|
|
16
|
+
textInvertedNeutralFaint: string;
|
|
18
17
|
textInvertedNeutralHeavy: string;
|
|
19
18
|
textInvertedNeutralPale: string;
|
|
20
19
|
textInvertedNeutralSoft: string;
|
|
@@ -25,6 +24,7 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
25
24
|
textInvertedWarningHeavyHover: string;
|
|
26
25
|
textInvertedWarningHeavyPressed: string;
|
|
27
26
|
textLogo: string;
|
|
27
|
+
textNeutralFaint: string;
|
|
28
28
|
textNeutralHeavy: string;
|
|
29
29
|
textNeutralPale: string;
|
|
30
30
|
textNeutralSoft: string;
|
|
@@ -34,19 +34,19 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
34
34
|
textWarningHeavy: string;
|
|
35
35
|
textWarningHeavyHover: string;
|
|
36
36
|
textWarningHeavyPressed: string;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
textConstFaintBlack: string;
|
|
38
|
+
textConstFaintWhite: string;
|
|
39
39
|
textConstHeavyBlack: string;
|
|
40
40
|
textConstHeavyWhite: string;
|
|
41
41
|
textConstPaleBlack: string;
|
|
42
42
|
textConstPaleWhite: string;
|
|
43
43
|
textConstSoftBlack: string;
|
|
44
44
|
textConstSoftWhite: string;
|
|
45
|
-
|
|
45
|
+
textOnAccentBoldFaint: string;
|
|
46
46
|
textOnAccentBoldHeavy: string;
|
|
47
47
|
textOnAccentBoldPale: string;
|
|
48
48
|
textOnAccentBoldSoft: string;
|
|
49
|
-
|
|
49
|
+
textOnBrandOriginalFaint: string;
|
|
50
50
|
textOnBrandOriginalHeavy: string;
|
|
51
51
|
textOnBrandOriginalPale: string;
|
|
52
52
|
textOnBrandOriginalSoft: string;
|
|
@@ -325,17 +325,16 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
325
325
|
textAccentHeavy: string;
|
|
326
326
|
textAccentHeavyHover: string;
|
|
327
327
|
textAccentHeavyPressed: string;
|
|
328
|
-
textDisabled: string;
|
|
329
328
|
textErrorHeavy: string;
|
|
330
329
|
textErrorHeavyHover: string;
|
|
331
330
|
textErrorHeavyPressed: string;
|
|
332
331
|
textInvertedAccentHeavy: string;
|
|
333
332
|
textInvertedAccentHeavyHover: string;
|
|
334
333
|
textInvertedAccentHeavyPressed: string;
|
|
335
|
-
textInvertedDisabled: string;
|
|
336
334
|
textInvertedErrorHeavy: string;
|
|
337
335
|
textInvertedErrorHeavyHover: string;
|
|
338
336
|
textInvertedErrorHeavyPressed: string;
|
|
337
|
+
textInvertedNeutralFaint: string;
|
|
339
338
|
textInvertedNeutralHeavy: string;
|
|
340
339
|
textInvertedNeutralPale: string;
|
|
341
340
|
textInvertedNeutralSoft: string;
|
|
@@ -346,6 +345,7 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
346
345
|
textInvertedWarningHeavyHover: string;
|
|
347
346
|
textInvertedWarningHeavyPressed: string;
|
|
348
347
|
textLogo: string;
|
|
348
|
+
textNeutralFaint: string;
|
|
349
349
|
textNeutralHeavy: string;
|
|
350
350
|
textNeutralPale: string;
|
|
351
351
|
textNeutralSoft: string;
|
|
@@ -355,19 +355,19 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
355
355
|
textWarningHeavy: string;
|
|
356
356
|
textWarningHeavyHover: string;
|
|
357
357
|
textWarningHeavyPressed: string;
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
textConstFaintBlack: string;
|
|
359
|
+
textConstFaintWhite: string;
|
|
360
360
|
textConstHeavyBlack: string;
|
|
361
361
|
textConstHeavyWhite: string;
|
|
362
362
|
textConstPaleBlack: string;
|
|
363
363
|
textConstPaleWhite: string;
|
|
364
364
|
textConstSoftBlack: string;
|
|
365
365
|
textConstSoftWhite: string;
|
|
366
|
-
|
|
366
|
+
textOnAccentBoldFaint: string;
|
|
367
367
|
textOnAccentBoldHeavy: string;
|
|
368
368
|
textOnAccentBoldPale: string;
|
|
369
369
|
textOnAccentBoldSoft: string;
|
|
370
|
-
|
|
370
|
+
textOnBrandOriginalFaint: string;
|
|
371
371
|
textOnBrandOriginalHeavy: string;
|
|
372
372
|
textOnBrandOriginalPale: string;
|
|
373
373
|
textOnBrandOriginalSoft: string;
|
|
@@ -174,7 +174,6 @@ var getDefaultTokens = function (base) {
|
|
|
174
174
|
((_f = (_e = base.accent) === null || _e === void 0 ? void 0 : _e.palette) === null || _f === void 0
|
|
175
175
|
? void 0
|
|
176
176
|
: _f.dim[48]) || base.blackAlpha[96],
|
|
177
|
-
textDisabled: base.blackAlpha[32],
|
|
178
177
|
textErrorHeavy: base.customizable.red.vivid[52],
|
|
179
178
|
textErrorHeavyHover: base.customizable.red.vivid[60],
|
|
180
179
|
textErrorHeavyPressed: base.customizable.red.dim[48],
|
|
@@ -190,10 +189,10 @@ var getDefaultTokens = function (base) {
|
|
|
190
189
|
((_m = (_l = base.accent) === null || _l === void 0 ? void 0 : _l.palette) === null || _m === void 0
|
|
191
190
|
? void 0
|
|
192
191
|
: _m.dim[64]) || base.gray[100],
|
|
193
|
-
textInvertedDisabled: base.whiteAlpha[40],
|
|
194
192
|
textInvertedErrorHeavy: base.customizable.red.vivid[68],
|
|
195
193
|
textInvertedErrorHeavyHover: base.customizable.red.vivid[72],
|
|
196
194
|
textInvertedErrorHeavyPressed: base.customizable.red.dim[64],
|
|
195
|
+
textInvertedNeutralFaint: base.whiteAlpha[40],
|
|
197
196
|
textInvertedNeutralHeavy: base.whiteAlpha[96],
|
|
198
197
|
textInvertedNeutralPale: base.whiteAlpha[48],
|
|
199
198
|
textInvertedNeutralSoft: base.whiteAlpha[64],
|
|
@@ -204,6 +203,7 @@ var getDefaultTokens = function (base) {
|
|
|
204
203
|
textInvertedWarningHeavyHover: base.warning.vivid[84],
|
|
205
204
|
textInvertedWarningHeavyPressed: base.warning.dim[72],
|
|
206
205
|
textLogo: base.brand.logo.light,
|
|
206
|
+
textNeutralFaint: base.blackAlpha[32],
|
|
207
207
|
textNeutralHeavy: base.blackAlpha[88],
|
|
208
208
|
textNeutralPale: base.blackAlpha[40],
|
|
209
209
|
textNeutralSoft: base.blackAlpha[56],
|
|
@@ -213,20 +213,19 @@ var getDefaultTokens = function (base) {
|
|
|
213
213
|
textWarningHeavy: base.warning.vivid[64],
|
|
214
214
|
textWarningHeavyHover: base.warning.vivid[72],
|
|
215
215
|
textWarningHeavyPressed: base.warning.dim[60],
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
textConstFaintBlack: base.blackAlpha[32],
|
|
217
|
+
textConstFaintWhite: base.whiteAlpha[40],
|
|
218
218
|
textConstHeavyBlack: base.blackAlpha[88],
|
|
219
219
|
textConstHeavyWhite: base.whiteAlpha[96],
|
|
220
220
|
textConstPaleBlack: base.blackAlpha[40],
|
|
221
221
|
textConstPaleWhite: base.whiteAlpha[48],
|
|
222
222
|
textConstSoftBlack: base.blackAlpha[56],
|
|
223
223
|
textConstSoftWhite: base.whiteAlpha[64],
|
|
224
|
-
|
|
225
|
-
((_o = base.onAccent) === null || _o === void 0 ? void 0 : _o[40]) || base.whiteAlpha[40],
|
|
224
|
+
textOnAccentBoldFaint: ((_o = base.onAccent) === null || _o === void 0 ? void 0 : _o[40]) || base.whiteAlpha[40],
|
|
226
225
|
textOnAccentBoldHeavy: ((_p = base.onAccent) === null || _p === void 0 ? void 0 : _p[96]) || base.whiteAlpha[96],
|
|
227
226
|
textOnAccentBoldPale: ((_q = base.onAccent) === null || _q === void 0 ? void 0 : _q[48]) || base.whiteAlpha[48],
|
|
228
227
|
textOnAccentBoldSoft: ((_r = base.onAccent) === null || _r === void 0 ? void 0 : _r[64]) || base.whiteAlpha[64],
|
|
229
|
-
|
|
228
|
+
textOnBrandOriginalFaint: base.onBrand[40],
|
|
230
229
|
textOnBrandOriginalHeavy: base.onBrand[96],
|
|
231
230
|
textOnBrandOriginalPale: base.onBrand[48],
|
|
232
231
|
textOnBrandOriginalSoft: base.onBrand[64],
|
|
@@ -588,7 +587,6 @@ var getDefaultTokens = function (base) {
|
|
|
588
587
|
((_60 = (_59 = base.accent) === null || _59 === void 0 ? void 0 : _59.palette) === null || _60 === void 0
|
|
589
588
|
? void 0
|
|
590
589
|
: _60.dim[64]) || base.gray[100],
|
|
591
|
-
textDisabled: base.whiteAlpha[40],
|
|
592
590
|
textErrorHeavy: base.customizable.red.vivid[68],
|
|
593
591
|
textErrorHeavyHover: base.customizable.red.vivid[72],
|
|
594
592
|
textErrorHeavyPressed: base.customizable.red.dim[64],
|
|
@@ -604,10 +602,10 @@ var getDefaultTokens = function (base) {
|
|
|
604
602
|
((_66 = (_65 = base.accent) === null || _65 === void 0 ? void 0 : _65.palette) === null || _66 === void 0
|
|
605
603
|
? void 0
|
|
606
604
|
: _66.dim[48]) || base.blackAlpha[96],
|
|
607
|
-
textInvertedDisabled: base.blackAlpha[32],
|
|
608
605
|
textInvertedErrorHeavy: base.customizable.red.vivid[52],
|
|
609
606
|
textInvertedErrorHeavyHover: base.customizable.red.vivid[60],
|
|
610
607
|
textInvertedErrorHeavyPressed: base.customizable.red.dim[48],
|
|
608
|
+
textInvertedNeutralFaint: base.blackAlpha[32],
|
|
611
609
|
textInvertedNeutralHeavy: base.blackAlpha[88],
|
|
612
610
|
textInvertedNeutralPale: base.blackAlpha[40],
|
|
613
611
|
textInvertedNeutralSoft: base.blackAlpha[56],
|
|
@@ -618,6 +616,7 @@ var getDefaultTokens = function (base) {
|
|
|
618
616
|
textInvertedWarningHeavyHover: base.warning.vivid[72],
|
|
619
617
|
textInvertedWarningHeavyPressed: base.warning.dim[56],
|
|
620
618
|
textLogo: base.brand.logo.dark,
|
|
619
|
+
textNeutralFaint: base.whiteAlpha[40],
|
|
621
620
|
textNeutralHeavy: base.whiteAlpha[96],
|
|
622
621
|
textNeutralPale: base.whiteAlpha[48],
|
|
623
622
|
textNeutralSoft: base.whiteAlpha[64],
|
|
@@ -627,15 +626,15 @@ var getDefaultTokens = function (base) {
|
|
|
627
626
|
textWarningHeavy: base.warning.vivid[80],
|
|
628
627
|
textWarningHeavyHover: base.warning.vivid[84],
|
|
629
628
|
textWarningHeavyPressed: base.warning.dim[72],
|
|
630
|
-
|
|
631
|
-
|
|
629
|
+
textConstFaintBlack: base.blackAlpha[32],
|
|
630
|
+
textConstFaintWhite: base.whiteAlpha[40],
|
|
632
631
|
textConstHeavyBlack: base.blackAlpha[88],
|
|
633
632
|
textConstHeavyWhite: base.whiteAlpha[96],
|
|
634
633
|
textConstPaleBlack: base.blackAlpha[40],
|
|
635
634
|
textConstPaleWhite: base.whiteAlpha[48],
|
|
636
635
|
textConstSoftBlack: base.blackAlpha[56],
|
|
637
636
|
textConstSoftWhite: base.whiteAlpha[64],
|
|
638
|
-
|
|
637
|
+
textOnAccentBoldFaint:
|
|
639
638
|
((_67 = base.onAccent) === null || _67 === void 0 ? void 0 : _67[32]) || base.blackAlpha[32],
|
|
640
639
|
textOnAccentBoldHeavy:
|
|
641
640
|
((_68 = base.onAccent) === null || _68 === void 0 ? void 0 : _68[96]) || base.blackAlpha[88],
|
|
@@ -643,7 +642,7 @@ var getDefaultTokens = function (base) {
|
|
|
643
642
|
((_69 = base.onAccent) === null || _69 === void 0 ? void 0 : _69[40]) || base.blackAlpha[40],
|
|
644
643
|
textOnAccentBoldSoft:
|
|
645
644
|
((_70 = base.onAccent) === null || _70 === void 0 ? void 0 : _70[56]) || base.blackAlpha[56],
|
|
646
|
-
|
|
645
|
+
textOnBrandOriginalFaint: base.onBrand[40],
|
|
647
646
|
textOnBrandOriginalHeavy: base.onBrand[96],
|
|
648
647
|
textOnBrandOriginalPale: base.onBrand[48],
|
|
649
648
|
textOnBrandOriginalSoft: base.onBrand[64],
|
|
@@ -701,9 +700,9 @@ var getDefaultTokens = function (base) {
|
|
|
701
700
|
shapeOtherAccentBoldDisabled: base.whiteAlpha[32],
|
|
702
701
|
shapeOtherBacklessHover: base.whiteAlpha[6],
|
|
703
702
|
shapeOtherBacklessPressed: base.whiteAlpha[4],
|
|
704
|
-
shapeOtherBase: base.
|
|
705
|
-
shapeOtherBaseHover: base.
|
|
706
|
-
shapeOtherBasePressed: base.
|
|
703
|
+
shapeOtherBase: base.whiteAlpha[6],
|
|
704
|
+
shapeOtherBaseHover: base.whiteAlpha[8],
|
|
705
|
+
shapeOtherBasePressed: base.whiteAlpha[4],
|
|
707
706
|
shapeOtherDisabled: base.whiteAlpha[6],
|
|
708
707
|
shapeOtherField: base.blackAlpha[16],
|
|
709
708
|
shapeOtherFieldHover: base.blackAlpha[4],
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
export const textAccentHeavy = 'var(--k-text-accent-heavy, rgba(255, 255, 255, 0.96))';
|
|
2
2
|
export const textAccentHeavyHover = 'var(--k-text-accent-heavy-hover, #ffffff)';
|
|
3
3
|
export const textAccentHeavyPressed = 'var(--k-text-accent-heavy-pressed, #ffffff)';
|
|
4
|
-
export const textDisabled = 'var(--k-text-disabled, rgba(255, 255, 255, 0.4))';
|
|
5
4
|
export const textErrorHeavy = 'var(--k-text-error-heavy, #ff5352)';
|
|
6
5
|
export const textErrorHeavyHover = 'var(--k-text-error-heavy-hover, #ff726b)';
|
|
7
6
|
export const textErrorHeavyPressed = 'var(--k-text-error-heavy-pressed, #dd5d58)';
|
|
8
7
|
export const textInvertedAccentHeavy = 'var(--k-text-inverted-accent-heavy, rgba(0, 0, 0, 0.88))';
|
|
9
8
|
export const textInvertedAccentHeavyHover = 'var(--k-text-inverted-accent-heavy-hover, rgba(0, 0, 0, 0.96))';
|
|
10
9
|
export const textInvertedAccentHeavyPressed = 'var(--k-text-inverted-accent-heavy-pressed, rgba(0, 0, 0, 0.96))';
|
|
11
|
-
export const textInvertedDisabled = 'var(--k-text-inverted-disabled, rgba(0, 0, 0, 0.32))';
|
|
12
10
|
export const textInvertedErrorHeavy = 'var(--k-text-inverted-error-heavy, #c50220)';
|
|
13
11
|
export const textInvertedErrorHeavyHover = 'var(--k-text-inverted-error-heavy-hover, #e62b34)';
|
|
14
12
|
export const textInvertedErrorHeavyPressed = 'var(--k-text-inverted-error-heavy-pressed, #943e3b)';
|
|
13
|
+
export const textInvertedNeutralFaint = 'var(--k-text-inverted-neutral-faint, rgba(0, 0, 0, 0.32))';
|
|
15
14
|
export const textInvertedNeutralHeavy = 'var(--k-text-inverted-neutral-heavy, rgba(0, 0, 0, 0.88))';
|
|
16
15
|
export const textInvertedNeutralPale = 'var(--k-text-inverted-neutral-pale, rgba(0, 0, 0, 0.4))';
|
|
17
16
|
export const textInvertedNeutralSoft = 'var(--k-text-inverted-neutral-soft, rgba(0, 0, 0, 0.56))';
|
|
@@ -22,6 +21,7 @@ export const textInvertedWarningHeavy = 'var(--k-text-inverted-warning-heavy, #b
|
|
|
22
21
|
export const textInvertedWarningHeavyHover = 'var(--k-text-inverted-warning-heavy-hover, #db9400)';
|
|
23
22
|
export const textInvertedWarningHeavyPressed = 'var(--k-text-inverted-warning-heavy-pressed, #956c30)';
|
|
24
23
|
export const textLogo = 'var(--k-text-logo, #fe4c4c)';
|
|
24
|
+
export const textNeutralFaint = 'var(--k-text-neutral-faint, rgba(255, 255, 255, 0.4))';
|
|
25
25
|
export const textNeutralHeavy = 'var(--k-text-neutral-heavy, rgba(255, 255, 255, 0.96))';
|
|
26
26
|
export const textNeutralPale = 'var(--k-text-neutral-pale, rgba(255, 255, 255, 0.48))';
|
|
27
27
|
export const textNeutralSoft = 'var(--k-text-neutral-soft, rgba(255, 255, 255, 0.64))';
|
|
@@ -31,19 +31,19 @@ export const textSuccessHeavyPressed = 'var(--k-text-success-heavy-pressed, #4fa
|
|
|
31
31
|
export const textWarningHeavy = 'var(--k-text-warning-heavy, #f8ae00)';
|
|
32
32
|
export const textWarningHeavyHover = 'var(--k-text-warning-heavy-hover, #ffbf0b)';
|
|
33
33
|
export const textWarningHeavyPressed = 'var(--k-text-warning-heavy-pressed, #cc9a51)';
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
34
|
+
export const textConstFaintBlack = 'var(--k-text-const-faint-black, rgba(0, 0, 0, 0.32))';
|
|
35
|
+
export const textConstFaintWhite = 'var(--k-text-const-faint-white, rgba(255, 255, 255, 0.4))';
|
|
36
36
|
export const textConstHeavyBlack = 'var(--k-text-const-heavy-black, rgba(0, 0, 0, 0.88))';
|
|
37
37
|
export const textConstHeavyWhite = 'var(--k-text-const-heavy-white, rgba(255, 255, 255, 0.96))';
|
|
38
38
|
export const textConstPaleBlack = 'var(--k-text-const-pale-black, rgba(0, 0, 0, 0.4))';
|
|
39
39
|
export const textConstPaleWhite = 'var(--k-text-const-pale-white, rgba(255, 255, 255, 0.48))';
|
|
40
40
|
export const textConstSoftBlack = 'var(--k-text-const-soft-black, rgba(0, 0, 0, 0.56))';
|
|
41
41
|
export const textConstSoftWhite = 'var(--k-text-const-soft-white, rgba(255, 255, 255, 0.64))';
|
|
42
|
-
export const
|
|
42
|
+
export const textOnAccentBoldFaint = 'var(--k-text-on-accent-bold-faint, rgba(0, 0, 0, 0.32))';
|
|
43
43
|
export const textOnAccentBoldHeavy = 'var(--k-text-on-accent-bold-heavy, rgba(0, 0, 0, 0.88))';
|
|
44
44
|
export const textOnAccentBoldPale = 'var(--k-text-on-accent-bold-pale, rgba(0, 0, 0, 0.4))';
|
|
45
45
|
export const textOnAccentBoldSoft = 'var(--k-text-on-accent-bold-soft, rgba(0, 0, 0, 0.56))';
|
|
46
|
-
export const
|
|
46
|
+
export const textOnBrandOriginalFaint = 'var(--k-text-on-brand-original-faint, rgba(255, 255, 255, 0.4))';
|
|
47
47
|
export const textOnBrandOriginalHeavy = 'var(--k-text-on-brand-original-heavy, rgba(255, 255, 255, 0.96))';
|
|
48
48
|
export const textOnBrandOriginalPale = 'var(--k-text-on-brand-original-pale, rgba(255, 255, 255, 0.48))';
|
|
49
49
|
export const textOnBrandOriginalSoft = 'var(--k-text-on-brand-original-soft, rgba(255, 255, 255, 0.64))';
|
|
@@ -90,9 +90,9 @@ export const shapeHeavyWarning = 'var(--k-shape-heavy-warning, #fbe48d)';
|
|
|
90
90
|
export const shapeOtherAccentBoldDisabled = 'var(--k-shape-other-accent-bold-disabled, rgba(255, 255, 255, 0.32))';
|
|
91
91
|
export const shapeOtherBacklessHover = 'var(--k-shape-other-backless-hover, rgba(255, 255, 255, 0.06))';
|
|
92
92
|
export const shapeOtherBacklessPressed = 'var(--k-shape-other-backless-pressed, rgba(255, 255, 255, 0.04))';
|
|
93
|
-
export const shapeOtherBase = 'var(--k-shape-other-base,
|
|
94
|
-
export const shapeOtherBaseHover = 'var(--k-shape-other-base-hover,
|
|
95
|
-
export const shapeOtherBasePressed = 'var(--k-shape-other-base-pressed,
|
|
93
|
+
export const shapeOtherBase = 'var(--k-shape-other-base, rgba(255, 255, 255, 0.06))';
|
|
94
|
+
export const shapeOtherBaseHover = 'var(--k-shape-other-base-hover, rgba(255, 255, 255, 0.08))';
|
|
95
|
+
export const shapeOtherBasePressed = 'var(--k-shape-other-base-pressed, rgba(255, 255, 255, 0.04))';
|
|
96
96
|
export const shapeOtherDisabled = 'var(--k-shape-other-disabled, rgba(255, 255, 255, 0.06))';
|
|
97
97
|
export const shapeOtherField = 'var(--k-shape-other-field, rgba(0, 0, 0, 0.16))';
|
|
98
98
|
export const shapeOtherFieldHover = 'var(--k-shape-other-field-hover, rgba(0, 0, 0, 0.04))';
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
export const textAccentHeavy = 'var(--k-text-accent-heavy, rgba(0, 0, 0, 0.88))';
|
|
2
2
|
export const textAccentHeavyHover = 'var(--k-text-accent-heavy-hover, rgba(0, 0, 0, 0.96))';
|
|
3
3
|
export const textAccentHeavyPressed = 'var(--k-text-accent-heavy-pressed, rgba(0, 0, 0, 0.96))';
|
|
4
|
-
export const textDisabled = 'var(--k-text-disabled, rgba(0, 0, 0, 0.32))';
|
|
5
4
|
export const textErrorHeavy = 'var(--k-text-error-heavy, #c50220)';
|
|
6
5
|
export const textErrorHeavyHover = 'var(--k-text-error-heavy-hover, #e62b34)';
|
|
7
6
|
export const textErrorHeavyPressed = 'var(--k-text-error-heavy-pressed, #943e3b)';
|
|
8
7
|
export const textInvertedAccentHeavy = 'var(--k-text-inverted-accent-heavy, rgba(255, 255, 255, 0.96))';
|
|
9
8
|
export const textInvertedAccentHeavyHover = 'var(--k-text-inverted-accent-heavy-hover, #ffffff)';
|
|
10
9
|
export const textInvertedAccentHeavyPressed = 'var(--k-text-inverted-accent-heavy-pressed, #ffffff)';
|
|
11
|
-
export const textInvertedDisabled = 'var(--k-text-inverted-disabled, rgba(255, 255, 255, 0.4))';
|
|
12
10
|
export const textInvertedErrorHeavy = 'var(--k-text-inverted-error-heavy, #ff5352)';
|
|
13
11
|
export const textInvertedErrorHeavyHover = 'var(--k-text-inverted-error-heavy-hover, #ff726b)';
|
|
14
12
|
export const textInvertedErrorHeavyPressed = 'var(--k-text-inverted-error-heavy-pressed, #dd5d58)';
|
|
13
|
+
export const textInvertedNeutralFaint = 'var(--k-text-inverted-neutral-faint, rgba(255, 255, 255, 0.4))';
|
|
15
14
|
export const textInvertedNeutralHeavy = 'var(--k-text-inverted-neutral-heavy, rgba(255, 255, 255, 0.96))';
|
|
16
15
|
export const textInvertedNeutralPale = 'var(--k-text-inverted-neutral-pale, rgba(255, 255, 255, 0.48))';
|
|
17
16
|
export const textInvertedNeutralSoft = 'var(--k-text-inverted-neutral-soft, rgba(255, 255, 255, 0.64))';
|
|
@@ -22,6 +21,7 @@ export const textInvertedWarningHeavy = 'var(--k-text-inverted-warning-heavy, #f
|
|
|
22
21
|
export const textInvertedWarningHeavyHover = 'var(--k-text-inverted-warning-heavy-hover, #ffbf0b)';
|
|
23
22
|
export const textInvertedWarningHeavyPressed = 'var(--k-text-inverted-warning-heavy-pressed, #cc9a51)';
|
|
24
23
|
export const textLogo = 'var(--k-text-logo, #FE4C4C)';
|
|
24
|
+
export const textNeutralFaint = 'var(--k-text-neutral-faint, rgba(0, 0, 0, 0.32))';
|
|
25
25
|
export const textNeutralHeavy = 'var(--k-text-neutral-heavy, rgba(0, 0, 0, 0.88))';
|
|
26
26
|
export const textNeutralPale = 'var(--k-text-neutral-pale, rgba(0, 0, 0, 0.4))';
|
|
27
27
|
export const textNeutralSoft = 'var(--k-text-neutral-soft, rgba(0, 0, 0, 0.56))';
|
|
@@ -31,19 +31,19 @@ export const textSuccessHeavyPressed = 'var(--k-text-success-heavy-pressed, #3a6
|
|
|
31
31
|
export const textWarningHeavy = 'var(--k-text-warning-heavy, #bc7d00)';
|
|
32
32
|
export const textWarningHeavyHover = 'var(--k-text-warning-heavy-hover, #db9400)';
|
|
33
33
|
export const textWarningHeavyPressed = 'var(--k-text-warning-heavy-pressed, #a37736)';
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
34
|
+
export const textConstFaintBlack = 'var(--k-text-const-faint-black, rgba(0, 0, 0, 0.32))';
|
|
35
|
+
export const textConstFaintWhite = 'var(--k-text-const-faint-white, rgba(255, 255, 255, 0.4))';
|
|
36
36
|
export const textConstHeavyBlack = 'var(--k-text-const-heavy-black, rgba(0, 0, 0, 0.88))';
|
|
37
37
|
export const textConstHeavyWhite = 'var(--k-text-const-heavy-white, rgba(255, 255, 255, 0.96))';
|
|
38
38
|
export const textConstPaleBlack = 'var(--k-text-const-pale-black, rgba(0, 0, 0, 0.4))';
|
|
39
39
|
export const textConstPaleWhite = 'var(--k-text-const-pale-white, rgba(255, 255, 255, 0.48))';
|
|
40
40
|
export const textConstSoftBlack = 'var(--k-text-const-soft-black, rgba(0, 0, 0, 0.56))';
|
|
41
41
|
export const textConstSoftWhite = 'var(--k-text-const-soft-white, rgba(255, 255, 255, 0.64))';
|
|
42
|
-
export const
|
|
42
|
+
export const textOnAccentBoldFaint = 'var(--k-text-on-accent-bold-faint, rgba(255, 255, 255, 0.4))';
|
|
43
43
|
export const textOnAccentBoldHeavy = 'var(--k-text-on-accent-bold-heavy, rgba(255, 255, 255, 0.96))';
|
|
44
44
|
export const textOnAccentBoldPale = 'var(--k-text-on-accent-bold-pale, rgba(255, 255, 255, 0.48))';
|
|
45
45
|
export const textOnAccentBoldSoft = 'var(--k-text-on-accent-bold-soft, rgba(255, 255, 255, 0.64))';
|
|
46
|
-
export const
|
|
46
|
+
export const textOnBrandOriginalFaint = 'var(--k-text-on-brand-original-faint, rgba(255, 255, 255, 0.4))';
|
|
47
47
|
export const textOnBrandOriginalHeavy = 'var(--k-text-on-brand-original-heavy, rgba(255, 255, 255, 0.96))';
|
|
48
48
|
export const textOnBrandOriginalPale = 'var(--k-text-on-brand-original-pale, rgba(255, 255, 255, 0.48))';
|
|
49
49
|
export const textOnBrandOriginalSoft = 'var(--k-text-on-brand-original-soft, rgba(255, 255, 255, 0.64))';
|
package/dist/colors.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
export const textAccentHeavy = 'var(--k-text-accent-heavy)';
|
|
2
2
|
export const textAccentHeavyHover = 'var(--k-text-accent-heavy-hover)';
|
|
3
3
|
export const textAccentHeavyPressed = 'var(--k-text-accent-heavy-pressed)';
|
|
4
|
-
export const textDisabled = 'var(--k-text-disabled)';
|
|
5
4
|
export const textErrorHeavy = 'var(--k-text-error-heavy)';
|
|
6
5
|
export const textErrorHeavyHover = 'var(--k-text-error-heavy-hover)';
|
|
7
6
|
export const textErrorHeavyPressed = 'var(--k-text-error-heavy-pressed)';
|
|
8
7
|
export const textInvertedAccentHeavy = 'var(--k-text-inverted-accent-heavy)';
|
|
9
8
|
export const textInvertedAccentHeavyHover = 'var(--k-text-inverted-accent-heavy-hover)';
|
|
10
9
|
export const textInvertedAccentHeavyPressed = 'var(--k-text-inverted-accent-heavy-pressed)';
|
|
11
|
-
export const textInvertedDisabled = 'var(--k-text-inverted-disabled)';
|
|
12
10
|
export const textInvertedErrorHeavy = 'var(--k-text-inverted-error-heavy)';
|
|
13
11
|
export const textInvertedErrorHeavyHover = 'var(--k-text-inverted-error-heavy-hover)';
|
|
14
12
|
export const textInvertedErrorHeavyPressed = 'var(--k-text-inverted-error-heavy-pressed)';
|
|
13
|
+
export const textInvertedNeutralFaint = 'var(--k-text-inverted-neutral-faint)';
|
|
15
14
|
export const textInvertedNeutralHeavy = 'var(--k-text-inverted-neutral-heavy)';
|
|
16
15
|
export const textInvertedNeutralPale = 'var(--k-text-inverted-neutral-pale)';
|
|
17
16
|
export const textInvertedNeutralSoft = 'var(--k-text-inverted-neutral-soft)';
|
|
@@ -22,6 +21,7 @@ export const textInvertedWarningHeavy = 'var(--k-text-inverted-warning-heavy)';
|
|
|
22
21
|
export const textInvertedWarningHeavyHover = 'var(--k-text-inverted-warning-heavy-hover)';
|
|
23
22
|
export const textInvertedWarningHeavyPressed = 'var(--k-text-inverted-warning-heavy-pressed)';
|
|
24
23
|
export const textLogo = 'var(--k-text-logo)';
|
|
24
|
+
export const textNeutralFaint = 'var(--k-text-neutral-faint)';
|
|
25
25
|
export const textNeutralHeavy = 'var(--k-text-neutral-heavy)';
|
|
26
26
|
export const textNeutralPale = 'var(--k-text-neutral-pale)';
|
|
27
27
|
export const textNeutralSoft = 'var(--k-text-neutral-soft)';
|
|
@@ -31,19 +31,19 @@ export const textSuccessHeavyPressed = 'var(--k-text-success-heavy-pressed)';
|
|
|
31
31
|
export const textWarningHeavy = 'var(--k-text-warning-heavy)';
|
|
32
32
|
export const textWarningHeavyHover = 'var(--k-text-warning-heavy-hover)';
|
|
33
33
|
export const textWarningHeavyPressed = 'var(--k-text-warning-heavy-pressed)';
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
34
|
+
export const textConstFaintBlack = 'var(--k-text-const-faint-black)';
|
|
35
|
+
export const textConstFaintWhite = 'var(--k-text-const-faint-white)';
|
|
36
36
|
export const textConstHeavyBlack = 'var(--k-text-const-heavy-black)';
|
|
37
37
|
export const textConstHeavyWhite = 'var(--k-text-const-heavy-white)';
|
|
38
38
|
export const textConstPaleBlack = 'var(--k-text-const-pale-black)';
|
|
39
39
|
export const textConstPaleWhite = 'var(--k-text-const-pale-white)';
|
|
40
40
|
export const textConstSoftBlack = 'var(--k-text-const-soft-black)';
|
|
41
41
|
export const textConstSoftWhite = 'var(--k-text-const-soft-white)';
|
|
42
|
-
export const
|
|
42
|
+
export const textOnAccentBoldFaint = 'var(--k-text-on-accent-bold-faint)';
|
|
43
43
|
export const textOnAccentBoldHeavy = 'var(--k-text-on-accent-bold-heavy)';
|
|
44
44
|
export const textOnAccentBoldPale = 'var(--k-text-on-accent-bold-pale)';
|
|
45
45
|
export const textOnAccentBoldSoft = 'var(--k-text-on-accent-bold-soft)';
|
|
46
|
-
export const
|
|
46
|
+
export const textOnBrandOriginalFaint = 'var(--k-text-on-brand-original-faint)';
|
|
47
47
|
export const textOnBrandOriginalHeavy = 'var(--k-text-on-brand-original-heavy)';
|
|
48
48
|
export const textOnBrandOriginalPale = 'var(--k-text-on-brand-original-pale)';
|
|
49
49
|
export const textOnBrandOriginalSoft = 'var(--k-text-on-brand-original-soft)';
|
package/dist/colors.less
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
@textAccentHeavy: var(--k-text-accent-heavy);
|
|
2
2
|
@textAccentHeavyHover: var(--k-text-accent-heavy-hover);
|
|
3
3
|
@textAccentHeavyPressed: var(--k-text-accent-heavy-pressed);
|
|
4
|
-
@textDisabled: var(--k-text-disabled);
|
|
5
4
|
@textErrorHeavy: var(--k-text-error-heavy);
|
|
6
5
|
@textErrorHeavyHover: var(--k-text-error-heavy-hover);
|
|
7
6
|
@textErrorHeavyPressed: var(--k-text-error-heavy-pressed);
|
|
8
7
|
@textInvertedAccentHeavy: var(--k-text-inverted-accent-heavy);
|
|
9
8
|
@textInvertedAccentHeavyHover: var(--k-text-inverted-accent-heavy-hover);
|
|
10
9
|
@textInvertedAccentHeavyPressed: var(--k-text-inverted-accent-heavy-pressed);
|
|
11
|
-
@textInvertedDisabled: var(--k-text-inverted-disabled);
|
|
12
10
|
@textInvertedErrorHeavy: var(--k-text-inverted-error-heavy);
|
|
13
11
|
@textInvertedErrorHeavyHover: var(--k-text-inverted-error-heavy-hover);
|
|
14
12
|
@textInvertedErrorHeavyPressed: var(--k-text-inverted-error-heavy-pressed);
|
|
13
|
+
@textInvertedNeutralFaint: var(--k-text-inverted-neutral-faint);
|
|
15
14
|
@textInvertedNeutralHeavy: var(--k-text-inverted-neutral-heavy);
|
|
16
15
|
@textInvertedNeutralPale: var(--k-text-inverted-neutral-pale);
|
|
17
16
|
@textInvertedNeutralSoft: var(--k-text-inverted-neutral-soft);
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
@textInvertedWarningHeavyHover: var(--k-text-inverted-warning-heavy-hover);
|
|
23
22
|
@textInvertedWarningHeavyPressed: var(--k-text-inverted-warning-heavy-pressed);
|
|
24
23
|
@textLogo: var(--k-text-logo);
|
|
24
|
+
@textNeutralFaint: var(--k-text-neutral-faint);
|
|
25
25
|
@textNeutralHeavy: var(--k-text-neutral-heavy);
|
|
26
26
|
@textNeutralPale: var(--k-text-neutral-pale);
|
|
27
27
|
@textNeutralSoft: var(--k-text-neutral-soft);
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
@textWarningHeavy: var(--k-text-warning-heavy);
|
|
32
32
|
@textWarningHeavyHover: var(--k-text-warning-heavy-hover);
|
|
33
33
|
@textWarningHeavyPressed: var(--k-text-warning-heavy-pressed);
|
|
34
|
-
@
|
|
35
|
-
@
|
|
34
|
+
@textConstFaintBlack: var(--k-text-const-faint-black);
|
|
35
|
+
@textConstFaintWhite: var(--k-text-const-faint-white);
|
|
36
36
|
@textConstHeavyBlack: var(--k-text-const-heavy-black);
|
|
37
37
|
@textConstHeavyWhite: var(--k-text-const-heavy-white);
|
|
38
38
|
@textConstPaleBlack: var(--k-text-const-pale-black);
|
|
39
39
|
@textConstPaleWhite: var(--k-text-const-pale-white);
|
|
40
40
|
@textConstSoftBlack: var(--k-text-const-soft-black);
|
|
41
41
|
@textConstSoftWhite: var(--k-text-const-soft-white);
|
|
42
|
-
@
|
|
42
|
+
@textOnAccentBoldFaint: var(--k-text-on-accent-bold-faint);
|
|
43
43
|
@textOnAccentBoldHeavy: var(--k-text-on-accent-bold-heavy);
|
|
44
44
|
@textOnAccentBoldPale: var(--k-text-on-accent-bold-pale);
|
|
45
45
|
@textOnAccentBoldSoft: var(--k-text-on-accent-bold-soft);
|
|
46
|
-
@
|
|
46
|
+
@textOnBrandOriginalFaint: var(--k-text-on-brand-original-faint);
|
|
47
47
|
@textOnBrandOriginalHeavy: var(--k-text-on-brand-original-heavy);
|
|
48
48
|
@textOnBrandOriginalPale: var(--k-text-on-brand-original-pale);
|
|
49
49
|
@textOnBrandOriginalSoft: var(--k-text-on-brand-original-soft);
|
package/dist/colors.scss
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
$textAccentHeavy: var(--k-text-accent-heavy);
|
|
2
2
|
$textAccentHeavyHover: var(--k-text-accent-heavy-hover);
|
|
3
3
|
$textAccentHeavyPressed: var(--k-text-accent-heavy-pressed);
|
|
4
|
-
$textDisabled: var(--k-text-disabled);
|
|
5
4
|
$textErrorHeavy: var(--k-text-error-heavy);
|
|
6
5
|
$textErrorHeavyHover: var(--k-text-error-heavy-hover);
|
|
7
6
|
$textErrorHeavyPressed: var(--k-text-error-heavy-pressed);
|
|
8
7
|
$textInvertedAccentHeavy: var(--k-text-inverted-accent-heavy);
|
|
9
8
|
$textInvertedAccentHeavyHover: var(--k-text-inverted-accent-heavy-hover);
|
|
10
9
|
$textInvertedAccentHeavyPressed: var(--k-text-inverted-accent-heavy-pressed);
|
|
11
|
-
$textInvertedDisabled: var(--k-text-inverted-disabled);
|
|
12
10
|
$textInvertedErrorHeavy: var(--k-text-inverted-error-heavy);
|
|
13
11
|
$textInvertedErrorHeavyHover: var(--k-text-inverted-error-heavy-hover);
|
|
14
12
|
$textInvertedErrorHeavyPressed: var(--k-text-inverted-error-heavy-pressed);
|
|
13
|
+
$textInvertedNeutralFaint: var(--k-text-inverted-neutral-faint);
|
|
15
14
|
$textInvertedNeutralHeavy: var(--k-text-inverted-neutral-heavy);
|
|
16
15
|
$textInvertedNeutralPale: var(--k-text-inverted-neutral-pale);
|
|
17
16
|
$textInvertedNeutralSoft: var(--k-text-inverted-neutral-soft);
|
|
@@ -22,6 +21,7 @@ $textInvertedWarningHeavy: var(--k-text-inverted-warning-heavy);
|
|
|
22
21
|
$textInvertedWarningHeavyHover: var(--k-text-inverted-warning-heavy-hover);
|
|
23
22
|
$textInvertedWarningHeavyPressed: var(--k-text-inverted-warning-heavy-pressed);
|
|
24
23
|
$textLogo: var(--k-text-logo);
|
|
24
|
+
$textNeutralFaint: var(--k-text-neutral-faint);
|
|
25
25
|
$textNeutralHeavy: var(--k-text-neutral-heavy);
|
|
26
26
|
$textNeutralPale: var(--k-text-neutral-pale);
|
|
27
27
|
$textNeutralSoft: var(--k-text-neutral-soft);
|
|
@@ -31,19 +31,19 @@ $textSuccessHeavyPressed: var(--k-text-success-heavy-pressed);
|
|
|
31
31
|
$textWarningHeavy: var(--k-text-warning-heavy);
|
|
32
32
|
$textWarningHeavyHover: var(--k-text-warning-heavy-hover);
|
|
33
33
|
$textWarningHeavyPressed: var(--k-text-warning-heavy-pressed);
|
|
34
|
-
$
|
|
35
|
-
$
|
|
34
|
+
$textConstFaintBlack: var(--k-text-const-faint-black);
|
|
35
|
+
$textConstFaintWhite: var(--k-text-const-faint-white);
|
|
36
36
|
$textConstHeavyBlack: var(--k-text-const-heavy-black);
|
|
37
37
|
$textConstHeavyWhite: var(--k-text-const-heavy-white);
|
|
38
38
|
$textConstPaleBlack: var(--k-text-const-pale-black);
|
|
39
39
|
$textConstPaleWhite: var(--k-text-const-pale-white);
|
|
40
40
|
$textConstSoftBlack: var(--k-text-const-soft-black);
|
|
41
41
|
$textConstSoftWhite: var(--k-text-const-soft-white);
|
|
42
|
-
$
|
|
42
|
+
$textOnAccentBoldFaint: var(--k-text-on-accent-bold-faint);
|
|
43
43
|
$textOnAccentBoldHeavy: var(--k-text-on-accent-bold-heavy);
|
|
44
44
|
$textOnAccentBoldPale: var(--k-text-on-accent-bold-pale);
|
|
45
45
|
$textOnAccentBoldSoft: var(--k-text-on-accent-bold-soft);
|
|
46
|
-
$
|
|
46
|
+
$textOnBrandOriginalFaint: var(--k-text-on-brand-original-faint);
|
|
47
47
|
$textOnBrandOriginalHeavy: var(--k-text-on-brand-original-heavy);
|
|
48
48
|
$textOnBrandOriginalPale: var(--k-text-on-brand-original-pale);
|
|
49
49
|
$textOnBrandOriginalSoft: var(--k-text-on-brand-original-soft);
|
package/dist/esm/get-colors.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { getBaseTokens } from './get-base-tokens';
|
|
1
|
+
import { getBaseTokens, convertOklchToHex, convertAlphaOklchToRgba } from './get-base-tokens'; //
|
|
2
2
|
import { getDefaultTokens } from './get-default-tokens';
|
|
3
3
|
var DEFAULT_THEME = 'light';
|
|
4
4
|
export function getColors(params) {
|
|
5
5
|
var theme = params.theme || DEFAULT_THEME;
|
|
6
6
|
var base = getBaseTokens(params);
|
|
7
7
|
var defaults = getDefaultTokens(base);
|
|
8
|
+
var result;
|
|
9
|
+
// 1. Получаем базовый объект цветов (либо дефолтный, либо переопределенный)
|
|
8
10
|
if (params.overrides) {
|
|
9
|
-
|
|
11
|
+
result = params.overrides(base, defaults, params)[theme];
|
|
12
|
+
} else {
|
|
13
|
+
result = defaults[theme];
|
|
10
14
|
}
|
|
11
|
-
|
|
15
|
+
// 2. Конвертируем oklch без прозрачности в HEX
|
|
16
|
+
// Используем 'as any', так как конвертеры рассчитаны на рекурсивную структуру ColorStructure
|
|
17
|
+
var hexConverted = convertOklchToHex(result);
|
|
18
|
+
// 3. Конвертируем оставшиеся oklch (с прозрачностью) в RGBA
|
|
19
|
+
var finalResult = convertAlphaOklchToRgba(hexConverted);
|
|
20
|
+
return finalResult;
|
|
12
21
|
}
|
|
@@ -4,17 +4,16 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
4
4
|
textAccentHeavy: string;
|
|
5
5
|
textAccentHeavyHover: string;
|
|
6
6
|
textAccentHeavyPressed: string;
|
|
7
|
-
textDisabled: string;
|
|
8
7
|
textErrorHeavy: string;
|
|
9
8
|
textErrorHeavyHover: string;
|
|
10
9
|
textErrorHeavyPressed: string;
|
|
11
10
|
textInvertedAccentHeavy: string;
|
|
12
11
|
textInvertedAccentHeavyHover: string;
|
|
13
12
|
textInvertedAccentHeavyPressed: string;
|
|
14
|
-
textInvertedDisabled: string;
|
|
15
13
|
textInvertedErrorHeavy: string;
|
|
16
14
|
textInvertedErrorHeavyHover: string;
|
|
17
15
|
textInvertedErrorHeavyPressed: string;
|
|
16
|
+
textInvertedNeutralFaint: string;
|
|
18
17
|
textInvertedNeutralHeavy: string;
|
|
19
18
|
textInvertedNeutralPale: string;
|
|
20
19
|
textInvertedNeutralSoft: string;
|
|
@@ -25,6 +24,7 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
25
24
|
textInvertedWarningHeavyHover: string;
|
|
26
25
|
textInvertedWarningHeavyPressed: string;
|
|
27
26
|
textLogo: string;
|
|
27
|
+
textNeutralFaint: string;
|
|
28
28
|
textNeutralHeavy: string;
|
|
29
29
|
textNeutralPale: string;
|
|
30
30
|
textNeutralSoft: string;
|
|
@@ -34,19 +34,19 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
34
34
|
textWarningHeavy: string;
|
|
35
35
|
textWarningHeavyHover: string;
|
|
36
36
|
textWarningHeavyPressed: string;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
textConstFaintBlack: string;
|
|
38
|
+
textConstFaintWhite: string;
|
|
39
39
|
textConstHeavyBlack: string;
|
|
40
40
|
textConstHeavyWhite: string;
|
|
41
41
|
textConstPaleBlack: string;
|
|
42
42
|
textConstPaleWhite: string;
|
|
43
43
|
textConstSoftBlack: string;
|
|
44
44
|
textConstSoftWhite: string;
|
|
45
|
-
|
|
45
|
+
textOnAccentBoldFaint: string;
|
|
46
46
|
textOnAccentBoldHeavy: string;
|
|
47
47
|
textOnAccentBoldPale: string;
|
|
48
48
|
textOnAccentBoldSoft: string;
|
|
49
|
-
|
|
49
|
+
textOnBrandOriginalFaint: string;
|
|
50
50
|
textOnBrandOriginalHeavy: string;
|
|
51
51
|
textOnBrandOriginalPale: string;
|
|
52
52
|
textOnBrandOriginalSoft: string;
|
|
@@ -325,17 +325,16 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
325
325
|
textAccentHeavy: string;
|
|
326
326
|
textAccentHeavyHover: string;
|
|
327
327
|
textAccentHeavyPressed: string;
|
|
328
|
-
textDisabled: string;
|
|
329
328
|
textErrorHeavy: string;
|
|
330
329
|
textErrorHeavyHover: string;
|
|
331
330
|
textErrorHeavyPressed: string;
|
|
332
331
|
textInvertedAccentHeavy: string;
|
|
333
332
|
textInvertedAccentHeavyHover: string;
|
|
334
333
|
textInvertedAccentHeavyPressed: string;
|
|
335
|
-
textInvertedDisabled: string;
|
|
336
334
|
textInvertedErrorHeavy: string;
|
|
337
335
|
textInvertedErrorHeavyHover: string;
|
|
338
336
|
textInvertedErrorHeavyPressed: string;
|
|
337
|
+
textInvertedNeutralFaint: string;
|
|
339
338
|
textInvertedNeutralHeavy: string;
|
|
340
339
|
textInvertedNeutralPale: string;
|
|
341
340
|
textInvertedNeutralSoft: string;
|
|
@@ -346,6 +345,7 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
346
345
|
textInvertedWarningHeavyHover: string;
|
|
347
346
|
textInvertedWarningHeavyPressed: string;
|
|
348
347
|
textLogo: string;
|
|
348
|
+
textNeutralFaint: string;
|
|
349
349
|
textNeutralHeavy: string;
|
|
350
350
|
textNeutralPale: string;
|
|
351
351
|
textNeutralSoft: string;
|
|
@@ -355,19 +355,19 @@ export declare const getDefaultTokens: (base: BaseTokens) => {
|
|
|
355
355
|
textWarningHeavy: string;
|
|
356
356
|
textWarningHeavyHover: string;
|
|
357
357
|
textWarningHeavyPressed: string;
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
textConstFaintBlack: string;
|
|
359
|
+
textConstFaintWhite: string;
|
|
360
360
|
textConstHeavyBlack: string;
|
|
361
361
|
textConstHeavyWhite: string;
|
|
362
362
|
textConstPaleBlack: string;
|
|
363
363
|
textConstPaleWhite: string;
|
|
364
364
|
textConstSoftBlack: string;
|
|
365
365
|
textConstSoftWhite: string;
|
|
366
|
-
|
|
366
|
+
textOnAccentBoldFaint: string;
|
|
367
367
|
textOnAccentBoldHeavy: string;
|
|
368
368
|
textOnAccentBoldPale: string;
|
|
369
369
|
textOnAccentBoldSoft: string;
|
|
370
|
-
|
|
370
|
+
textOnBrandOriginalFaint: string;
|
|
371
371
|
textOnBrandOriginalHeavy: string;
|
|
372
372
|
textOnBrandOriginalPale: string;
|
|
373
373
|
textOnBrandOriginalSoft: string;
|