Color helper
Another cool feature of Fower is the color helper. you can handle color with some postfix.
all color helper postfix:
--D{0-100}
, to darken a color, eg:red200--D20
--L{0-100}
, to lighten a color, eg:red200--L20
--T{0-100}
, to transparentize a color, eg:red200--T20
--O{0-100}
, to opacify a color, eg:color="rgba(0, 0, 0, 0.2)--20)"
Darken
Use --D{0-100}
postfix to darken a color.
Result
Loading...
Live Editor
Lighten
Use --L{0-100}
to lighten a color.
Result
Loading...
Live Editor
Transparentize
Use --T{0-100}
to transparentize a color.
Result
Loading...
Live Editor
Opacify
Use --O{0-100}
to opacify a color.
Result
Loading...
Live Editor
Use with pseudo
The color helper postfix can use with pseudo postfix, Let's build a beautiful Button Component:
Result
Loading...
Live Editor