Basic colors manipulation #469
-
I would like to discuss basic color manipulation so instead of Style(
$box.color.ref(refcolor),
$state1 (
$box.color.ref(state1refcolor)
),
$state2 (
$box.color.ref(state2refcolor)
)
) We can build around only 1 ref color. Style(
$box.color.ref(refcolor),
$state1 (
$box.color.ref(refcolor).brighten(10)
),
$state2 (
$box.color.ref(refcolor).darken(10)
)
) Combined with style merging it would greatly reduce the length of declarations Thanks for your feedback! |
Beta Was this translation helpful? Give feedback.
Answered by
tilucasoli
Aug 26, 2024
Replies: 1 comment
-
The following code can be used to achieve the same result. Style(
$box.color.ref(refcolor),
$state1 (
$box.color.brighten(10)
),
$state2 (
$box.color.darken(10)
)
) However, I can understand why you would want color manipulation in the same line. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Solido
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code can be used to achieve the same result.
However, I can understand why you would want color manipulation in the same line.