Parts for writing styles #2697
BorisZubchenko
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Parts feature is really cool when dealing with recipes:
When cascading components, it is even more convenient since we have "type safety for selectors":
However, this doesn't work when writing styles with
css
, which is important for rapid prototyping:Problem Statement/Justification
Not being able to prototype with parts breaks the mental flow (DX?) which is used when building recipes.
Proposed Solution or API
Even though there is some kind of dynamic styling, I think this is achievable, since
defineParts
output is not much different from its input.Also, I see the following "pattern":
Alternatives
Without parts, the equivalent that we have to deal with is:
The bad part is that one should know the internals of a card.
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions