@vkontakte/vkui-tokens 4.76.1 → 4.77.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/compilers/styles/helpers/tokenProcessors.d.ts +1 -1
- package/build/compilers/styles/helpers/tokenProcessors.js +8 -4
- package/build/themeProcessors/pixelifyValues/pixelifyValues.d.ts +1 -1
- package/build/themeProcessors/pixelifyValues/pixelifyValues.js +4 -2
- package/interfaces/general/typography/index.d.ts +8 -0
- package/package.json +1 -1
- package/themes/legoAndroid/cssVars/declarations/index.css +53 -79
- package/themes/legoAndroid/cssVars/declarations/noColors.css +43 -69
- package/themes/legoAndroid/cssVars/declarations/onlyAdaptiveGroups.css +10 -10
- package/themes/legoAndroid/cssVars/declarations/onlyVariables.css +21 -21
- package/themes/legoAndroid/cssVars/declarations/onlyVariables.js +1 -1
- package/themes/legoAndroid/cssVars/declarations/onlyVariablesLocal.css +21 -21
- package/themes/legoAndroid/cssVars/declarations/onlyVariablesLocalIncremental.css +21 -21
- package/themes/legoAndroid/cssVars/theme/fallbacks/index.css +43 -69
- package/themes/legoAndroid/cssVars/theme/fallbacks/index.less +11 -24
- package/themes/legoAndroid/cssVars/theme/fallbacks/index.pcss +11 -24
- package/themes/legoAndroid/cssVars/theme/fallbacks/index.scss +39 -52
- package/themes/legoAndroid/cssVars/theme/fallbacks/index.styl +11 -24
- package/themes/legoAndroid/cssVars/theme/index.js +1 -1
- package/themes/legoAndroid/cssVars/theme/index.json +111 -71
- package/themes/legoAndroid/index.css +43 -69
- package/themes/legoAndroid/index.js +1 -1
- package/themes/legoAndroid/index.json +41 -21
- package/themes/legoAndroid/index.less +11 -24
- package/themes/legoAndroid/index.pcss +11 -24
- package/themes/legoAndroid/index.scss +39 -52
- package/themes/legoAndroid/index.styl +11 -24
- package/themes/legoAndroid/struct.json +41 -21
- package/themes/legoAndroidDark/cssVars/declarations/index.css +53 -79
- package/themes/legoAndroidDark/cssVars/declarations/noColors.css +43 -69
- package/themes/legoAndroidDark/cssVars/declarations/onlyAdaptiveGroups.css +10 -10
- package/themes/legoAndroidDark/cssVars/declarations/onlyVariables.css +21 -21
- package/themes/legoAndroidDark/cssVars/declarations/onlyVariables.js +1 -1
- package/themes/legoAndroidDark/cssVars/declarations/onlyVariablesLocal.css +21 -21
- package/themes/legoAndroidDark/cssVars/declarations/onlyVariablesLocalIncremental.css +21 -21
- package/themes/legoAndroidDark/cssVars/theme/fallbacks/index.css +43 -69
- package/themes/legoAndroidDark/cssVars/theme/fallbacks/index.less +11 -24
- package/themes/legoAndroidDark/cssVars/theme/fallbacks/index.pcss +11 -24
- package/themes/legoAndroidDark/cssVars/theme/fallbacks/index.scss +39 -52
- package/themes/legoAndroidDark/cssVars/theme/fallbacks/index.styl +11 -24
- package/themes/legoAndroidDark/cssVars/theme/index.js +1 -1
- package/themes/legoAndroidDark/cssVars/theme/index.json +111 -71
- package/themes/legoAndroidDark/index.css +43 -69
- package/themes/legoAndroidDark/index.js +1 -1
- package/themes/legoAndroidDark/index.json +41 -21
- package/themes/legoAndroidDark/index.less +11 -24
- package/themes/legoAndroidDark/index.pcss +11 -24
- package/themes/legoAndroidDark/index.scss +39 -52
- package/themes/legoAndroidDark/index.styl +11 -24
- package/themes/legoAndroidDark/struct.json +41 -21
- package/themes/legoIOS/cssVars/declarations/index.css +68 -90
- package/themes/legoIOS/cssVars/declarations/noColors.css +58 -81
- package/themes/legoIOS/cssVars/declarations/onlyAdaptiveGroups.css +10 -9
- package/themes/legoIOS/cssVars/declarations/onlyVariables.css +26 -25
- package/themes/legoIOS/cssVars/declarations/onlyVariables.js +1 -1
- package/themes/legoIOS/cssVars/declarations/onlyVariablesLocal.css +26 -25
- package/themes/legoIOS/cssVars/declarations/onlyVariablesLocalIncremental.css +26 -25
- package/themes/legoIOS/cssVars/theme/fallbacks/index.css +58 -81
- package/themes/legoIOS/cssVars/theme/fallbacks/index.less +16 -28
- package/themes/legoIOS/cssVars/theme/fallbacks/index.pcss +16 -28
- package/themes/legoIOS/cssVars/theme/fallbacks/index.scss +51 -62
- package/themes/legoIOS/cssVars/theme/fallbacks/index.styl +16 -28
- package/themes/legoIOS/cssVars/theme/index.js +1 -1
- package/themes/legoIOS/cssVars/theme/index.json +118 -70
- package/themes/legoIOS/index.css +58 -81
- package/themes/legoIOS/index.js +1 -1
- package/themes/legoIOS/index.json +46 -25
- package/themes/legoIOS/index.less +16 -28
- package/themes/legoIOS/index.pcss +16 -28
- package/themes/legoIOS/index.scss +51 -62
- package/themes/legoIOS/index.styl +16 -28
- package/themes/legoIOS/struct.json +46 -25
- package/themes/legoIOSDark/cssVars/declarations/index.css +68 -90
- package/themes/legoIOSDark/cssVars/declarations/noColors.css +58 -81
- package/themes/legoIOSDark/cssVars/declarations/onlyAdaptiveGroups.css +10 -9
- package/themes/legoIOSDark/cssVars/declarations/onlyVariables.css +26 -25
- package/themes/legoIOSDark/cssVars/declarations/onlyVariables.js +1 -1
- package/themes/legoIOSDark/cssVars/declarations/onlyVariablesLocal.css +26 -25
- package/themes/legoIOSDark/cssVars/declarations/onlyVariablesLocalIncremental.css +26 -25
- package/themes/legoIOSDark/cssVars/theme/fallbacks/index.css +58 -81
- package/themes/legoIOSDark/cssVars/theme/fallbacks/index.less +16 -28
- package/themes/legoIOSDark/cssVars/theme/fallbacks/index.pcss +16 -28
- package/themes/legoIOSDark/cssVars/theme/fallbacks/index.scss +51 -62
- package/themes/legoIOSDark/cssVars/theme/fallbacks/index.styl +16 -28
- package/themes/legoIOSDark/cssVars/theme/index.js +1 -1
- package/themes/legoIOSDark/cssVars/theme/index.json +118 -70
- package/themes/legoIOSDark/index.css +58 -81
- package/themes/legoIOSDark/index.js +1 -1
- package/themes/legoIOSDark/index.json +46 -25
- package/themes/legoIOSDark/index.less +16 -28
- package/themes/legoIOSDark/index.pcss +16 -28
- package/themes/legoIOSDark/index.scss +51 -62
- package/themes/legoIOSDark/index.styl +16 -28
- package/themes/legoIOSDark/struct.json +46 -25
|
@@ -17,7 +17,7 @@ export declare const mixinDeclaration: Record<Formats, MixinDeclarationFn>;
|
|
|
17
17
|
export declare const customMediaDeclaration: Record<Formats, CustomMediaDeclarationFn | null>;
|
|
18
18
|
interface ProcessGroupTokenParams {
|
|
19
19
|
format: Formats;
|
|
20
|
-
token: Adaptive<Record<string, string | number
|
|
20
|
+
token: Adaptive<Record<string, string | number | Record<string, string | number>>> | Record<string, string | number | Record<string, string | number>>;
|
|
21
21
|
key: string;
|
|
22
22
|
prefix: string;
|
|
23
23
|
adaptiveMode?: 'none' | 'onlyAdaptiveGroups' | 'withAdaptiveGroups';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import{_ as n}from"@swc/helpers/_/_define_property";import{_ as t}from"@swc/helpers/_/_object_spread";import{_ as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import{_ as n}from"@swc/helpers/_/_define_property";import{_ as t}from"@swc/helpers/_/_object_spread";import{_ as e}from"@swc/helpers/_/_sliced_to_array";import{_ as a}from"@swc/helpers/_/_tagged_template_literal";import{_ as c}from"@swc/helpers/_/_type_of";function o(){var n=a(["\n @mixin media-",""," {\n @media "," { @content; }\n }"]);return o=function(){return n},n}function r(){var n=a(["\n .media-","","(@content) {\n @media "," { @content; }\n }"]);return r=function(){return n},n}function i(){var n=a(["\n media-","","(content) {\n @media "," { content }\n }"]);return i=function(){return n},n}import{stripIndent as s}from"common-tags";import{unCamelcasify as l}from"../../../helpers/unCamelcasify.js";export var EStyleTypes={CSS:"css",SCSS:"scss",PCSS:"pcss",LESS:"less",STYL:"styl"};export var varDeclarations=(n(v={},EStyleTypes.CSS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t).concat(l(n,"_"))}),n(v,EStyleTypes.PCSS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return"--".concat(t).concat(l(n))}),n(v,EStyleTypes.SCSS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"$".concat(t).concat(l(n))}),n(v,EStyleTypes.LESS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"@".concat(t).concat(l(n))}),n(v,EStyleTypes.STYL,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"$".concat(t).concat(l(n))}),v);export var variablesStatementDeclaration=(n(u={},EStyleTypes.CSS,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return" ".concat(n).concat(e,": ").concat(t,";\n")}),n(u,EStyleTypes.PCSS,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return" ".concat(n).concat(e,": ").concat(t,";\n")}),n(u,EStyleTypes.SCSS,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(n).concat(e,": ").concat(t,";\n")}),n(u,EStyleTypes.LESS,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(n).concat(e,": ").concat(t,";\n")}),n(u,EStyleTypes.STYL,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(n).concat(e," = ").concat(t,";\n")}),u);export var mixinDeclaration=(n(S={},EStyleTypes.SCSS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"@mixin ".concat(t).concat(l(n)).concat(e,"()")}),n(S,EStyleTypes.CSS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return".".concat(t).concat(l(n,"_")).concat(e)}),n(S,EStyleTypes.PCSS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"%".concat(t).concat(l(n)).concat(e)}),n(S,EStyleTypes.LESS,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return".".concat(t).concat(l(n)).concat(e)}),n(S,EStyleTypes.STYL,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(t).concat(l(n)).concat(e,"()")}),S);export var customMediaDeclaration=(n(d={},EStyleTypes.CSS,null),n(d,EStyleTypes.PCSS,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"@custom-media --".concat(l(n)).concat(e," ").concat(t,";\n")}),n(d,EStyleTypes.SCSS,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(s(o(),l(n),e,t),"\n")}),n(d,EStyleTypes.LESS,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(s(r(),l(n),e,t),"\n")}),n(d,EStyleTypes.STYL,function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(s(i(),l(n),e,t),"\n")}),d);var v,u,S,d,p=function(n,t){var e,a=t;return(null==(e=a.includes)?void 0:e.call(a,","))&&(a='"'.concat(a,'"'))," '".concat(n,"': ").concat(a,",\n")},f=function(n){var t=n.subKey,a=n.subValue,c=n.token,o=n.key,r=n.prefix,i=n.needUpdateVariables,s=n.needMap,v=n.needAddAdaptiveClasses,u=n.addedAdaptiveGroup,S=n.adaptivityState,d=n.onVariables,f=n.onAdaptiveGroup,y=n.onMap;Object.entries(a).forEach(function(n){var a=e(n,2),g=a[0],m=a[1];if(i){var h="".concat(varDeclarations.css(o,r),"--").concat(l(t,"_"),"--").concat(l(g,"_"));if(void 0!==S){var E,_=(null==(E=// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
2
|
+
c[S][t])?void 0:E[g])!==void 0;h+="--".concat(_?l(S,"_"):"regular"),_&&d(variablesStatementDeclaration.css(h,String(m)))}else d(variablesStatementDeclaration.css(h,String(m)))}// fontVariationSettings не добавляем в groupTokens (не выводим CSS-свойство)
|
|
3
|
+
if(v&&!u){var T="".concat(varDeclarations.css(o,r),"--").concat(l(t,"_"),"--").concat(l(g,"_"));f(" ".concat(l(t),"--").concat(l(g),": var(").concat(T,");\n"))}s&&y(p("".concat(t,".").concat(g),String(m)))})};// eslint-disable-next-line sonarjs/cognitive-complexity,max-lines-per-function
|
|
4
|
+
export function processGroupToken(n){var a=n.format,o=n.token,r=n.key,i=n.prefix,s=n.adaptiveMode,v=void 0===s?"none":s,u=a===EStyleTypes.CSS,S=a===EStyleTypes.SCSS,d=("withAdaptiveGroups"===v||"onlyAdaptiveGroups"===v)&&a===EStyleTypes.CSS,y=function(n,t,e){var a=" ".concat(l(n),": ").concat(t,";\n");return u&&(a+=" ".concat(l(n),": var(").concat(e,", ").concat(t,");\n")),a},g="",m="",h="",E=!1,_="";return(// адаптивная группа
|
|
5
|
+
"regular"in o?(Object.keys(o).forEach(function(n){m+="".concat(mixinDeclaration[a](r,i,"--".concat(l(n)))," {\n"),d&&!E&&(h+="".concat(mixinDeclaration[a](r,i)," {\n")),S&&(_+="".concat(varDeclarations.scss(r,i),"--").concat(l(n),"--map: (\n")),Object.entries(t({},o.regular,o[n])).forEach(function(t){var a=e(t,2),s=a[0],v=a[1];// Обработка вложенных объектов (fontVariationSettings)
|
|
6
|
+
if((void 0===v?"undefined":c(v))==="object"&&null!==v)return void f({subKey:s,subValue:v,token:o,key:r,prefix:i,needUpdateVariables:u,needMap:S,needAddAdaptiveClasses:d,addedAdaptiveGroup:E,adaptivityState:n,onVariables:function(n){g+=n},onAdaptiveGroup:function(n){h+=n},onMap:function(n){_+=n}});var T="";if(u){var b=void 0!==o[n][s];T="".concat(varDeclarations.css(r,i),"--").concat(l(s,"_"),"--").concat(b?l(n,"_"):"regular"),b&&(g+=variablesStatementDeclaration.css(T,String(v)))}m+=y(s,String(v),T),d&&!E&&(h+=" ".concat(l(s),": var(").concat(T.replace(new RegExp("--(regular|".concat(n,")$")),""),");\n")),S&&(_+=p(s,String(v)))}),m+="}\n",d&&!E&&(h+="}\n",m+=h,E=!0),S&&(_+=");\n",m+=_)}),"onlyAdaptiveGroups"===v&&(m=h)):(// неадаптивная группа
|
|
7
|
+
m+="".concat(mixinDeclaration[a](r,i)," {\n"),S&&(_+="".concat(varDeclarations.scss(r,i),"--map: (\n")),Object.entries(o).forEach(function(n){var t=e(n,2),a=t[0],s=t[1];// Обработка вложенных объектов (fontVariationSettings)
|
|
8
|
+
if((void 0===s?"undefined":c(s))==="object"&&null!==s)return void f({subKey:a,subValue:s,token:o,key:r,prefix:i,needUpdateVariables:u,needMap:S,needAddAdaptiveClasses:d,addedAdaptiveGroup:E,onVariables:function(n){g+=n},onAdaptiveGroup:function(n){h+=n},onMap:function(n){_+=n}});var v="";u&&(v="".concat(varDeclarations.css(r,i),"--").concat(l(a,"_")),g+=variablesStatementDeclaration.css(v,String(s))),m+=y(a,String(s),v),S&&(_+=p(a,String(s)))}),m+="}\n",S&&(_+=");\n",m+=_)),{variables:g,groupTokens:m})}
|
|
@@ -2,4 +2,4 @@ import type { PixelifyTheme, Theme } from "../../../interfaces/general/index.ts"
|
|
|
2
2
|
/**
|
|
3
3
|
* Процессор, который превращает численные значения переменных в строковые
|
|
4
4
|
* пример fontSize: 14 -> fontSize: "14px"
|
|
5
|
-
*/ export declare function pixelifyValues<T = Theme>(sourceTheme: T): PixelifyTheme<T>;
|
|
5
|
+
*/ export declare function pixelifyValues<T = Theme>(sourceTheme: T, parentKey?: string): PixelifyTheme<T>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import{_ as e}from"@swc/helpers/_/_sliced_to_array";import{_ as t}from"@swc/helpers/_/_type_of";var i=/^(breakpoints$|fontWeight|zIndex|opacity|tone)/i
|
|
1
|
+
import{_ as e}from"@swc/helpers/_/_sliced_to_array";import{_ as t}from"@swc/helpers/_/_type_of";var i=/^(breakpoints$|fontWeight|zIndex|opacity|tone)/i,/**
|
|
2
|
+
* Ключи, внутри которых числовые значения не нужно пикселифицировать
|
|
3
|
+
*/r=new Set(["fontVariationSettings"]);/**
|
|
2
4
|
* Процессор, который превращает численные значения переменных в строковые
|
|
3
5
|
* пример fontSize: 14 -> fontSize: "14px"
|
|
4
|
-
*/export function pixelifyValues(
|
|
6
|
+
*/export function pixelifyValues(n,o){var a=JSON.parse(JSON.stringify(n));return Object.entries(a).forEach(function(n){var s=e(n,2),p=s[0],f=s[1];!i.test(p)&&("themeType"===p&&(a[p]="pixelify"),(void 0===f?"undefined":t(f))==="object"&&(a[p]=pixelifyValues(f,p)),"number"!=typeof f||r.has(null!=o?o:"")||(a[p]="".concat(f,"px")))}),a}
|
|
@@ -10,6 +10,14 @@ export type Font = {
|
|
|
10
10
|
fontStyle?: Property.FontStyle;
|
|
11
11
|
margin?: string;
|
|
12
12
|
marginBottom?: string | number;
|
|
13
|
+
fontVariationSettings?: FontVariationSettings;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Оси вариативных шрифтов
|
|
17
|
+
*/ export type FontVariationSettings = {
|
|
18
|
+
opticalSize?: string | number;
|
|
19
|
+
slant?: number;
|
|
20
|
+
width?: number;
|
|
13
21
|
};
|
|
14
22
|
/**
|
|
15
23
|
* Переменные, отвечающие за группы переменных, отвечающих за шрифты
|
package/package.json
CHANGED
|
@@ -40,22 +40,22 @@
|
|
|
40
40
|
--vkui--font_title1--line_height--regular: 31px;
|
|
41
41
|
--vkui--font_title1--font_family--regular: "VK Sans Display", -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
42
42
|
--vkui--font_title1--font_weight--regular: 700;
|
|
43
|
-
--vkui--font_title1--letter_spacing--regular: -0.
|
|
43
|
+
--vkui--font_title1--letter_spacing--regular: -0.5px;
|
|
44
44
|
--vkui--font_title2--font_size--regular: 24px;
|
|
45
45
|
--vkui--font_title2--line_height--regular: 26px;
|
|
46
46
|
--vkui--font_title2--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
47
|
-
--vkui--font_title2--font_weight--regular:
|
|
48
|
-
--vkui--font_title2--
|
|
49
|
-
--vkui--font_title3--font_size--regular:
|
|
47
|
+
--vkui--font_title2--font_weight--regular: 670;
|
|
48
|
+
--vkui--font_title2--font_variation_settings--optical_size--regular: 27.2;
|
|
49
|
+
--vkui--font_title3--font_size--regular: 21.5px;
|
|
50
50
|
--vkui--font_title3--line_height--regular: 23px;
|
|
51
51
|
--vkui--font_title3--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
52
|
-
--vkui--font_title3--font_weight--regular:
|
|
53
|
-
--vkui--font_title3--
|
|
52
|
+
--vkui--font_title3--font_weight--regular: 670;
|
|
53
|
+
--vkui--font_title3--font_variation_settings--optical_size--regular: 23;
|
|
54
54
|
--vkui--font_headline1--font_size--regular: 17px;
|
|
55
55
|
--vkui--font_headline1--line_height--regular: 20px;
|
|
56
56
|
--vkui--font_headline1--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
57
57
|
--vkui--font_headline1--font_weight--regular: 600;
|
|
58
|
-
--vkui--font_headline1--
|
|
58
|
+
--vkui--font_headline1--font_variation_settings--optical_size--regular: 24;
|
|
59
59
|
--vkui--font_headline1--font_size--compact: 15px;
|
|
60
60
|
--vkui--font_headline1--line_height--compact: 20px;
|
|
61
61
|
--vkui--font_headline2--font_size--regular: 15px;
|
|
@@ -65,17 +65,17 @@
|
|
|
65
65
|
--vkui--font_headline2--font_size--compact: 14px;
|
|
66
66
|
--vkui--font_headline2--line_height--compact: 20px;
|
|
67
67
|
--vkui--font_text--font_size--regular: 16px;
|
|
68
|
-
--vkui--font_text--line_height--regular: 18.
|
|
68
|
+
--vkui--font_text--line_height--regular: 18.33px;
|
|
69
69
|
--vkui--font_text--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
70
70
|
--vkui--font_text--font_weight--regular: 600;
|
|
71
|
-
--vkui--font_text--
|
|
71
|
+
--vkui--font_text--font_variation_settings--optical_size--regular: 24;
|
|
72
72
|
--vkui--font_text--font_size--compact: 15px;
|
|
73
73
|
--vkui--font_text--line_height--compact: 20px;
|
|
74
74
|
--vkui--font_paragraph--font_size--regular: 15px;
|
|
75
|
-
--vkui--font_paragraph--line_height--regular:
|
|
75
|
+
--vkui--font_paragraph--line_height--regular: 18.5px;
|
|
76
76
|
--vkui--font_paragraph--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
77
|
-
--vkui--font_paragraph--font_weight--regular:
|
|
78
|
-
--vkui--font_paragraph--
|
|
77
|
+
--vkui--font_paragraph--font_weight--regular: 580;
|
|
78
|
+
--vkui--font_paragraph--font_variation_settings--optical_size--regular: 26;
|
|
79
79
|
--vkui--font_subhead--font_size--regular: 14px;
|
|
80
80
|
--vkui--font_subhead--line_height--regular: 18px;
|
|
81
81
|
--vkui--font_subhead--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
--vkui--font_footnote--line_height--regular: 15px;
|
|
87
87
|
--vkui--font_footnote--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
88
88
|
--vkui--font_footnote--font_weight--regular: 600;
|
|
89
|
-
--vkui--font_footnote--
|
|
89
|
+
--vkui--font_footnote--font_variation_settings--optical_size--regular: 20;
|
|
90
90
|
--vkui--font_footnote_caps--font_size--regular: 13px;
|
|
91
91
|
--vkui--font_footnote_caps--line_height--regular: 16px;
|
|
92
92
|
--vkui--font_footnote_caps--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
@@ -227,16 +227,16 @@
|
|
|
227
227
|
--vkui--theme_inherits_from: 'vkontakteAndroid';
|
|
228
228
|
--vkui--font_label1--font_size--regular: 19px;
|
|
229
229
|
--vkui--font_label1--line_height--regular: 20px;
|
|
230
|
-
--vkui--font_label1--font_weight--regular:
|
|
231
|
-
--vkui--font_label1--
|
|
230
|
+
--vkui--font_label1--font_weight--regular: 670;
|
|
231
|
+
--vkui--font_label1--font_variation_settings--optical_size--regular: 24;
|
|
232
232
|
--vkui--font_label2--font_size--regular: 18px;
|
|
233
233
|
--vkui--font_label2--line_height--regular: 21px;
|
|
234
234
|
--vkui--font_label2--font_weight--regular: 600;
|
|
235
|
-
--vkui--font_label2--
|
|
236
|
-
--vkui--font_body--font_size--regular:
|
|
237
|
-
--vkui--font_body--line_height--regular:
|
|
238
|
-
--vkui--font_body--font_weight--regular:
|
|
239
|
-
--vkui--font_body--
|
|
235
|
+
--vkui--font_label2--font_variation_settings--optical_size--regular: 26;
|
|
236
|
+
--vkui--font_body--font_size--regular: 16.5px;
|
|
237
|
+
--vkui--font_body--line_height--regular: 21px;
|
|
238
|
+
--vkui--font_body--font_weight--regular: 520;
|
|
239
|
+
--vkui--font_body--font_variation_settings--optical_size--regular: 22;
|
|
240
240
|
--vkui--gradient_black: rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 15%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.32) 70%, rgba(0, 0, 0, 0.38) 85%, rgba(0, 0, 0, 0.4) 100%;
|
|
241
241
|
--vkui--gradient_white: rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 15%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 0.95) 85%, rgba(255, 255, 255, 1) 100%;
|
|
242
242
|
--vkui--gradient_tint: rgba(247, 247, 247, 0) 0%, rgba(247, 247, 247, 0.05) 15%, rgba(247, 247, 247, 0.2) 30%, rgba(247, 247, 247, 0.8) 70%, rgba(247, 247, 247, 0.95) 85%, var(--vkui--color_background_tertiary, rgba(247, 247, 247, 1)) 100%;
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
--vkui--font_headline--line_height--regular: 20px;
|
|
246
246
|
--vkui--font_headline--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
247
247
|
--vkui--font_headline--font_weight--regular: 600;
|
|
248
|
-
--vkui--font_headline--
|
|
248
|
+
--vkui--font_headline--font_variation_settings--optical_size--regular: 24;
|
|
249
249
|
--vkui--font_headline--font_size--compact: 15px;
|
|
250
250
|
--vkui--font_headline--line_height--compact: 20px;
|
|
251
251
|
--vkui--vkontakte_gradient_aquamarine_blue: rgba(125, 241, 250, 1) 0%, rgba(43, 180, 214, 1) 100%;
|
|
@@ -956,8 +956,8 @@
|
|
|
956
956
|
font-family: var(--vkui--font_title1--font_family--regular, "VK Sans Display", -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
957
957
|
font-weight: 700;
|
|
958
958
|
font-weight: var(--vkui--font_title1--font_weight--regular, 700);
|
|
959
|
-
letter-spacing: -0.
|
|
960
|
-
letter-spacing: var(--vkui--font_title1--letter_spacing--regular, -0.
|
|
959
|
+
letter-spacing: -0.5px;
|
|
960
|
+
letter-spacing: var(--vkui--font_title1--letter_spacing--regular, -0.5px);
|
|
961
961
|
}
|
|
962
962
|
.vkui--font_title1 {
|
|
963
963
|
font-size: var(--vkui--font_title1--font_size);
|
|
@@ -973,36 +973,32 @@
|
|
|
973
973
|
line-height: var(--vkui--font_title2--line_height--regular, 26px);
|
|
974
974
|
font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
975
975
|
font-family: var(--vkui--font_title2--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
976
|
-
font-weight:
|
|
977
|
-
font-weight: var(--vkui--font_title2--font_weight--regular,
|
|
978
|
-
letter-spacing: -0.58px;
|
|
979
|
-
letter-spacing: var(--vkui--font_title2--letter_spacing--regular, -0.58px);
|
|
976
|
+
font-weight: 670;
|
|
977
|
+
font-weight: var(--vkui--font_title2--font_weight--regular, 670);
|
|
980
978
|
}
|
|
981
979
|
.vkui--font_title2 {
|
|
982
980
|
font-size: var(--vkui--font_title2--font_size);
|
|
983
981
|
line-height: var(--vkui--font_title2--line_height);
|
|
984
982
|
font-family: var(--vkui--font_title2--font_family);
|
|
985
983
|
font-weight: var(--vkui--font_title2--font_weight);
|
|
986
|
-
|
|
984
|
+
font-variation-settings--optical-size: var(--vkui--font_title2--font_variation_settings--optical_size);
|
|
987
985
|
}
|
|
988
986
|
.vkui--font_title3--regular {
|
|
989
|
-
font-size:
|
|
990
|
-
font-size: var(--vkui--font_title3--font_size--regular,
|
|
987
|
+
font-size: 21.5px;
|
|
988
|
+
font-size: var(--vkui--font_title3--font_size--regular, 21.5px);
|
|
991
989
|
line-height: 23px;
|
|
992
990
|
line-height: var(--vkui--font_title3--line_height--regular, 23px);
|
|
993
991
|
font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
994
992
|
font-family: var(--vkui--font_title3--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
995
|
-
font-weight:
|
|
996
|
-
font-weight: var(--vkui--font_title3--font_weight--regular,
|
|
997
|
-
letter-spacing: -0.78px;
|
|
998
|
-
letter-spacing: var(--vkui--font_title3--letter_spacing--regular, -0.78px);
|
|
993
|
+
font-weight: 670;
|
|
994
|
+
font-weight: var(--vkui--font_title3--font_weight--regular, 670);
|
|
999
995
|
}
|
|
1000
996
|
.vkui--font_title3 {
|
|
1001
997
|
font-size: var(--vkui--font_title3--font_size);
|
|
1002
998
|
line-height: var(--vkui--font_title3--line_height);
|
|
1003
999
|
font-family: var(--vkui--font_title3--font_family);
|
|
1004
1000
|
font-weight: var(--vkui--font_title3--font_weight);
|
|
1005
|
-
|
|
1001
|
+
font-variation-settings--optical-size: var(--vkui--font_title3--font_variation_settings--optical_size);
|
|
1006
1002
|
}
|
|
1007
1003
|
.vkui--font_headline1--regular {
|
|
1008
1004
|
font-size: 17px;
|
|
@@ -1013,15 +1009,13 @@
|
|
|
1013
1009
|
font-family: var(--vkui--font_headline1--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1014
1010
|
font-weight: 600;
|
|
1015
1011
|
font-weight: var(--vkui--font_headline1--font_weight--regular, 600);
|
|
1016
|
-
letter-spacing: -0.72px;
|
|
1017
|
-
letter-spacing: var(--vkui--font_headline1--letter_spacing--regular, -0.72px);
|
|
1018
1012
|
}
|
|
1019
1013
|
.vkui--font_headline1 {
|
|
1020
1014
|
font-size: var(--vkui--font_headline1--font_size);
|
|
1021
1015
|
line-height: var(--vkui--font_headline1--line_height);
|
|
1022
1016
|
font-family: var(--vkui--font_headline1--font_family);
|
|
1023
1017
|
font-weight: var(--vkui--font_headline1--font_weight);
|
|
1024
|
-
|
|
1018
|
+
font-variation-settings--optical-size: var(--vkui--font_headline1--font_variation_settings--optical_size);
|
|
1025
1019
|
}
|
|
1026
1020
|
.vkui--font_headline1--compact {
|
|
1027
1021
|
font-size: 15px;
|
|
@@ -1032,8 +1026,6 @@
|
|
|
1032
1026
|
font-family: var(--vkui--font_headline1--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1033
1027
|
font-weight: 600;
|
|
1034
1028
|
font-weight: var(--vkui--font_headline1--font_weight--regular, 600);
|
|
1035
|
-
letter-spacing: -0.72px;
|
|
1036
|
-
letter-spacing: var(--vkui--font_headline1--letter_spacing--regular, -0.72px);
|
|
1037
1029
|
}
|
|
1038
1030
|
.vkui--font_headline2--regular {
|
|
1039
1031
|
font-size: 15px;
|
|
@@ -1064,21 +1056,19 @@
|
|
|
1064
1056
|
.vkui--font_text--regular {
|
|
1065
1057
|
font-size: 16px;
|
|
1066
1058
|
font-size: var(--vkui--font_text--font_size--regular, 16px);
|
|
1067
|
-
line-height: 18.
|
|
1068
|
-
line-height: var(--vkui--font_text--line_height--regular, 18.
|
|
1059
|
+
line-height: 18.33px;
|
|
1060
|
+
line-height: var(--vkui--font_text--line_height--regular, 18.33px);
|
|
1069
1061
|
font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
1070
1062
|
font-family: var(--vkui--font_text--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1071
1063
|
font-weight: 600;
|
|
1072
1064
|
font-weight: var(--vkui--font_text--font_weight--regular, 600);
|
|
1073
|
-
letter-spacing: -0.68px;
|
|
1074
|
-
letter-spacing: var(--vkui--font_text--letter_spacing--regular, -0.68px);
|
|
1075
1065
|
}
|
|
1076
1066
|
.vkui--font_text {
|
|
1077
1067
|
font-size: var(--vkui--font_text--font_size);
|
|
1078
1068
|
line-height: var(--vkui--font_text--line_height);
|
|
1079
1069
|
font-family: var(--vkui--font_text--font_family);
|
|
1080
1070
|
font-weight: var(--vkui--font_text--font_weight);
|
|
1081
|
-
|
|
1071
|
+
font-variation-settings--optical-size: var(--vkui--font_text--font_variation_settings--optical_size);
|
|
1082
1072
|
}
|
|
1083
1073
|
.vkui--font_text--compact {
|
|
1084
1074
|
font-size: 15px;
|
|
@@ -1089,27 +1079,23 @@
|
|
|
1089
1079
|
font-family: var(--vkui--font_text--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1090
1080
|
font-weight: 600;
|
|
1091
1081
|
font-weight: var(--vkui--font_text--font_weight--regular, 600);
|
|
1092
|
-
letter-spacing: -0.68px;
|
|
1093
|
-
letter-spacing: var(--vkui--font_text--letter_spacing--regular, -0.68px);
|
|
1094
1082
|
}
|
|
1095
1083
|
.vkui--font_paragraph--regular {
|
|
1096
1084
|
font-size: 15px;
|
|
1097
1085
|
font-size: var(--vkui--font_paragraph--font_size--regular, 15px);
|
|
1098
|
-
line-height:
|
|
1099
|
-
line-height: var(--vkui--font_paragraph--line_height--regular,
|
|
1086
|
+
line-height: 18.5px;
|
|
1087
|
+
line-height: var(--vkui--font_paragraph--line_height--regular, 18.5px);
|
|
1100
1088
|
font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
|
|
1101
1089
|
font-family: var(--vkui--font_paragraph--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1102
|
-
font-weight:
|
|
1103
|
-
font-weight: var(--vkui--font_paragraph--font_weight--regular,
|
|
1104
|
-
letter-spacing: -0.46px;
|
|
1105
|
-
letter-spacing: var(--vkui--font_paragraph--letter_spacing--regular, -0.46px);
|
|
1090
|
+
font-weight: 580;
|
|
1091
|
+
font-weight: var(--vkui--font_paragraph--font_weight--regular, 580);
|
|
1106
1092
|
}
|
|
1107
1093
|
.vkui--font_paragraph {
|
|
1108
1094
|
font-size: var(--vkui--font_paragraph--font_size);
|
|
1109
1095
|
line-height: var(--vkui--font_paragraph--line_height);
|
|
1110
1096
|
font-family: var(--vkui--font_paragraph--font_family);
|
|
1111
1097
|
font-weight: var(--vkui--font_paragraph--font_weight);
|
|
1112
|
-
|
|
1098
|
+
font-variation-settings--optical-size: var(--vkui--font_paragraph--font_variation_settings--optical_size);
|
|
1113
1099
|
}
|
|
1114
1100
|
.vkui--font_subhead--regular {
|
|
1115
1101
|
font-size: 14px;
|
|
@@ -1146,15 +1132,13 @@
|
|
|
1146
1132
|
font-family: var(--vkui--font_footnote--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1147
1133
|
font-weight: 600;
|
|
1148
1134
|
font-weight: var(--vkui--font_footnote--font_weight--regular, 600);
|
|
1149
|
-
letter-spacing: -0.58px;
|
|
1150
|
-
letter-spacing: var(--vkui--font_footnote--letter_spacing--regular, -0.58px);
|
|
1151
1135
|
}
|
|
1152
1136
|
.vkui--font_footnote {
|
|
1153
1137
|
font-size: var(--vkui--font_footnote--font_size);
|
|
1154
1138
|
line-height: var(--vkui--font_footnote--line_height);
|
|
1155
1139
|
font-family: var(--vkui--font_footnote--font_family);
|
|
1156
1140
|
font-weight: var(--vkui--font_footnote--font_weight);
|
|
1157
|
-
|
|
1141
|
+
font-variation-settings--optical-size: var(--vkui--font_footnote--font_variation_settings--optical_size);
|
|
1158
1142
|
}
|
|
1159
1143
|
.vkui--font_footnote_caps--regular {
|
|
1160
1144
|
font-size: 13px;
|
|
@@ -1285,16 +1269,14 @@
|
|
|
1285
1269
|
font-size: var(--vkui--font_label1--font_size--regular, 19px);
|
|
1286
1270
|
line-height: 20px;
|
|
1287
1271
|
line-height: var(--vkui--font_label1--line_height--regular, 20px);
|
|
1288
|
-
font-weight:
|
|
1289
|
-
font-weight: var(--vkui--font_label1--font_weight--regular,
|
|
1290
|
-
letter-spacing: -0.58px;
|
|
1291
|
-
letter-spacing: var(--vkui--font_label1--letter_spacing--regular, -0.58px);
|
|
1272
|
+
font-weight: 670;
|
|
1273
|
+
font-weight: var(--vkui--font_label1--font_weight--regular, 670);
|
|
1292
1274
|
}
|
|
1293
1275
|
.vkui--font_label1 {
|
|
1294
1276
|
font-size: var(--vkui--font_label1--font_size);
|
|
1295
1277
|
line-height: var(--vkui--font_label1--line_height);
|
|
1296
1278
|
font-weight: var(--vkui--font_label1--font_weight);
|
|
1297
|
-
|
|
1279
|
+
font-variation-settings--optical-size: var(--vkui--font_label1--font_variation_settings--optical_size);
|
|
1298
1280
|
}
|
|
1299
1281
|
.vkui--font_label2--regular {
|
|
1300
1282
|
font-size: 18px;
|
|
@@ -1303,30 +1285,26 @@
|
|
|
1303
1285
|
line-height: var(--vkui--font_label2--line_height--regular, 21px);
|
|
1304
1286
|
font-weight: 600;
|
|
1305
1287
|
font-weight: var(--vkui--font_label2--font_weight--regular, 600);
|
|
1306
|
-
letter-spacing: -0.68px;
|
|
1307
|
-
letter-spacing: var(--vkui--font_label2--letter_spacing--regular, -0.68px);
|
|
1308
1288
|
}
|
|
1309
1289
|
.vkui--font_label2 {
|
|
1310
1290
|
font-size: var(--vkui--font_label2--font_size);
|
|
1311
1291
|
line-height: var(--vkui--font_label2--line_height);
|
|
1312
1292
|
font-weight: var(--vkui--font_label2--font_weight);
|
|
1313
|
-
|
|
1293
|
+
font-variation-settings--optical-size: var(--vkui--font_label2--font_variation_settings--optical_size);
|
|
1314
1294
|
}
|
|
1315
1295
|
.vkui--font_body--regular {
|
|
1316
|
-
font-size:
|
|
1317
|
-
font-size: var(--vkui--font_body--font_size--regular,
|
|
1318
|
-
line-height:
|
|
1319
|
-
line-height: var(--vkui--font_body--line_height--regular,
|
|
1320
|
-
font-weight:
|
|
1321
|
-
font-weight: var(--vkui--font_body--font_weight--regular,
|
|
1322
|
-
letter-spacing: -0.72px;
|
|
1323
|
-
letter-spacing: var(--vkui--font_body--letter_spacing--regular, -0.72px);
|
|
1296
|
+
font-size: 16.5px;
|
|
1297
|
+
font-size: var(--vkui--font_body--font_size--regular, 16.5px);
|
|
1298
|
+
line-height: 21px;
|
|
1299
|
+
line-height: var(--vkui--font_body--line_height--regular, 21px);
|
|
1300
|
+
font-weight: 520;
|
|
1301
|
+
font-weight: var(--vkui--font_body--font_weight--regular, 520);
|
|
1324
1302
|
}
|
|
1325
1303
|
.vkui--font_body {
|
|
1326
1304
|
font-size: var(--vkui--font_body--font_size);
|
|
1327
1305
|
line-height: var(--vkui--font_body--line_height);
|
|
1328
1306
|
font-weight: var(--vkui--font_body--font_weight);
|
|
1329
|
-
|
|
1307
|
+
font-variation-settings--optical-size: var(--vkui--font_body--font_variation_settings--optical_size);
|
|
1330
1308
|
}
|
|
1331
1309
|
.vkui--font_headline--regular {
|
|
1332
1310
|
font-size: 17px;
|
|
@@ -1337,15 +1315,13 @@
|
|
|
1337
1315
|
font-family: var(--vkui--font_headline--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1338
1316
|
font-weight: 600;
|
|
1339
1317
|
font-weight: var(--vkui--font_headline--font_weight--regular, 600);
|
|
1340
|
-
letter-spacing: -0.72px;
|
|
1341
|
-
letter-spacing: var(--vkui--font_headline--letter_spacing--regular, -0.72px);
|
|
1342
1318
|
}
|
|
1343
1319
|
.vkui--font_headline {
|
|
1344
1320
|
font-size: var(--vkui--font_headline--font_size);
|
|
1345
1321
|
line-height: var(--vkui--font_headline--line_height);
|
|
1346
1322
|
font-family: var(--vkui--font_headline--font_family);
|
|
1347
1323
|
font-weight: var(--vkui--font_headline--font_weight);
|
|
1348
|
-
|
|
1324
|
+
font-variation-settings--optical-size: var(--vkui--font_headline--font_variation_settings--optical_size);
|
|
1349
1325
|
}
|
|
1350
1326
|
.vkui--font_headline--compact {
|
|
1351
1327
|
font-size: 15px;
|
|
@@ -1356,7 +1332,5 @@
|
|
|
1356
1332
|
font-family: var(--vkui--font_headline--font_family--regular, -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif);
|
|
1357
1333
|
font-weight: 600;
|
|
1358
1334
|
font-weight: var(--vkui--font_headline--font_weight--regular, 600);
|
|
1359
|
-
letter-spacing: -0.72px;
|
|
1360
|
-
letter-spacing: var(--vkui--font_headline--letter_spacing--regular, -0.72px);
|
|
1361
1335
|
}
|
|
1362
1336
|
|