Skip to content

no-invalid-token-paths reports false positive with color opacity modifier #253

Open
@oneHoopoe

Description

@oneHoopoe

Given this code:

import { styled } from '../styled-system/jsx'

function App() {
  return (
    <styled.p css={{boxShadow: "0px 5px 5px {black/25}"}}>Reproduction</styled.p>
  )
}

export default App

ESlint reports a following error:

5:32  error  `black/25` is an invalid token path  @pandacss/no-invalid-token-paths

I have created a reproduction repo as a minimum reproducible example, if it helps. The example CSS rule is in App.tsx.

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