-
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-theme-builder): Add generate hover / active state for tokens #1134
The head ref may contain hidden characters: "neretinaa/add-generate\u2013tokens-state"
Conversation
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1134/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-1134/ |
2d676e5
to
e4c1aae
Compare
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1134/ |
Documentation preview deployed! website:https://plasma.sberdevices.ru/pr/pr-1134/ |
e4c1aae
to
4973dc1
Compare
4973dc1
to
585a29d
Compare
@@ -30,6 +30,13 @@ export const getHEXAColor = (clr: string) => { | |||
} | |||
}; | |||
|
|||
export const getHSLARawColor = (clr: string) => { | |||
const alpha = Math.round(Color(clr).hsl().alpha() * 100) / 100; | |||
const rounded = Number(alpha.toFixed(2)); |
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.
хм, я думаю не должно быть с этим проблем
|
||
width: 100%; | ||
/* TODO: Убрать это когда появится возможность стилизовать компонент */ |
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.
585a29d
to
2dd1019
Compare
2dd1019
to
d4f9c2c
Compare
Plasma Theme Builder
What/why changed
Необходимо было добавить генерацию токенов.
🐤 Download canary assets:
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: