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

fix(plasma-theme-builder): Add restored color method for generate themes #899

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

neretin-trike
Copy link
Collaborator

@neretin-trike neretin-trike commented Dec 9, 2023

Theme builder

  • В генератор файлов темы добавлены метод, который восстанавливает значение цвета из ссылки, т.е. переведёт: [general.red.500] => #FF293E
  • Добавлена генерация токенов цвета в kebab нотации

What/why changed

Изменения необходимы, т.к. иначе при генерации новой схемы в файлах темы будут корректные значения (ссылки)

@Salute-Eva
Copy link
Contributor

@Salute-Eva
Copy link
Contributor

@@ -57,7 +58,7 @@ export const getThemes = async (
) => {
const pathToIndex = getFilesPath().themesIndex;
const tokensThemeIndex = await getFilesSource(undefined, owner, repo, pathToIndex, defaultBranch);
const themes = generateThemes(tokensSet, undefined, true);
const themes = generateThemes(tokensSet, undefined, true, true);
Copy link
Collaborator

@Yakutoc Yakutoc Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[На будущее]

@neretin-trike Похоже на то что сигнатуру метода надо будет перевести в объект. Сейчас сложно понять за что отвечают эти аргументы.

@Salute-Eva
Copy link
Contributor

@Salute-Eva
Copy link
Contributor

@Yakutoc Yakutoc removed the request for review from Yeti-or December 13, 2023 12:58
@Yakutoc Yakutoc added this pull request to the merge queue Dec 13, 2023
Merged via the queue into dev with commit 59a143a Dec 13, 2023
23 checks passed
@Yakutoc Yakutoc deleted the neretinaa/theme-builder-add-restored-color branch December 13, 2023 13:00
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

@Salute-Eva Salute-Eva mentioned this pull request Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants