-
Use something as simple as CSS Modules, which is well supported in all major bundlers and frontend frameworks.
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
If you still think a polymorphic component would be better, really can't deal with plain HTML, or don’t want to write CSS in a separate file (though I am not sure why), my next suggestion would be to take a look at PandaCSS and create custom patterns or explore other options like vanilla-extract. In my opinion, these tools are an over-engineered CSS metalanguage but still better than a polymorphic component.
-
Another alternative worth considering is Tailwind CSS, which has the advantage of being interoperable between languages and frameworks.
-
So, using Facebook’s latest CSS library Stylex, you could write:
-
If you still think a polymorphic component would be better, really can't deal with plain HTML, or don’t want to write CSS in a separate file (though I am not sure why), my next suggestion would be to take a look at PandaCSS and create custom patterns or explore other options like vanilla-extract. In my opinion, these tools are an over-engineered CSS metalanguage but still better than a polymorphic component.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Related posts
-
Is tailwind used in real world when working at companies?What do you use to style your website
-
Getting started with Storybook in SolidJS (with Tailwind CSS)
-
Tailwind vs Linaria: Performance Investigation
-
## Vibe Coding Adventures: Day 1 — HealthLens AI
-
Tailwind CSS: A Beginner's Guide to Understanding Its Syntax and Structure