Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Epic]: Переход на VK Sans Text #3561

Closed
inomdzhon opened this issue Nov 3, 2022 · 1 comment
Closed

[Epic]: Переход на VK Sans Text #3561

inomdzhon opened this issue Nov 3, 2022 · 1 comment

Comments

@inomdzhon
Copy link
Contributor

inomdzhon commented Nov 3, 2022

Задачи

Есть два варианта:

1️⃣ VK Sans Text по умолачнию ВКЛЮЧЁН.

Пользователю надо сбрасывать типографические токены на font- family и letter-spacing.

Сброс токенов
some_selector {  
  --vkui--font_family_accent: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_family_base: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_title1--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_title2--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_title3--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_headline1--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_headline2--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_text--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_paragraph--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_subhead--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_footnote--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_footnote_caps--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_caption1--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_caption1_caps--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_caption2--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_caption2_caps--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_caption3--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_caption3_caps--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --vkui--font_headline--font_family--regular: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  
  --vkui--font_title1--letter_spacing--regular: initial;
  --vkui--font_title2--letter_spacing--regular: initial;
  --vkui--font_title3--letter_spacing--regular: initial;
  --vkui--font_headline1--letter_spacing--regular: initial;
  --vkui--font_headline1--letter_spacing--compact: initial;
  --vkui--font_headline2--letter_spacing--regular: initial;
  --vkui--font_headline2--letter_spacing--compact: initial;
  --vkui--font_text--letter_spacing--regular: initial;
  --vkui--font_text--letter_spacing--compact: initial;
  --vkui--font_paragraph--letter_spacing--regular: initial;
  --vkui--font_subhead--letter_spacing--regular: initial;
  --vkui--font_subhead--letter_spacing--compact: initial;
  --vkui--font_footnote--letter_spacing--regular: initial;
  --vkui--font_footnote_caps--letter_spacing--regular: initial;
  --vkui--font_caption1--letter_spacing--regular: initial;
  --vkui--font_caption1_caps--letter_spacing--regular: initial;
  --vkui--font_caption2--letter_spacing--regular: initial;
  --vkui--font_caption2_caps--letter_spacing--regular: initial;
  --vkui--font_caption3--letter_spacing--regular: initial;
  --vkui--font_caption3_caps--letter_spacing--regular: initial;
  --vkui--font_headline--letter_spacing--regular: initial;
  --vkui--font_headline--letter_spacing--compact: initial;
}

2️⃣ VK Sans Text по умолчанию ВЫКЛЮЧЕН.

Пользователь подключает файл с fonts.css.

⚠️ В @vkontakte/vkui-tokens надо сбросить токены на letter-spacing и сделать так, чтобы они подключались отдельно.

На заметку про letter-spacing

Предоставлять postcss плагин, который будет выставлять letter-spacing и необходимый font-family.


Старое описание
@inomdzhon
Copy link
Contributor Author

Решили пока не переходить на VK Sans Text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant