Replies: 3 comments 2 replies
-
Because I think this group is one that values respectful disagreements 😬 😅 I do not think that supporting custom className in its style object is something that In the case of either library, providing a custom
or
When building something like a design system, wanting to allow consumers to pass through a As it's already possible to support custom If anything, maybe a macro or something in the future to support it, but I would be very much opposed to offering that behavior by default 😅. I feel like this might also better reflect what I've seen from the TW community as well, meaning many of the custom integration options with TW have been done via a build, compilation, or transpilation step rather than the direct interfacing api, though I could be wrong about that one 😬 |
Beta Was this translation helpful? Give feedback.
-
I would be in favor of this functionality, but not necessarily as a property like My first issue with a My second issue with a property like .styles-for-a {}
.styles-for-b {}
.styles-for-c {}
.styles-extending-a-and-b {
composes: styles-for-a;
composes: styles-for-b; /* intuitively, one should expect this to cancel out the prior declaration, not extend it. */
}
.styles-extending-a-b-and-c {
composes: styles-extending-a-and-b; /* intuitively, one should expect this to cancel out other declaration, not extend it. */
composes: styles-for-c; /* and again, one should expect this to cancel out the prior declaration, not extend it. */
} Hopefully, the comments in that code reveal how confusing a property without overrides ends up being. We resolved to change I would be hesitant to introduce the |
Beta Was this translation helpful? Give feedback.
-
userSystem project import taildcss design system use tailwindcss , this maybe not work ? |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I'd love to be able to integrate tailwind ui with stitches. Stitches would be used to compose my variants and obtain a typed component's API. And tailwind as the underlying styling system using its classes utilities.
Currently there is no way to pass raw classNames inside styled().
Describe the solution you'd like
I'd like stitches to accept a "className" key inside the styles properties, like this : https://codesandbox.io/s/naughty-hopper-cy8zh?file=/src/App.tsx
Describe alternatives you've considered
I'm currently trying https://github.com/tw-in-js/twind-react but the TypeScript story isn't as good as with stitches, so I'd prefer stick with stitches. Also this addition would benefit not only for tailwind users but for any utility or css library.
Beta Was this translation helpful? Give feedback.
All reactions