@skbkontur/colors 2.0.0-alpha.3 → 2.0.0-alpha.5
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 +3 -3
- package/colors.d.ts +319 -0
- package/colors.js +319 -0
- package/colors.less +319 -0
- package/colors.scss +319 -0
- package/lib/consts/default-swatch.d.ts +108 -0
- package/lib/consts/default-swatch.js +108 -0
- package/{dist/esm/consts/default-swatch.js → lib/consts/default-swatch.ts} +11 -7
- package/lib/consts/params/abney-correction.js +1102 -0
- package/{dist/esm/consts/params/abney-correction.js → lib/consts/params/abney-correction.ts} +3 -1
- package/lib/consts/params/chroma-params.js +102 -0
- package/{dist/esm/consts/params/chroma-params.js → lib/consts/params/chroma-params.ts} +3 -1
- package/lib/consts/params/interactions.ts +9 -0
- package/lib/consts/params/logo-lightness.ts +1 -0
- package/{dist/esm → lib}/consts/params/promo-hue-shift.d.ts +1 -1
- package/lib/consts/params/promo-hue-shift.js +11 -0
- package/{dist/esm/consts/params/promo-hue-shift.js → lib/consts/params/promo-hue-shift.ts} +1 -1
- package/{dist/esm → lib}/consts/params/warning-hue-patch.d.ts +1 -1
- package/lib/consts/params/warning-hue-patch.js +22 -0
- package/{dist/esm/consts/params/warning-hue-patch.js → lib/consts/params/warning-hue-patch.ts} +1 -1
- package/lib/get-colors-base.d.ts +11 -0
- package/lib/get-colors-base.js +78 -0
- package/{dist/esm/get-colors-base.js → lib/get-colors-base.ts} +44 -26
- package/lib/get-colors-default-tokens.d.ts +645 -0
- package/lib/get-colors-default-tokens.js +647 -0
- package/lib/get-colors-default-tokens.ts +646 -0
- package/lib/get-colors.d.ts +39 -0
- package/lib/get-colors.js +24 -0
- package/lib/get-colors.ts +59 -0
- package/{dist/esm → lib}/helpers/get-interactions.d.ts +2 -2
- package/lib/helpers/get-interactions.js +35 -0
- package/lib/helpers/get-interactions.ts +64 -0
- package/{dist/esm → lib}/helpers/get-logo.d.ts +2 -2
- package/lib/helpers/get-logo.js +25 -0
- package/lib/helpers/get-logo.ts +40 -0
- package/lib/helpers/get-palette.d.ts +51 -0
- package/lib/helpers/get-palette.js +204 -0
- package/lib/helpers/get-palette.ts +261 -0
- package/lib/helpers/get-promo.d.ts +6 -0
- package/lib/helpers/get-promo.js +47 -0
- package/lib/helpers/get-promo.ts +55 -0
- package/lib/types/tokens-base-generator.d.ts +43 -0
- package/{dist/esm/types/tokens-base-generator.d.ts → lib/types/tokens-base-generator.ts} +10 -15
- package/lib/types/tokens-base.d.ts +55 -0
- package/{dist/esm/types/tokens-base.d.ts → lib/types/tokens-base.ts} +7 -2
- package/lib/types/tokens.d.ts +12 -0
- package/{dist/esm/types/tokens.d.ts → lib/types/tokens.ts} +6 -0
- package/lib/utils/convert-color.js +144 -0
- package/lib/utils/convert-color.ts +163 -0
- package/lib/utils/format-variable.js +6 -0
- package/lib/utils/format-variable.ts +7 -0
- package/package.json +66 -7
- package/{dist/tokens → tokens}/brand-blue-deep_accent-brand.css +2 -2
- package/{dist/tokens → tokens}/brand-blue-deep_accent-gray.css +2 -2
- package/{dist/tokens → tokens}/brand-blue_accent-brand.css +2 -2
- package/{dist/tokens → tokens}/brand-blue_accent-gray.css +2 -2
- package/{dist/tokens → tokens}/brand-green_accent-brand.css +2 -2
- package/{dist/tokens → tokens}/brand-green_accent-gray.css +2 -2
- package/{dist/tokens → tokens}/brand-mint_accent-brand.css +2 -2
- package/{dist/tokens → tokens}/brand-mint_accent-gray.css +2 -2
- package/{dist/tokens → tokens}/brand-orange_accent-gray.css +2 -2
- package/{dist/tokens → tokens}/brand-purple_accent-brand.css +2 -2
- package/{dist/tokens → tokens}/brand-purple_accent-gray.css +2 -2
- package/{dist/tokens → tokens}/brand-red_accent-gray.css +2 -2
- package/{dist/tokens → tokens}/brand-violet_accent-brand.css +2 -2
- package/{dist/tokens → tokens}/brand-violet_accent-gray.css +2 -2
- package/{dist/tokens-mobile → tokens-mobile}/brand-blue-deep_accent-brand.json +117 -117
- package/{dist/tokens-mobile → tokens-mobile}/brand-blue-deep_accent-gray.json +135 -135
- package/{dist/tokens-mobile → tokens-mobile}/brand-blue_accent-brand.json +117 -117
- package/{dist/tokens-mobile → tokens-mobile}/brand-blue_accent-gray.json +135 -135
- package/{dist/tokens-mobile → tokens-mobile}/brand-green_accent-brand.json +117 -117
- package/{dist/tokens-mobile → tokens-mobile}/brand-green_accent-gray.json +135 -135
- package/{dist/tokens-mobile → tokens-mobile}/brand-mint_accent-brand.json +117 -117
- package/{dist/tokens-mobile → tokens-mobile}/brand-mint_accent-gray.json +135 -135
- package/{dist/tokens-mobile → tokens-mobile}/brand-orange_accent-gray.json +135 -135
- package/{dist/tokens-mobile → tokens-mobile}/brand-purple_accent-brand.json +117 -117
- package/{dist/tokens-mobile → tokens-mobile}/brand-purple_accent-gray.json +135 -135
- package/{dist/tokens-mobile → tokens-mobile}/brand-red_accent-gray.json +135 -135
- package/{dist/tokens-mobile → tokens-mobile}/brand-violet_accent-brand.json +117 -117
- package/{dist/tokens-mobile → tokens-mobile}/brand-violet_accent-gray.json +135 -135
- package/CHANGELOG.md +0 -84
- package/dist/colors.default-dark.js +0 -332
- package/dist/colors.default-light.js +0 -336
- package/dist/colors.less +0 -319
- package/dist/colors.scss +0 -319
- package/dist/esm/consts/default-swatch.d.ts +0 -109
- package/dist/esm/get-colors-base.d.ts +0 -12
- package/dist/esm/get-colors-default-tokens.d.ts +0 -645
- package/dist/esm/get-colors-default-tokens.js +0 -992
- package/dist/esm/get-colors.d.ts +0 -13
- package/dist/esm/get-colors.js +0 -14
- package/dist/esm/get-default-tokens.d.ts +0 -645
- package/dist/esm/get-default-tokens.js +0 -992
- package/dist/esm/helpers/get-interactions.js +0 -49
- package/dist/esm/helpers/get-logo.js +0 -28
- package/dist/esm/helpers/get-palette.d.ts +0 -76
- package/dist/esm/helpers/get-palette.js +0 -232
- package/dist/esm/helpers/get-promo.d.ts +0 -12
- package/dist/esm/helpers/get-promo.js +0 -51
- package/dist/esm/utils/convert-color.js +0 -133
- package/dist/esm/utils/format-variable.js +0 -10
- package/dist/tokens-js/brand-blue-deep_accent-brand.js +0 -644
- package/dist/tokens-js/brand-blue-deep_accent-gray.js +0 -644
- package/dist/tokens-js/brand-blue_accent-brand.js +0 -644
- package/dist/tokens-js/brand-blue_accent-gray.js +0 -644
- package/dist/tokens-js/brand-green_accent-brand.js +0 -644
- package/dist/tokens-js/brand-green_accent-gray.js +0 -644
- package/dist/tokens-js/brand-mint_accent-brand.js +0 -644
- package/dist/tokens-js/brand-mint_accent-gray.js +0 -644
- package/dist/tokens-js/brand-orange_accent-gray.js +0 -644
- package/dist/tokens-js/brand-purple_accent-brand.js +0 -644
- package/dist/tokens-js/brand-purple_accent-gray.js +0 -644
- package/dist/tokens-js/brand-red_accent-gray.js +0 -644
- package/dist/tokens-js/brand-violet_accent-brand.js +0 -644
- package/dist/tokens-js/brand-violet_accent-gray.js +0 -644
- package/scripts/babel-register.js +0 -4
- package/scripts/tokens-base.json +0 -3499
- package/scripts/tokens.json +0 -710
- /package/{dist/colors.js → colors.ts} +0 -0
- /package/{dist/esm → lib}/consts/params/abney-correction.d.ts +0 -0
- /package/{dist/esm → lib}/consts/params/chroma-params.d.ts +0 -0
- /package/{dist/esm → lib}/consts/params/interactions.d.ts +0 -0
- /package/{dist/esm → lib}/consts/params/interactions.js +0 -0
- /package/{dist/esm → lib}/consts/params/logo-lightness.d.ts +0 -0
- /package/{dist/esm → lib}/consts/params/logo-lightness.js +0 -0
- /package/{dist/esm → lib}/types/tokens-base-generator.js +0 -0
- /package/{dist/esm → lib}/types/tokens-base.js +0 -0
- /package/{dist/esm → lib}/types/tokens.js +0 -0
- /package/{dist/esm → lib}/utils/convert-color.d.ts +0 -0
- /package/{dist/esm → lib}/utils/format-variable.d.ts +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export declare const brand: {
|
|
2
|
-
red: string;
|
|
3
|
-
orange: string;
|
|
4
|
-
green: string;
|
|
5
|
-
mint: string;
|
|
6
|
-
blue: string;
|
|
7
|
-
blueDeep: string;
|
|
8
|
-
violet: string;
|
|
9
|
-
purple: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const system: {
|
|
12
|
-
warning: string;
|
|
13
|
-
error: string;
|
|
14
|
-
success: string;
|
|
15
|
-
accent: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const customizable: {
|
|
18
|
-
red: string;
|
|
19
|
-
orange: string;
|
|
20
|
-
green: string;
|
|
21
|
-
mint: string;
|
|
22
|
-
blue: string;
|
|
23
|
-
blueDeep: string;
|
|
24
|
-
violet: string;
|
|
25
|
-
purple: string;
|
|
26
|
-
yellow: string;
|
|
27
|
-
};
|
|
28
|
-
export declare const gray: {
|
|
29
|
-
0: string;
|
|
30
|
-
16: string;
|
|
31
|
-
20: string;
|
|
32
|
-
24: string;
|
|
33
|
-
28: string;
|
|
34
|
-
32: string;
|
|
35
|
-
36: string;
|
|
36
|
-
40: string;
|
|
37
|
-
44: string;
|
|
38
|
-
48: string;
|
|
39
|
-
52: string;
|
|
40
|
-
56: string;
|
|
41
|
-
60: string;
|
|
42
|
-
64: string;
|
|
43
|
-
68: string;
|
|
44
|
-
72: string;
|
|
45
|
-
76: string;
|
|
46
|
-
80: string;
|
|
47
|
-
84: string;
|
|
48
|
-
88: string;
|
|
49
|
-
92: string;
|
|
50
|
-
96: string;
|
|
51
|
-
98: string;
|
|
52
|
-
100: string;
|
|
53
|
-
};
|
|
54
|
-
export declare const whiteAlpha: {
|
|
55
|
-
4: string;
|
|
56
|
-
6: string;
|
|
57
|
-
8: string;
|
|
58
|
-
12: string;
|
|
59
|
-
16: string;
|
|
60
|
-
20: string;
|
|
61
|
-
24: string;
|
|
62
|
-
28: string;
|
|
63
|
-
32: string;
|
|
64
|
-
36: string;
|
|
65
|
-
40: string;
|
|
66
|
-
44: string;
|
|
67
|
-
48: string;
|
|
68
|
-
52: string;
|
|
69
|
-
56: string;
|
|
70
|
-
60: string;
|
|
71
|
-
64: string;
|
|
72
|
-
68: string;
|
|
73
|
-
72: string;
|
|
74
|
-
76: string;
|
|
75
|
-
80: string;
|
|
76
|
-
84: string;
|
|
77
|
-
88: string;
|
|
78
|
-
92: string;
|
|
79
|
-
96: string;
|
|
80
|
-
100: string;
|
|
81
|
-
};
|
|
82
|
-
export declare const blackAlpha: {
|
|
83
|
-
4: string;
|
|
84
|
-
6: string;
|
|
85
|
-
8: string;
|
|
86
|
-
12: string;
|
|
87
|
-
16: string;
|
|
88
|
-
20: string;
|
|
89
|
-
24: string;
|
|
90
|
-
28: string;
|
|
91
|
-
32: string;
|
|
92
|
-
36: string;
|
|
93
|
-
40: string;
|
|
94
|
-
44: string;
|
|
95
|
-
48: string;
|
|
96
|
-
52: string;
|
|
97
|
-
56: string;
|
|
98
|
-
60: string;
|
|
99
|
-
64: string;
|
|
100
|
-
68: string;
|
|
101
|
-
72: string;
|
|
102
|
-
76: string;
|
|
103
|
-
80: string;
|
|
104
|
-
84: string;
|
|
105
|
-
88: string;
|
|
106
|
-
92: string;
|
|
107
|
-
96: string;
|
|
108
|
-
100: string;
|
|
109
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ColorFormat } from './utils/convert-color.js';
|
|
2
|
-
import * as DEFAULT_SWATCH from './consts/default-swatch.js';
|
|
3
|
-
import type { BaseTokens } from './types/tokens-base.js';
|
|
4
|
-
type PresetOrCustom<T extends string> = T | (string & Record<never, never>);
|
|
5
|
-
export interface ConfigOptions {
|
|
6
|
-
brand: PresetOrCustom<keyof typeof DEFAULT_SWATCH.brand>;
|
|
7
|
-
accent: PresetOrCustom<'brand' | 'gray'>;
|
|
8
|
-
system?: typeof DEFAULT_SWATCH.system;
|
|
9
|
-
format?: ColorFormat;
|
|
10
|
-
}
|
|
11
|
-
export declare function getColorsBase({ brand, accent, system, format }: ConfigOptions): BaseTokens;
|
|
12
|
-
export {};
|