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

Token not recognize in inline css #1072

Closed AmadeuLinhares closed 1 year ago

AmadeuLinhares commented 1 year ago

Bug report

Describe the bug

A clear and concise description of what the bug is. Good morning, I created my theme in points, and when I tried to use the inline css, the tokens appear in the auto complete but they are not being transpiled correctly to the browser. The browser tries to apply the props padding: $spacing16, and not using the variables

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

Screen Shot 2022-08-14 at 06 46 11 Screen Shot 2022-08-14 at 06 49 58

Additional context

Add any other context about the problem here.

AmadeuLinhares commented 1 year ago

Solution: https://github.com/stitchesjs/stitches/issues/1013#issuecomment-1147137112