-
Notifications
You must be signed in to change notification settings - Fork 413
Add support for interpolation #1460
Copy link
Copy link
Open
Labels
enhancement: proposal 💬Improvement of current behaviour that needs to be discussedImprovement of current behaviour that needs to be discussedneeds: triage 🏷Issue needs to be checked and prioritizedIssue needs to be checked and prioritized
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancement: proposal 💬Improvement of current behaviour that needs to be discussedImprovement of current behaviour that needs to be discussedneeds: triage 🏷Issue needs to be checked and prioritizedIssue needs to be checked and prioritized
Why is interpolation only supported for CSS object properties and not for
cssliterals?Why do we need to use two completely different syntaxes to interpolate CSS properties?
I would very much like to stick with one syntax.
Using multiple classes is not really a great option for something like typographies either - I'd very much like to have the button declaration include the typography, and manually reusing the 5-10 properties required for a complete typography is not really a good option either.
Using multiple classes works (
cx) but is not a great option either - I would very much prefer if the button styles were self-contained, residing in a single declaration, not spread between two classes.Is there a reason this isn't practical or can't be done?