-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(plasma-tokens): Add write / read and generation new format of theme.json #1207
Conversation
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1207/ |
website/plasma-theme-builder/src/_new/tokens/fontFamily/default/android.ts
Show resolved
Hide resolved
website/plasma-theme-builder/src/_new/tokens/fontFamily/fontFamily.ts
Outdated
Show resolved
Hide resolved
website/plasma-theme-builder/src/_new/themes/createMetaTokens.ts
Outdated
Show resolved
Hide resolved
website/plasma-theme-builder/src/_new/themes/createMetaTokens.ts
Outdated
Show resolved
Hide resolved
website/plasma-theme-builder/src/_new/examples/buildAndModifyMockTheme.ts
Show resolved
Hide resolved
return new ColorToken(token, values); | ||
}); | ||
|
||
const removeHoverAndActiveTokens = (token: TokenType) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выглядит как костыль =/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
идея в том, чтобы при создании инстанса класса Theme
не добавлять эти технические токены по следующим причинам:
- Они не используются в визуальном интерфейсе сервиса
- Они не будут занимать лишнюю память
- Их не нужно будет пересчитывать каждый раз при изменении "основного" токена, на котором основаны токены состояния active / hover
website/plasma-theme-builder/src/_new/tokens/typography/creators.ts
Outdated
Show resolved
Hide resolved
const typography = createDefaultTypographyTokens(config); | ||
const fontFamily = createDefaultFontFamilyTokens(config); | ||
|
||
return new Theme(config.name, '0.1.0', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.1.0 это версия чего ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это версия базовой темы. Т.е. когда пользователь создаёт свою тему, начинается отсчёт с версии 0.1.0
a551fc9
to
39d3e6d
Compare
- @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] - @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] - @salutejs/[email protected] - @salutejs/[email protected] - @salutejs/[email protected] - @salutejs/[email protected] - @salutejs/[email protected]
39d3e6d
to
79a8f6b
Compare
Theme
What/why changed
Пример диаграммы зависимостей для токена типа
color
.Более подробное описание всех добавленных изменений.