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.75k stars 253 forks source link

feature(token type): add opacities as new supported token type #1083

Closed ioanatatu closed 2 years ago

ioanatatu commented 2 years ago

Small feature proposal

The project I am working on requires opacities as a token type, which is currently not among the 14 token types supported by Stitches.

image

While going through the issues I also noticed there is one other request for adding opacities as a token type. This PR would solve that issue as well.

hadihallak commented 2 years ago

Hey @ioanatatu

Thank you so much for working on this issue and correctly updating the types package 😄

As I mentioned in the issue that you linked, this already works in Stitches but autocompletion does not work for tokens that are part of the newly added opacities scale

I've tagged the original issue under typescript and once that is fixed then autocompletion should work for new token scales without modifying the core Stitches code.

Again, Thank you so much for working on this but for now i'm going to close this PR as this needs to be fixed at the types level.