Skip to content

Panda gets styles from 3rd party CSS function  #3089

Open
@literalpie

Description

@literalpie

Description

When I generate panda CSS in a project that uses a mix of emotion css functions and panda css functions, I expect it to only use the panda css styles, but it also picks up emotion css styles.

Link to Reproduction

https://play.panda-css.com/S0BSaf1PHV

Steps to reproduce

  1. Open the playground, and the "CSS output" tab at the bottom
  2. Notice that width: '123px' is only used in a non-panda css function, but it is getting added to the CSS output.

JS Framework

No response

Panda CSS Version

0.51.1

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

CVA works as expected, so I'm hopeful it is possible to do this how I expect.

I believe isRawFn is the culprit because it returns true if the name === 'css' regardless of the import.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions