@vkontakte/vkui-tokens 4.30.0 → 4.30.1-dev-ff0eeb.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/build/helpers/appearance.d.ts +5 -0
- package/build/helpers/appearance.js +34 -0
- package/build/helpers/appearance.test.d.ts +1 -0
- package/build/helpers/appearance.test.js +29 -0
- package/interfaces/namespaces/vk/index.d.ts +203 -0
- package/interfaces/namespaces/vk/index.js +2 -1
- package/interfaces/themes/vkBase/index.d.ts +4 -4
- package/interfaces/themes/vkBaseDark/index.d.ts +4 -4
- package/package.json +1 -1
- package/themeDescriptions/base/vk.d.ts +8 -3
- package/themeDescriptions/base/vk.js +67 -3
- package/themes/vkBase/cssVars/declarations/index.css +79 -0
- package/themes/vkBase/cssVars/declarations/noColors.css +34 -0
- package/themes/vkBase/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkBase/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkBase/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkBase/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocalIncremental.css +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkBase/cssVars/theme/index.js +346 -0
- package/themes/vkBase/cssVars/theme/index.json +346 -0
- package/themes/vkBase/docs.json +434 -0
- package/themes/vkBase/index.css +79 -0
- package/themes/vkBase/index.js +109 -0
- package/themes/vkBase/index.json +109 -0
- package/themes/vkBase/index.less +79 -0
- package/themes/vkBase/index.pcss +79 -0
- package/themes/vkBase/index.scss +79 -0
- package/themes/vkBase/index.styl +79 -0
- package/themes/vkBase/struct.json +109 -0
- package/themes/vkBaseDark/cssVars/declarations/index.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/noColors.css +34 -0
- package/themes/vkBaseDark/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocalIncremental.css +45 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkBaseDark/cssVars/theme/index.js +346 -0
- package/themes/vkBaseDark/cssVars/theme/index.json +346 -0
- package/themes/vkBaseDark/docs.json +434 -0
- package/themes/vkBaseDark/index.css +79 -0
- package/themes/vkBaseDark/index.js +109 -0
- package/themes/vkBaseDark/index.json +109 -0
- package/themes/vkBaseDark/index.less +79 -0
- package/themes/vkBaseDark/index.pcss +79 -0
- package/themes/vkBaseDark/index.scss +79 -0
- package/themes/vkBaseDark/index.styl +79 -0
- package/themes/vkBaseDark/struct.json +109 -0
- package/themes/vkCom/cssVars/declarations/index.css +79 -0
- package/themes/vkCom/cssVars/declarations/noColors.css +34 -0
- package/themes/vkCom/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkCom/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkCom/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkCom/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocalIncremental.css +21 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkCom/cssVars/theme/index.js +346 -0
- package/themes/vkCom/cssVars/theme/index.json +346 -0
- package/themes/vkCom/docs.json +434 -0
- package/themes/vkCom/index.css +79 -0
- package/themes/vkCom/index.js +109 -0
- package/themes/vkCom/index.json +109 -0
- package/themes/vkCom/index.less +79 -0
- package/themes/vkCom/index.pcss +79 -0
- package/themes/vkCom/index.scss +79 -0
- package/themes/vkCom/index.styl +79 -0
- package/themes/vkCom/struct.json +109 -0
- package/themes/vkComDark/cssVars/declarations/index.css +79 -0
- package/themes/vkComDark/cssVars/declarations/noColors.css +34 -0
- package/themes/vkComDark/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkComDark/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkComDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocalIncremental.css +24 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkComDark/cssVars/theme/index.js +346 -0
- package/themes/vkComDark/cssVars/theme/index.json +346 -0
- package/themes/vkComDark/docs.json +434 -0
- package/themes/vkComDark/index.css +79 -0
- package/themes/vkComDark/index.js +109 -0
- package/themes/vkComDark/index.json +109 -0
- package/themes/vkComDark/index.less +79 -0
- package/themes/vkComDark/index.pcss +79 -0
- package/themes/vkComDark/index.scss +79 -0
- package/themes/vkComDark/index.styl +79 -0
- package/themes/vkComDark/struct.json +109 -0
- package/themes/vkIOS/cssVars/declarations/index.css +79 -0
- package/themes/vkIOS/cssVars/declarations/noColors.css +34 -0
- package/themes/vkIOS/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkIOS/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkIOS/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkIOS/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkIOS/cssVars/theme/index.js +346 -0
- package/themes/vkIOS/cssVars/theme/index.json +346 -0
- package/themes/vkIOS/docs.json +434 -0
- package/themes/vkIOS/index.css +79 -0
- package/themes/vkIOS/index.js +109 -0
- package/themes/vkIOS/index.json +109 -0
- package/themes/vkIOS/index.less +79 -0
- package/themes/vkIOS/index.pcss +79 -0
- package/themes/vkIOS/index.scss +79 -0
- package/themes/vkIOS/index.styl +79 -0
- package/themes/vkIOS/struct.json +109 -0
- package/themes/vkIOSDark/cssVars/declarations/index.css +79 -0
- package/themes/vkIOSDark/cssVars/declarations/noColors.css +34 -0
- package/themes/vkIOSDark/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkIOSDark/cssVars/theme/index.js +346 -0
- package/themes/vkIOSDark/cssVars/theme/index.json +346 -0
- package/themes/vkIOSDark/docs.json +434 -0
- package/themes/vkIOSDark/index.css +79 -0
- package/themes/vkIOSDark/index.js +109 -0
- package/themes/vkIOSDark/index.json +109 -0
- package/themes/vkIOSDark/index.less +79 -0
- package/themes/vkIOSDark/index.pcss +79 -0
- package/themes/vkIOSDark/index.scss +79 -0
- package/themes/vkIOSDark/index.styl +79 -0
- package/themes/vkIOSDark/struct.json +109 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.resolveColor = void 0;
|
|
7
|
+
var palette_json_1 = __importDefault(require("@vkontakte/appearance/main.valette/palette.json"));
|
|
8
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
9
|
+
function resolveColor(clusterData, palette) {
|
|
10
|
+
if (palette === void 0) { palette = palette_json_1.default; }
|
|
11
|
+
var color = palette[clusterData.color_identifier];
|
|
12
|
+
var alphaMultiplier = clusterData.alpha_multiplier ? Number(clusterData.alpha_multiplier) : 1;
|
|
13
|
+
if (!color) {
|
|
14
|
+
throw new Error("Missing color: ".concat(clusterData.color_identifier));
|
|
15
|
+
}
|
|
16
|
+
else if (color.indexOf('#') === 0 && color.length === 9) {
|
|
17
|
+
// ahex
|
|
18
|
+
return ahex2rgba(color.replace('#', ''), alphaMultiplier);
|
|
19
|
+
}
|
|
20
|
+
else if (color.indexOf('#') === 0 && clusterData.alpha_multiplier) {
|
|
21
|
+
return opacify(color.replace('#', ''), alphaMultiplier);
|
|
22
|
+
}
|
|
23
|
+
return color;
|
|
24
|
+
}
|
|
25
|
+
exports.resolveColor = resolveColor;
|
|
26
|
+
function ahex2rgba(ahex, multiplier) {
|
|
27
|
+
if (multiplier === void 0) { multiplier = 1; }
|
|
28
|
+
var opacity = (parseInt(ahex.slice(0, 2), 16) / 255) * multiplier;
|
|
29
|
+
var colorHex = ahex.slice(2);
|
|
30
|
+
return opacify(colorHex, opacity);
|
|
31
|
+
}
|
|
32
|
+
function opacify(hex, opacity) {
|
|
33
|
+
return "rgba(".concat(parseInt(hex.slice(0, 2), 16), ", ").concat(parseInt(hex.slice(2, 4), 16), ", ").concat(parseInt(hex.slice(4), 16), ", ").concat(opacity.toFixed(2), ")");
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
4
|
+
var appearance_1 = require("./appearance");
|
|
5
|
+
describe('vkCom/appearance', function () {
|
|
6
|
+
test('white', function () {
|
|
7
|
+
expect((0, appearance_1.resolveColor)({
|
|
8
|
+
color_identifier: 'white',
|
|
9
|
+
})).toBe('#FFFFFF');
|
|
10
|
+
});
|
|
11
|
+
test('white_alpha12', function () {
|
|
12
|
+
expect((0, appearance_1.resolveColor)({
|
|
13
|
+
color_identifier: 'white_alpha12',
|
|
14
|
+
})).toBe('rgba(255, 255, 255, 0.12)');
|
|
15
|
+
});
|
|
16
|
+
test('white with alpha_multiplier', function () {
|
|
17
|
+
expect((0, appearance_1.resolveColor)({
|
|
18
|
+
color_identifier: 'white',
|
|
19
|
+
alpha_multiplier: 0.04,
|
|
20
|
+
})).toBe('rgba(255, 255, 255, 0.04)');
|
|
21
|
+
});
|
|
22
|
+
test('missing color', function () {
|
|
23
|
+
expect(function () {
|
|
24
|
+
return (0, appearance_1.resolveColor)({
|
|
25
|
+
color_identifier: 'impossible',
|
|
26
|
+
});
|
|
27
|
+
}).toThrow();
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { Theme, ThemeCssVars, ThemeDescription } from '../../general';
|
|
2
|
+
import { ColorDescription, ColorsDescriptionStruct, ColorWithStates } from '../../general/colors';
|
|
3
|
+
import { GradientPoints } from '../../general/gradients';
|
|
4
|
+
import { Tokens } from '../../general/tools/tokenValue';
|
|
5
|
+
export interface VkGradients {
|
|
6
|
+
/**
|
|
7
|
+
* @desc Градиент AquamarineBlue
|
|
8
|
+
* @tags gradient
|
|
9
|
+
*/
|
|
10
|
+
gradientAquamarineBlue: GradientPoints;
|
|
11
|
+
/**
|
|
12
|
+
* @desc Градиент Blue
|
|
13
|
+
* @tags gradient
|
|
14
|
+
*/
|
|
15
|
+
gradientBlue: GradientPoints;
|
|
16
|
+
/**
|
|
17
|
+
* @desc Градиент Candy
|
|
18
|
+
* @tags gradient
|
|
19
|
+
*/
|
|
20
|
+
gradientCandy: GradientPoints;
|
|
21
|
+
/**
|
|
22
|
+
* @desc Градиент Crimson
|
|
23
|
+
* @tags gradient
|
|
24
|
+
*/
|
|
25
|
+
gradientCrimson: GradientPoints;
|
|
26
|
+
/**
|
|
27
|
+
* @desc Градиент Disco
|
|
28
|
+
* @tags gradient
|
|
29
|
+
*/
|
|
30
|
+
gradientDisco: GradientPoints;
|
|
31
|
+
/**
|
|
32
|
+
* @desc Градиент Emerald
|
|
33
|
+
* @tags gradient
|
|
34
|
+
*/
|
|
35
|
+
gradientEmerald: GradientPoints;
|
|
36
|
+
/**
|
|
37
|
+
* @desc Градиент Gray
|
|
38
|
+
* @tags gradient
|
|
39
|
+
*/
|
|
40
|
+
gradientGray: GradientPoints;
|
|
41
|
+
/**
|
|
42
|
+
* @desc Градиент Green
|
|
43
|
+
* @tags gradient
|
|
44
|
+
*/
|
|
45
|
+
gradientGreen: GradientPoints;
|
|
46
|
+
/**
|
|
47
|
+
* @desc Градиент Lagoon
|
|
48
|
+
* @tags gradient
|
|
49
|
+
*/
|
|
50
|
+
gradientLagoon: GradientPoints;
|
|
51
|
+
/**
|
|
52
|
+
* @desc Градиент Lavender
|
|
53
|
+
* @tags gradient
|
|
54
|
+
*/
|
|
55
|
+
gradientLavender: GradientPoints;
|
|
56
|
+
/**
|
|
57
|
+
* @desc Градиент Marine
|
|
58
|
+
* @tags gradient
|
|
59
|
+
*/
|
|
60
|
+
gradientMarine: GradientPoints;
|
|
61
|
+
/**
|
|
62
|
+
* @desc Градиент Midnight
|
|
63
|
+
* @tags gradient
|
|
64
|
+
*/
|
|
65
|
+
gradientMidnight: GradientPoints;
|
|
66
|
+
/**
|
|
67
|
+
* @desc Градиент Orange
|
|
68
|
+
* @tags gradient
|
|
69
|
+
*/
|
|
70
|
+
gradientOrange: GradientPoints;
|
|
71
|
+
/**
|
|
72
|
+
* @desc Градиент Pink
|
|
73
|
+
* @tags gradient
|
|
74
|
+
*/
|
|
75
|
+
gradientPink: GradientPoints;
|
|
76
|
+
/**
|
|
77
|
+
* @desc Градиент Purple
|
|
78
|
+
* @tags gradient
|
|
79
|
+
*/
|
|
80
|
+
gradientPurple: GradientPoints;
|
|
81
|
+
/**
|
|
82
|
+
* @desc Градиент RaspberryPink
|
|
83
|
+
* @tags gradient
|
|
84
|
+
*/
|
|
85
|
+
gradientRaspberryPink: GradientPoints;
|
|
86
|
+
/**
|
|
87
|
+
* @desc Градиент Red
|
|
88
|
+
* @tags gradient
|
|
89
|
+
*/
|
|
90
|
+
gradientRed: GradientPoints;
|
|
91
|
+
/**
|
|
92
|
+
* @desc Градиент Retrowave
|
|
93
|
+
* @tags gradient
|
|
94
|
+
*/
|
|
95
|
+
gradientRetrowave: GradientPoints;
|
|
96
|
+
/**
|
|
97
|
+
* @desc Градиент Sunset
|
|
98
|
+
* @tags gradient
|
|
99
|
+
*/
|
|
100
|
+
gradientSunset: GradientPoints;
|
|
101
|
+
/**
|
|
102
|
+
* @desc Градиент Turquoise
|
|
103
|
+
* @tags gradient
|
|
104
|
+
*/
|
|
105
|
+
gradientTurquoise: GradientPoints;
|
|
106
|
+
/**
|
|
107
|
+
* @desc Градиент Twilight
|
|
108
|
+
* @tags gradient
|
|
109
|
+
*/
|
|
110
|
+
gradientTwilight: GradientPoints;
|
|
111
|
+
/**
|
|
112
|
+
* @desc Градиент Unicorn
|
|
113
|
+
* @tags gradient
|
|
114
|
+
*/
|
|
115
|
+
gradientUnicorn: GradientPoints;
|
|
116
|
+
/**
|
|
117
|
+
* @desc Градиент Violet
|
|
118
|
+
* @tags gradient
|
|
119
|
+
*/
|
|
120
|
+
gradientViolet: GradientPoints;
|
|
121
|
+
/**
|
|
122
|
+
* @desc Градиент Yellow
|
|
123
|
+
* @tags gradient
|
|
124
|
+
*/
|
|
125
|
+
gradientYellow: GradientPoints;
|
|
126
|
+
/**
|
|
127
|
+
* @desc Градиент YellowBright
|
|
128
|
+
* @tags gradient
|
|
129
|
+
*/
|
|
130
|
+
gradientYellowBright: GradientPoints;
|
|
131
|
+
/**
|
|
132
|
+
* @desc Градиент HalloweenOrange
|
|
133
|
+
* @tags gradient
|
|
134
|
+
*/
|
|
135
|
+
gradientHalloweenOrange: GradientPoints;
|
|
136
|
+
/**
|
|
137
|
+
* @desc Градиент HalloweenViolet
|
|
138
|
+
* @tags gradient
|
|
139
|
+
*/
|
|
140
|
+
gradientHalloweenViolet: GradientPoints;
|
|
141
|
+
/**
|
|
142
|
+
* @desc Градиент NewYear
|
|
143
|
+
* @tags gradient
|
|
144
|
+
*/
|
|
145
|
+
gradientNewYear: GradientPoints;
|
|
146
|
+
/**
|
|
147
|
+
* @desc Градиент Frost
|
|
148
|
+
* @tags gradient
|
|
149
|
+
*/
|
|
150
|
+
gradientFrost: GradientPoints;
|
|
151
|
+
/**
|
|
152
|
+
* @desc Градиент Valentine
|
|
153
|
+
* @tags gradient
|
|
154
|
+
*/
|
|
155
|
+
gradientValentine: GradientPoints;
|
|
156
|
+
/**
|
|
157
|
+
* @desc Градиент WarmValentine
|
|
158
|
+
* @tags gradient
|
|
159
|
+
*/
|
|
160
|
+
gradientWarmValentine: GradientPoints;
|
|
161
|
+
/**
|
|
162
|
+
* @desc Градиент Sberkot
|
|
163
|
+
* @tags gradient
|
|
164
|
+
*/
|
|
165
|
+
gradientSberkot: GradientPoints;
|
|
166
|
+
/**
|
|
167
|
+
* @desc Градиент Mable
|
|
168
|
+
* @tags gradient
|
|
169
|
+
*/
|
|
170
|
+
gradientMable: GradientPoints;
|
|
171
|
+
/**
|
|
172
|
+
* @desc Градиент WomensDay
|
|
173
|
+
* @tags gradient
|
|
174
|
+
*/
|
|
175
|
+
gradientWomensDay: GradientPoints;
|
|
176
|
+
}
|
|
177
|
+
export interface LocalVkColorsDescriptionStruct {
|
|
178
|
+
colorSnippetBorderAlpha: ColorDescription;
|
|
179
|
+
colorModalCardBorderAlpha: ColorDescription;
|
|
180
|
+
colorLandingSnippetBorderAlpha: ColorDescription;
|
|
181
|
+
colorActionSheetSeparatorAlpha: ColorDescription;
|
|
182
|
+
colorInputBorder: ColorDescription;
|
|
183
|
+
colorImForwardLineAlpha: ColorDescription;
|
|
184
|
+
colorImBubbleBorderAlternateHighlightedAlpha: ColorDescription;
|
|
185
|
+
colorImBubbleIncoming: ColorDescription;
|
|
186
|
+
colorImBubbleIncomingAlternate: ColorDescription;
|
|
187
|
+
colorImBubbleIncomingExpiring: ColorDescription;
|
|
188
|
+
colorImBubbleOutgoing: ColorDescription;
|
|
189
|
+
colorImBubbleOutgoingExpiringHighlighted: ColorDescription;
|
|
190
|
+
colorImBubbleGiftText: ColorDescription;
|
|
191
|
+
colorImBubbleGiftTextSecondary: ColorDescription;
|
|
192
|
+
colorImTextName: ColorDescription;
|
|
193
|
+
}
|
|
194
|
+
export type VkLocalColors = {
|
|
195
|
+
[key in keyof LocalVkColorsDescriptionStruct]: ColorWithStates;
|
|
196
|
+
};
|
|
197
|
+
export interface VkTheme extends Theme, VkGradients, VkLocalColors {
|
|
198
|
+
}
|
|
199
|
+
export interface VkThemeDescription extends ThemeDescription, Tokens<VkGradients> {
|
|
200
|
+
colors: LocalVkColorsDescriptionStruct & ColorsDescriptionStruct;
|
|
201
|
+
}
|
|
202
|
+
export interface VkThemeCssVars extends ThemeCssVars<VkTheme> {
|
|
203
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ThemeVkBase extends
|
|
1
|
+
import { VkTheme, VkThemeCssVars, VkThemeDescription } from '../../namespaces/vk';
|
|
2
|
+
export interface ThemeVkBase extends VkTheme {
|
|
3
3
|
}
|
|
4
|
-
export interface ThemeVkBaseDescription extends
|
|
4
|
+
export interface ThemeVkBaseDescription extends VkThemeDescription {
|
|
5
5
|
}
|
|
6
|
-
export interface ThemeVkBaseCssVars extends
|
|
6
|
+
export interface ThemeVkBaseCssVars extends VkThemeCssVars {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ThemeVkBaseDark extends
|
|
1
|
+
import { VkTheme, VkThemeCssVars, VkThemeDescription } from '../../namespaces/vk';
|
|
2
|
+
export interface ThemeVkBaseDark extends VkTheme {
|
|
3
3
|
}
|
|
4
|
-
export interface ThemeVkBaseDarkDescription extends
|
|
4
|
+
export interface ThemeVkBaseDarkDescription extends VkThemeDescription {
|
|
5
5
|
}
|
|
6
|
-
export interface ThemeVkBaseDarkCssVars extends
|
|
6
|
+
export interface ThemeVkBaseDarkCssVars extends VkThemeCssVars {
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/vkui-tokens",
|
|
3
|
-
"version": "4.30.0",
|
|
3
|
+
"version": "4.30.1-dev-ff0eeb.0",
|
|
4
4
|
"description": "Репозиторий, который содержит в себе дизайн-токены и другие инструменты объединенной дизайн-системы VKUI и Paradigm",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "utils/descriptions.js",
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bright_light, space_gray } from '@vkontakte/appearance/main.valette/scheme.json';
|
|
2
|
+
import { vkcom_dark, vkcom_light } from '@vkontakte/appearance/main.valette/scheme_web.json';
|
|
3
|
+
import { ColorsDescription } from '../../interfaces/general';
|
|
2
4
|
import { Elevation } from '../../interfaces/general/elevation';
|
|
3
5
|
import { Gradients } from '../../interfaces/general/gradients';
|
|
6
|
+
import { LocalVkColorsDescriptionStruct, VkGradients, VkThemeDescription } from '../../interfaces/namespaces/vk';
|
|
7
|
+
export declare const vkLocalColors: (theme: typeof bright_light | typeof space_gray | typeof vkcom_light | typeof vkcom_dark, palette?: Record<string, string>) => LocalVkColorsDescriptionStruct;
|
|
4
8
|
export declare const lightColors: ColorsDescription;
|
|
5
9
|
export declare const lightGradient: Gradients;
|
|
6
10
|
export declare const lightElevation: Elevation;
|
|
7
11
|
export declare const darkColors: ColorsDescription;
|
|
8
12
|
export declare const darkGradient: Gradients;
|
|
9
13
|
export declare const darkElevation: Elevation;
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
14
|
+
export declare const gradients: VkGradients;
|
|
15
|
+
export declare const lightTheme: VkThemeDescription;
|
|
16
|
+
export declare const darkTheme: VkThemeDescription;
|
|
@@ -10,10 +10,38 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.darkTheme = exports.lightTheme = exports.darkElevation = exports.darkGradient = exports.darkColors = exports.lightElevation = exports.lightGradient = exports.lightColors = void 0;
|
|
17
|
+
exports.darkTheme = exports.lightTheme = exports.gradients = exports.darkElevation = exports.darkGradient = exports.darkColors = exports.lightElevation = exports.lightGradient = exports.lightColors = exports.vkLocalColors = void 0;
|
|
18
|
+
var palette_json_1 = __importDefault(require("@vkontakte/appearance/main.valette/palette.json"));
|
|
19
|
+
var scheme_json_1 = require("@vkontakte/appearance/main.valette/scheme.json");
|
|
20
|
+
var appearance_1 = require("../../build/helpers/appearance");
|
|
15
21
|
var getGradientPointsFromColor_1 = require("../../build/helpers/getGradientPointsFromColor");
|
|
16
22
|
var tokenHelpers_1 = require("../../build/helpers/tokenHelpers");
|
|
23
|
+
var vkLocalColors = function (theme, palette) {
|
|
24
|
+
if (palette === void 0) { palette = palette_json_1.default; }
|
|
25
|
+
var resolve = function (clusterData) { return (0, appearance_1.resolveColor)(clusterData, palette); };
|
|
26
|
+
return {
|
|
27
|
+
colorSnippetBorderAlpha: resolve(theme.colors.snippet_border),
|
|
28
|
+
colorModalCardBorderAlpha: resolve(theme.colors.modal_card_border),
|
|
29
|
+
colorLandingSnippetBorderAlpha: resolve(theme.colors.landing_snippet_border),
|
|
30
|
+
colorActionSheetSeparatorAlpha: resolve(theme.colors.action_sheet_separator),
|
|
31
|
+
colorInputBorder: resolve(theme.colors.input_border),
|
|
32
|
+
colorImForwardLineAlpha: resolve(theme.colors.im_forward_line_tint),
|
|
33
|
+
colorImBubbleBorderAlternateHighlightedAlpha: resolve(theme.colors.im_bubble_border_alternate_highlighted),
|
|
34
|
+
colorImBubbleIncoming: resolve(theme.colors.im_bubble_incoming),
|
|
35
|
+
colorImBubbleIncomingAlternate: resolve(theme.colors.im_bubble_incoming_alternate),
|
|
36
|
+
colorImBubbleIncomingExpiring: resolve(theme.colors.im_bubble_incoming_expiring),
|
|
37
|
+
colorImBubbleOutgoing: resolve(theme.colors.im_bubble_outgoing),
|
|
38
|
+
colorImBubbleOutgoingExpiringHighlighted: resolve(theme.colors.im_bubble_outgoing_expiring_highlighted),
|
|
39
|
+
colorImBubbleGiftText: resolve(theme.colors.im_bubble_gift_text),
|
|
40
|
+
colorImBubbleGiftTextSecondary: resolve(theme.colors.im_bubble_gift_text_secondary),
|
|
41
|
+
colorImTextName: resolve(theme.colors.im_text_name),
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
exports.vkLocalColors = vkLocalColors;
|
|
17
45
|
var fontFamilyAccent = "-apple-system, system-ui, \"Helvetica Neue\", Roboto, sans-serif";
|
|
18
46
|
var fontFamilyBase = "-apple-system, system-ui, \"Helvetica Neue\", Roboto, sans-serif";
|
|
19
47
|
var fontWeightAccent1 = 600;
|
|
@@ -279,7 +307,43 @@ exports.darkElevation = {
|
|
|
279
307
|
elevation3: '0px 0px 2px rgba(0, 0, 0, 0.08), 0px 4px 16px rgba(0, 0, 0, 0.08)',
|
|
280
308
|
elevation4: '0px 0px 8px rgba(0, 0, 0, 0.12), 0px 16px 16px rgba(0, 0, 0, 0.16)',
|
|
281
309
|
};
|
|
282
|
-
exports.
|
|
310
|
+
exports.gradients = {
|
|
311
|
+
gradientAquamarineBlue: '#7DF1FA, #2BB4D6',
|
|
312
|
+
gradientBlue: '#66CCFF, #3F8AE0',
|
|
313
|
+
gradientCandy: '#FF99CC, #E52E6A',
|
|
314
|
+
gradientCrimson: '#FF7373, #E53949, #BF1C38',
|
|
315
|
+
gradientDisco: '#FFB726, #FF2693, #8122E0, #2693FF',
|
|
316
|
+
gradientEmerald: '#00D948, #0D8046',
|
|
317
|
+
gradientGray: '#C1CAD6, #878F99',
|
|
318
|
+
gradientGreen: '#6CD97E, #12B312',
|
|
319
|
+
gradientLagoon: '#2BD9D9, #5C9CE6',
|
|
320
|
+
gradientLavender: '#928FFF, #4B47B2',
|
|
321
|
+
gradientMarine: '#2EE54D, #0D7EFF',
|
|
322
|
+
gradientMidnight: '#73D0FF, #3885E1, #0032A6',
|
|
323
|
+
gradientOrange: '#FFBF80, #E66B2E',
|
|
324
|
+
gradientPink: '#FF8880, #E62E6B',
|
|
325
|
+
gradientPurple: '#A393F5, #735CE6',
|
|
326
|
+
gradientRaspberryPink: '#FF80D5, #E645B1',
|
|
327
|
+
gradientRed: '#FF7583, #E62E40',
|
|
328
|
+
gradientRetrowave: '#30F2B1, #5967FF, #FF26A5',
|
|
329
|
+
gradientSunset: '#FFD24D, #F26549, #E62E6B',
|
|
330
|
+
gradientTurquoise: '#8AE6E6, #12B3B3',
|
|
331
|
+
gradientTwilight: '#FF4D87, #9F40FF, #3399FF',
|
|
332
|
+
gradientUnicorn: '#FF99CC, #A179F2, #5CA1E6',
|
|
333
|
+
gradientViolet: '#D3A6FF, #903FE0',
|
|
334
|
+
gradientYellow: '#FFC44D, #F07300',
|
|
335
|
+
gradientYellowBright: '#FFD54F, #E7A902',
|
|
336
|
+
gradientHalloweenOrange: '#CB1E3B, #F05C44, #FFA000',
|
|
337
|
+
gradientHalloweenViolet: '#FFA000, #CD4C4B, #792EC0',
|
|
338
|
+
gradientNewYear: '#BB64E4, #805BD7, #2866D5',
|
|
339
|
+
gradientFrost: '#4FA0FF, #016CEA',
|
|
340
|
+
gradientValentine: '#FF8A65, #F25383, #8F13DB',
|
|
341
|
+
gradientWarmValentine: '#F3386A, #FF819E',
|
|
342
|
+
gradientSberkot: '#9DF19D, #31C2A7, #21A19A, #107F8C',
|
|
343
|
+
gradientMable: '#D9F4FF, #D9F4FF',
|
|
344
|
+
gradientWomensDay: '#FF99CC, #E52E6A',
|
|
345
|
+
};
|
|
346
|
+
exports.lightTheme = __assign(__assign(__assign(__assign(__assign(__assign({ themeName: 'vkBase', themeNameBase: 'vkBase' }, exports.lightColors), { colors: __assign(__assign({}, exports.lightColors.colors), (0, exports.vkLocalColors)(scheme_json_1.bright_light)) }), exports.gradients), exports.lightGradient), exports.lightElevation), {
|
|
283
347
|
// Типографика
|
|
284
348
|
fontFamilyAccent: fontFamilyAccent, fontFamilyBase: fontFamilyBase, fontWeightAccent1: fontWeightAccent1, fontWeightAccent2: fontWeightAccent2, fontWeightAccent3: fontWeightAccent3, fontWeightBase1: fontWeightBase1, fontWeightBase2: fontWeightBase2, fontWeightBase3: fontWeightBase3, fontTitle1: {
|
|
285
349
|
regular: {
|
|
@@ -577,4 +641,4 @@ exports.lightTheme = __assign(__assign(__assign(__assign({ themeName: 'vkBase',
|
|
|
577
641
|
},
|
|
578
642
|
// Разное
|
|
579
643
|
animationDurationL: '0.4s', animationDurationM: '0.2s', animationDurationS: '0.1s', animationEasingDefault: 'cubic-bezier(0.3, 0.3, 0.5, 1)', animationEasingPlatform: 'cubic-bezier(0.4, 0, 0.2, 1)', opacityDisable: 0.4, opacityDisableAccessibility: 0.64, zIndexModal: 99, zIndexPopout: 100 });
|
|
580
|
-
exports.darkTheme = __assign(__assign(__assign(__assign(__assign({}, exports.lightTheme), exports.darkColors), exports.darkGradient), exports.darkElevation), { themeName: 'vkBaseDark', themeInheritsFrom: 'vkBase', colorsScheme: 'dark' });
|
|
644
|
+
exports.darkTheme = __assign(__assign(__assign(__assign(__assign(__assign({}, exports.lightTheme), exports.darkColors), { colors: __assign(__assign({}, exports.darkColors.colors), (0, exports.vkLocalColors)(scheme_json_1.space_gray)) }), exports.darkGradient), exports.darkElevation), { themeName: 'vkBaseDark', themeInheritsFrom: 'vkBase', colorsScheme: 'dark' });
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--vkui--theme_name: 'vkBase';
|
|
3
3
|
--vkui--theme_name_base: 'vkBase';
|
|
4
|
+
--vkui--gradient_aquamarine_blue: #7DF1FA, #2BB4D6;
|
|
5
|
+
--vkui--gradient_blue: #66CCFF, #3F8AE0;
|
|
6
|
+
--vkui--gradient_candy: #FF99CC, #E52E6A;
|
|
7
|
+
--vkui--gradient_crimson: #FF7373, #E53949, #BF1C38;
|
|
8
|
+
--vkui--gradient_disco: #FFB726, #FF2693, #8122E0, #2693FF;
|
|
9
|
+
--vkui--gradient_emerald: #00D948, #0D8046;
|
|
10
|
+
--vkui--gradient_gray: #C1CAD6, #878F99;
|
|
11
|
+
--vkui--gradient_green: #6CD97E, #12B312;
|
|
12
|
+
--vkui--gradient_lagoon: #2BD9D9, #5C9CE6;
|
|
13
|
+
--vkui--gradient_lavender: #928FFF, #4B47B2;
|
|
14
|
+
--vkui--gradient_marine: #2EE54D, #0D7EFF;
|
|
15
|
+
--vkui--gradient_midnight: #73D0FF, #3885E1, #0032A6;
|
|
16
|
+
--vkui--gradient_orange: #FFBF80, #E66B2E;
|
|
17
|
+
--vkui--gradient_pink: #FF8880, #E62E6B;
|
|
18
|
+
--vkui--gradient_purple: #A393F5, #735CE6;
|
|
19
|
+
--vkui--gradient_raspberry_pink: #FF80D5, #E645B1;
|
|
20
|
+
--vkui--gradient_red: #FF7583, #E62E40;
|
|
21
|
+
--vkui--gradient_retrowave: #30F2B1, #5967FF, #FF26A5;
|
|
22
|
+
--vkui--gradient_sunset: #FFD24D, #F26549, #E62E6B;
|
|
23
|
+
--vkui--gradient_turquoise: #8AE6E6, #12B3B3;
|
|
24
|
+
--vkui--gradient_twilight: #FF4D87, #9F40FF, #3399FF;
|
|
25
|
+
--vkui--gradient_unicorn: #FF99CC, #A179F2, #5CA1E6;
|
|
26
|
+
--vkui--gradient_violet: #D3A6FF, #903FE0;
|
|
27
|
+
--vkui--gradient_yellow: #FFC44D, #F07300;
|
|
28
|
+
--vkui--gradient_yellow_bright: #FFD54F, #E7A902;
|
|
29
|
+
--vkui--gradient_halloween_orange: #CB1E3B, #F05C44, #FFA000;
|
|
30
|
+
--vkui--gradient_halloween_violet: #FFA000, #CD4C4B, #792EC0;
|
|
31
|
+
--vkui--gradient_new_year: #BB64E4, #805BD7, #2866D5;
|
|
32
|
+
--vkui--gradient_frost: #4FA0FF, #016CEA;
|
|
33
|
+
--vkui--gradient_valentine: #FF8A65, #F25383, #8F13DB;
|
|
34
|
+
--vkui--gradient_warm_valentine: #F3386A, #FF819E;
|
|
35
|
+
--vkui--gradient_sberkot: #9DF19D, #31C2A7, #21A19A, #107F8C;
|
|
36
|
+
--vkui--gradient_mable: #D9F4FF, #D9F4FF;
|
|
37
|
+
--vkui--gradient_womens_day: #FF99CC, #E52E6A;
|
|
4
38
|
--vkui--gradient_black: rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.014) 13%, rgba(0, 0, 0, 0.06) 27%, rgba(0, 0, 0, 0.316) 68%, rgba(0, 0, 0, 0.38) 84%, rgba(0, 0, 0, 0.4) 100%;
|
|
5
39
|
--vkui--gradient_white: rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.036) 13%, rgba(255, 255, 255, 0.15) 27%, rgba(255, 255, 255, 0.79) 68%, rgba(255, 255, 255, 0.95) 84%, rgba(255, 255, 255, 1) 100%;
|
|
6
40
|
--vkui--gradient_tint: rgba(249, 249, 249, 0) 0%, rgba(249, 249, 249, 0.036) 13%, rgba(249, 249, 249, 0.15) 27%, rgba(249, 249, 249, 0.79) 68%, rgba(249, 249, 249, 0.95) 84%, rgba(249, 249, 249, 1) 100%;
|
|
@@ -454,6 +488,51 @@
|
|
|
454
488
|
--vkui--color_transparent: transparent;
|
|
455
489
|
--vkui--color_transparent--hover: rgba(0, 16, 61, 0.04);
|
|
456
490
|
--vkui--color_transparent--active: rgba(0, 16, 61, 0.08);
|
|
491
|
+
--vkui--color_snippet_border_alpha: rgba(0, 0, 0, 0.15);
|
|
492
|
+
--vkui--color_snippet_border_alpha--hover: rgba(0, 0, 0, 0.19);
|
|
493
|
+
--vkui--color_snippet_border_alpha--active: rgba(0, 0, 0, 0.23);
|
|
494
|
+
--vkui--color_modal_card_border_alpha: rgba(0, 0, 0, 0.00);
|
|
495
|
+
--vkui--color_modal_card_border_alpha--hover: rgba(0, 0, 0, 0.04);
|
|
496
|
+
--vkui--color_modal_card_border_alpha--active: rgba(0, 0, 0, 0.08);
|
|
497
|
+
--vkui--color_landing_snippet_border_alpha: rgba(0, 0, 0, 0.15);
|
|
498
|
+
--vkui--color_landing_snippet_border_alpha--hover: rgba(0, 0, 0, 0.19);
|
|
499
|
+
--vkui--color_landing_snippet_border_alpha--active: rgba(0, 0, 0, 0.23);
|
|
500
|
+
--vkui--color_action_sheet_separator_alpha: rgba(0, 0, 0, 0.12);
|
|
501
|
+
--vkui--color_action_sheet_separator_alpha--hover: rgba(0, 0, 0, 0.16);
|
|
502
|
+
--vkui--color_action_sheet_separator_alpha--active: rgba(0, 0, 0, 0.2);
|
|
503
|
+
--vkui--color_input_border: #E1E3E6;
|
|
504
|
+
--vkui--color_input_border--hover: #D8DBDF;
|
|
505
|
+
--vkui--color_input_border--active: #CFD2D8;
|
|
506
|
+
--vkui--color_im_forward_line_alpha: rgba(69, 103, 143, 0.24);
|
|
507
|
+
--vkui--color_im_forward_line_alpha--hover: rgba(69, 103, 143, 0.28);
|
|
508
|
+
--vkui--color_im_forward_line_alpha--active: rgba(69, 103, 143, 0.32);
|
|
509
|
+
--vkui--color_im_bubble_border_alternate_highlighted_alpha: #D7D8D9;
|
|
510
|
+
--vkui--color_im_bubble_border_alternate_highlighted_alpha--hover: #CED0D3;
|
|
511
|
+
--vkui--color_im_bubble_border_alternate_highlighted_alpha--active: #C6C8CD;
|
|
512
|
+
--vkui--color_im_bubble_incoming: #EBEDF0;
|
|
513
|
+
--vkui--color_im_bubble_incoming--hover: #E2E4E9;
|
|
514
|
+
--vkui--color_im_bubble_incoming--active: #D8DBE2;
|
|
515
|
+
--vkui--color_im_bubble_incoming_alternate: #FFFFFF;
|
|
516
|
+
--vkui--color_im_bubble_incoming_alternate--hover: #F5F5F7;
|
|
517
|
+
--vkui--color_im_bubble_incoming_alternate--active: #EBECEF;
|
|
518
|
+
--vkui--color_im_bubble_incoming_expiring: #E6E9FF;
|
|
519
|
+
--vkui--color_im_bubble_incoming_expiring--hover: #DDE0F7;
|
|
520
|
+
--vkui--color_im_bubble_incoming_expiring--active: #D4D8EF;
|
|
521
|
+
--vkui--color_im_bubble_outgoing: #CCE4FF;
|
|
522
|
+
--vkui--color_im_bubble_outgoing--hover: #C4DCF7;
|
|
523
|
+
--vkui--color_im_bubble_outgoing--active: #BCD3EF;
|
|
524
|
+
--vkui--color_im_bubble_outgoing_expiring_highlighted: #ADB8FF;
|
|
525
|
+
--vkui--color_im_bubble_outgoing_expiring_highlighted--hover: #A6B1F7;
|
|
526
|
+
--vkui--color_im_bubble_outgoing_expiring_highlighted--active: #9FABEF;
|
|
527
|
+
--vkui--color_im_bubble_gift_text: #857250;
|
|
528
|
+
--vkui--color_im_bubble_gift_text--hover: #806E4F;
|
|
529
|
+
--vkui--color_im_bubble_gift_text--active: #7A6A4E;
|
|
530
|
+
--vkui--color_im_bubble_gift_text_secondary: #AB9871;
|
|
531
|
+
--vkui--color_im_bubble_gift_text_secondary--hover: #A4936F;
|
|
532
|
+
--vkui--color_im_bubble_gift_text_secondary--active: #9D8D6D;
|
|
533
|
+
--vkui--color_im_text_name: #2D81E0;
|
|
534
|
+
--vkui--color_im_text_name--hover: #2B7CD9;
|
|
535
|
+
--vkui--color_im_text_name--active: #2978D3;
|
|
457
536
|
}
|
|
458
537
|
|
|
459
538
|
.vkui--font_title1--regular {
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--vkui--theme_name: 'vkBase';
|
|
3
3
|
--vkui--theme_name_base: 'vkBase';
|
|
4
|
+
--vkui--gradient_aquamarine_blue: #7DF1FA, #2BB4D6;
|
|
5
|
+
--vkui--gradient_blue: #66CCFF, #3F8AE0;
|
|
6
|
+
--vkui--gradient_candy: #FF99CC, #E52E6A;
|
|
7
|
+
--vkui--gradient_crimson: #FF7373, #E53949, #BF1C38;
|
|
8
|
+
--vkui--gradient_disco: #FFB726, #FF2693, #8122E0, #2693FF;
|
|
9
|
+
--vkui--gradient_emerald: #00D948, #0D8046;
|
|
10
|
+
--vkui--gradient_gray: #C1CAD6, #878F99;
|
|
11
|
+
--vkui--gradient_green: #6CD97E, #12B312;
|
|
12
|
+
--vkui--gradient_lagoon: #2BD9D9, #5C9CE6;
|
|
13
|
+
--vkui--gradient_lavender: #928FFF, #4B47B2;
|
|
14
|
+
--vkui--gradient_marine: #2EE54D, #0D7EFF;
|
|
15
|
+
--vkui--gradient_midnight: #73D0FF, #3885E1, #0032A6;
|
|
16
|
+
--vkui--gradient_orange: #FFBF80, #E66B2E;
|
|
17
|
+
--vkui--gradient_pink: #FF8880, #E62E6B;
|
|
18
|
+
--vkui--gradient_purple: #A393F5, #735CE6;
|
|
19
|
+
--vkui--gradient_raspberry_pink: #FF80D5, #E645B1;
|
|
20
|
+
--vkui--gradient_red: #FF7583, #E62E40;
|
|
21
|
+
--vkui--gradient_retrowave: #30F2B1, #5967FF, #FF26A5;
|
|
22
|
+
--vkui--gradient_sunset: #FFD24D, #F26549, #E62E6B;
|
|
23
|
+
--vkui--gradient_turquoise: #8AE6E6, #12B3B3;
|
|
24
|
+
--vkui--gradient_twilight: #FF4D87, #9F40FF, #3399FF;
|
|
25
|
+
--vkui--gradient_unicorn: #FF99CC, #A179F2, #5CA1E6;
|
|
26
|
+
--vkui--gradient_violet: #D3A6FF, #903FE0;
|
|
27
|
+
--vkui--gradient_yellow: #FFC44D, #F07300;
|
|
28
|
+
--vkui--gradient_yellow_bright: #FFD54F, #E7A902;
|
|
29
|
+
--vkui--gradient_halloween_orange: #CB1E3B, #F05C44, #FFA000;
|
|
30
|
+
--vkui--gradient_halloween_violet: #FFA000, #CD4C4B, #792EC0;
|
|
31
|
+
--vkui--gradient_new_year: #BB64E4, #805BD7, #2866D5;
|
|
32
|
+
--vkui--gradient_frost: #4FA0FF, #016CEA;
|
|
33
|
+
--vkui--gradient_valentine: #FF8A65, #F25383, #8F13DB;
|
|
34
|
+
--vkui--gradient_warm_valentine: #F3386A, #FF819E;
|
|
35
|
+
--vkui--gradient_sberkot: #9DF19D, #31C2A7, #21A19A, #107F8C;
|
|
36
|
+
--vkui--gradient_mable: #D9F4FF, #D9F4FF;
|
|
37
|
+
--vkui--gradient_womens_day: #FF99CC, #E52E6A;
|
|
4
38
|
--vkui--gradient_black: rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.014) 13%, rgba(0, 0, 0, 0.06) 27%, rgba(0, 0, 0, 0.316) 68%, rgba(0, 0, 0, 0.38) 84%, rgba(0, 0, 0, 0.4) 100%;
|
|
5
39
|
--vkui--gradient_white: rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.036) 13%, rgba(255, 255, 255, 0.15) 27%, rgba(255, 255, 255, 0.79) 68%, rgba(255, 255, 255, 0.95) 84%, rgba(255, 255, 255, 1) 100%;
|
|
6
40
|
--vkui--gradient_tint: rgba(249, 249, 249, 0) 0%, rgba(249, 249, 249, 0.036) 13%, rgba(249, 249, 249, 0.15) 27%, rgba(249, 249, 249, 0.79) 68%, rgba(249, 249, 249, 0.95) 84%, rgba(249, 249, 249, 1) 100%;
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--vkui--theme_name: 'vkBase';
|
|
3
3
|
--vkui--theme_name_base: 'vkBase';
|
|
4
|
+
--vkui--gradient_aquamarine_blue: #7DF1FA, #2BB4D6;
|
|
5
|
+
--vkui--gradient_blue: #66CCFF, #3F8AE0;
|
|
6
|
+
--vkui--gradient_candy: #FF99CC, #E52E6A;
|
|
7
|
+
--vkui--gradient_crimson: #FF7373, #E53949, #BF1C38;
|
|
8
|
+
--vkui--gradient_disco: #FFB726, #FF2693, #8122E0, #2693FF;
|
|
9
|
+
--vkui--gradient_emerald: #00D948, #0D8046;
|
|
10
|
+
--vkui--gradient_gray: #C1CAD6, #878F99;
|
|
11
|
+
--vkui--gradient_green: #6CD97E, #12B312;
|
|
12
|
+
--vkui--gradient_lagoon: #2BD9D9, #5C9CE6;
|
|
13
|
+
--vkui--gradient_lavender: #928FFF, #4B47B2;
|
|
14
|
+
--vkui--gradient_marine: #2EE54D, #0D7EFF;
|
|
15
|
+
--vkui--gradient_midnight: #73D0FF, #3885E1, #0032A6;
|
|
16
|
+
--vkui--gradient_orange: #FFBF80, #E66B2E;
|
|
17
|
+
--vkui--gradient_pink: #FF8880, #E62E6B;
|
|
18
|
+
--vkui--gradient_purple: #A393F5, #735CE6;
|
|
19
|
+
--vkui--gradient_raspberry_pink: #FF80D5, #E645B1;
|
|
20
|
+
--vkui--gradient_red: #FF7583, #E62E40;
|
|
21
|
+
--vkui--gradient_retrowave: #30F2B1, #5967FF, #FF26A5;
|
|
22
|
+
--vkui--gradient_sunset: #FFD24D, #F26549, #E62E6B;
|
|
23
|
+
--vkui--gradient_turquoise: #8AE6E6, #12B3B3;
|
|
24
|
+
--vkui--gradient_twilight: #FF4D87, #9F40FF, #3399FF;
|
|
25
|
+
--vkui--gradient_unicorn: #FF99CC, #A179F2, #5CA1E6;
|
|
26
|
+
--vkui--gradient_violet: #D3A6FF, #903FE0;
|
|
27
|
+
--vkui--gradient_yellow: #FFC44D, #F07300;
|
|
28
|
+
--vkui--gradient_yellow_bright: #FFD54F, #E7A902;
|
|
29
|
+
--vkui--gradient_halloween_orange: #CB1E3B, #F05C44, #FFA000;
|
|
30
|
+
--vkui--gradient_halloween_violet: #FFA000, #CD4C4B, #792EC0;
|
|
31
|
+
--vkui--gradient_new_year: #BB64E4, #805BD7, #2866D5;
|
|
32
|
+
--vkui--gradient_frost: #4FA0FF, #016CEA;
|
|
33
|
+
--vkui--gradient_valentine: #FF8A65, #F25383, #8F13DB;
|
|
34
|
+
--vkui--gradient_warm_valentine: #F3386A, #FF819E;
|
|
35
|
+
--vkui--gradient_sberkot: #9DF19D, #31C2A7, #21A19A, #107F8C;
|
|
36
|
+
--vkui--gradient_mable: #D9F4FF, #D9F4FF;
|
|
37
|
+
--vkui--gradient_womens_day: #FF99CC, #E52E6A;
|
|
4
38
|
--vkui--gradient_black: rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.014) 13%, rgba(0, 0, 0, 0.06) 27%, rgba(0, 0, 0, 0.316) 68%, rgba(0, 0, 0, 0.38) 84%, rgba(0, 0, 0, 0.4) 100%;
|
|
5
39
|
--vkui--gradient_white: rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.036) 13%, rgba(255, 255, 255, 0.15) 27%, rgba(255, 255, 255, 0.79) 68%, rgba(255, 255, 255, 0.95) 84%, rgba(255, 255, 255, 1) 100%;
|
|
6
40
|
--vkui--gradient_tint: rgba(249, 249, 249, 0) 0%, rgba(249, 249, 249, 0.036) 13%, rgba(249, 249, 249, 0.15) 27%, rgba(249, 249, 249, 0.79) 68%, rgba(249, 249, 249, 0.95) 84%, rgba(249, 249, 249, 1) 100%;
|
|
@@ -289,4 +323,49 @@
|
|
|
289
323
|
--vkui--color_transparent: transparent;
|
|
290
324
|
--vkui--color_transparent--hover: rgba(0, 16, 61, 0.04);
|
|
291
325
|
--vkui--color_transparent--active: rgba(0, 16, 61, 0.08);
|
|
326
|
+
--vkui--color_snippet_border_alpha: rgba(0, 0, 0, 0.15);
|
|
327
|
+
--vkui--color_snippet_border_alpha--hover: rgba(0, 0, 0, 0.19);
|
|
328
|
+
--vkui--color_snippet_border_alpha--active: rgba(0, 0, 0, 0.23);
|
|
329
|
+
--vkui--color_modal_card_border_alpha: rgba(0, 0, 0, 0.00);
|
|
330
|
+
--vkui--color_modal_card_border_alpha--hover: rgba(0, 0, 0, 0.04);
|
|
331
|
+
--vkui--color_modal_card_border_alpha--active: rgba(0, 0, 0, 0.08);
|
|
332
|
+
--vkui--color_landing_snippet_border_alpha: rgba(0, 0, 0, 0.15);
|
|
333
|
+
--vkui--color_landing_snippet_border_alpha--hover: rgba(0, 0, 0, 0.19);
|
|
334
|
+
--vkui--color_landing_snippet_border_alpha--active: rgba(0, 0, 0, 0.23);
|
|
335
|
+
--vkui--color_action_sheet_separator_alpha: rgba(0, 0, 0, 0.12);
|
|
336
|
+
--vkui--color_action_sheet_separator_alpha--hover: rgba(0, 0, 0, 0.16);
|
|
337
|
+
--vkui--color_action_sheet_separator_alpha--active: rgba(0, 0, 0, 0.2);
|
|
338
|
+
--vkui--color_input_border: #E1E3E6;
|
|
339
|
+
--vkui--color_input_border--hover: #D8DBDF;
|
|
340
|
+
--vkui--color_input_border--active: #CFD2D8;
|
|
341
|
+
--vkui--color_im_forward_line_alpha: rgba(69, 103, 143, 0.24);
|
|
342
|
+
--vkui--color_im_forward_line_alpha--hover: rgba(69, 103, 143, 0.28);
|
|
343
|
+
--vkui--color_im_forward_line_alpha--active: rgba(69, 103, 143, 0.32);
|
|
344
|
+
--vkui--color_im_bubble_border_alternate_highlighted_alpha: #D7D8D9;
|
|
345
|
+
--vkui--color_im_bubble_border_alternate_highlighted_alpha--hover: #CED0D3;
|
|
346
|
+
--vkui--color_im_bubble_border_alternate_highlighted_alpha--active: #C6C8CD;
|
|
347
|
+
--vkui--color_im_bubble_incoming: #EBEDF0;
|
|
348
|
+
--vkui--color_im_bubble_incoming--hover: #E2E4E9;
|
|
349
|
+
--vkui--color_im_bubble_incoming--active: #D8DBE2;
|
|
350
|
+
--vkui--color_im_bubble_incoming_alternate: #FFFFFF;
|
|
351
|
+
--vkui--color_im_bubble_incoming_alternate--hover: #F5F5F7;
|
|
352
|
+
--vkui--color_im_bubble_incoming_alternate--active: #EBECEF;
|
|
353
|
+
--vkui--color_im_bubble_incoming_expiring: #E6E9FF;
|
|
354
|
+
--vkui--color_im_bubble_incoming_expiring--hover: #DDE0F7;
|
|
355
|
+
--vkui--color_im_bubble_incoming_expiring--active: #D4D8EF;
|
|
356
|
+
--vkui--color_im_bubble_outgoing: #CCE4FF;
|
|
357
|
+
--vkui--color_im_bubble_outgoing--hover: #C4DCF7;
|
|
358
|
+
--vkui--color_im_bubble_outgoing--active: #BCD3EF;
|
|
359
|
+
--vkui--color_im_bubble_outgoing_expiring_highlighted: #ADB8FF;
|
|
360
|
+
--vkui--color_im_bubble_outgoing_expiring_highlighted--hover: #A6B1F7;
|
|
361
|
+
--vkui--color_im_bubble_outgoing_expiring_highlighted--active: #9FABEF;
|
|
362
|
+
--vkui--color_im_bubble_gift_text: #857250;
|
|
363
|
+
--vkui--color_im_bubble_gift_text--hover: #806E4F;
|
|
364
|
+
--vkui--color_im_bubble_gift_text--active: #7A6A4E;
|
|
365
|
+
--vkui--color_im_bubble_gift_text_secondary: #AB9871;
|
|
366
|
+
--vkui--color_im_bubble_gift_text_secondary--hover: #A4936F;
|
|
367
|
+
--vkui--color_im_bubble_gift_text_secondary--active: #9D8D6D;
|
|
368
|
+
--vkui--color_im_text_name: #2D81E0;
|
|
369
|
+
--vkui--color_im_text_name--hover: #2B7CD9;
|
|
370
|
+
--vkui--color_im_text_name--active: #2978D3;
|
|
292
371
|
}
|