I feel that current styling api is way too verbose...
# fritz2
b
I feel that current styling api is way too verbose and makes code look very ugly. I'd strongly recommend reconsidering it now while you still can, with readability in mind. Thoughts?
h
I think extracting it into
val
like
Copy code
val veryImportant: Style<BasicParams> = {
    boxShadow { raised }
    background { color { danger } }
    color { light }
    radius { "1.5rem" }
}
As shown in examples makes the code look pretty OK. My understanding is that this also allows composition of multiple styles, which is cool. One thing I’d wish for though is scoped styling somehow (might be possible already?). Like in the scope of a
form
all
input
has the same styling applied.