Web: Integrate kotlin.wrapper
Instead defining them over and over again, use already provided kotlin wrapper: https://github.com/JetBrains/kotlin-wrappers
There is great project csstype and also there is wrapper in kotlin-wrappers for it. They are great because of:
- They are generated from MDN specs
- They have zero-runtime (essential for WEB)
- well maintained by community
- Easy migration from existing react projects to Compose Web
Let's discuss - idea to be able to easily incorporate existing third-party solutions sounds as a very nice idea. Just to be sure - does csstype provides API for creating stylesheets or is it all about inline styles?
CSSType provides an API all about inline styles, it's just strings at the end, and just the value not the name of the property. Kotlin-CSS provides an API to generate styles but is also more complete that what CfW has, so you might use it also.