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.76k stars 254 forks source link

Stricter experience type error with utility functions #844

Open alii opened 3 years ago

alii commented 3 years ago

Bug report

Describe the bug

In short, there is a type error when trying to use the utility functions with a theme token.

To Reproduce

I have made a repo: https://github.com/alii/stitches-bug-repro

Expected behavior

There is no type error

Screenshots

image

System information

Additional context

For those in the Modulz discord server, there's a little more conversation here: https://discord.com/channels/752614004387610674/752795957674115092/897312708452552706

csantos1113 commented 2 years ago

I'm facing the same issue. I had logged in https://github.com/stitchesjs/stitches/issues/1077