Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme token not being parsed when overriding CSS prop (Next.js) #1139

Open
sebpowell opened this issue Feb 1, 2023 · 1 comment
Open

Theme token not being parsed when overriding CSS prop (Next.js) #1139

sebpowell opened this issue Feb 1, 2023 · 1 comment

Comments

@sebpowell
Copy link

I'm using Stitches with Next.js, and noticed what seems like it might be a bug the other day.

I'm able to do something like this without any problems:

import { styled, config } from "stitches.config";

const Button = styled("button", {
  color: "$purple10"
})

This works as expected.

However, if I then do this:

<Button css={{color: "$red10" }} />

I get something like the following:

Screenshot 2023-02-01 at 21 16 39

So it looks like, for whatever reason, the token isn't being parsed, but this is only an issue when overriding.

Is anyone else experiencing this? I'm getting it in both Next.js 12.2.4 and Next.js 13.1.4.

Any help would be greatly appreciated.

@thefalked
Copy link

Got same bug in here :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants