compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Web: Integrate kotlin.wrapper

Open hfhbd opened this issue 4 years ago • 4 comments

Instead defining them over and over again, use already provided kotlin wrapper: https://github.com/JetBrains/kotlin-wrappers

hfhbd avatar Nov 21 '21 12:11 hfhbd

There is great project csstype and also there is wrapper in kotlin-wrappers for it. They are great because of:

  1. They are generated from MDN specs
  2. They have zero-runtime (essential for WEB)

sgrishchenko avatar Nov 21 '21 13:11 sgrishchenko

  1. well maintained by community
  2. Easy migration from existing react projects to Compose Web

hfhbd avatar Nov 21 '21 13:11 hfhbd

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?

Schahen avatar Dec 22 '21 17:12 Schahen

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.

Ayfri avatar Aug 04 '22 11:08 Ayfri