stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
https://stitches.dev
MIT License
7.73k stars 249 forks source link

Add Custom Mapping CSS for opacity property #1043

Open simaodeveloper opened 2 years ago

simaodeveloper commented 2 years ago

Is your feature request related to a problem? Please describe. Hi guys, how are you? My problem is that I want to create a custom mapping CSS like this example below:

image

But the typescript doesn't bring the tokens when I type:

image

I configured all tokens correctly, see the next image:

image

Describe the solution you'd like I would like to create my own custom mapping CSS or opacity mapping to be added in a new version.

simaodeveloper commented 2 years ago

@peduarte

LexSwed commented 2 years ago

He is not working on the project anymore. Providing a simple reproduction in codesandbox or stackblitz would help you to get the answer much much faster from the maintainers or the community 👍

peduarte commented 2 years ago

hey, based on the screenshots it looks okay. but yeah a repro would be good, as lex mentioned. cheers!

hadihallak commented 1 year ago

As mentioned here, this works already in Stitches without modifying the core code.

At the same time, I can confirm that autocompletion isn't working for tokens that are part of a theme scale that isn't part of Stitches so perhaps we could use a typescript improvement in there