Skip to content

3.1 version, theme function reports lint error #8619

@Rayzhangzhang

Description

@Rayzhangzhang

What version of Tailwind CSS are you using?

v3.1.2

What build tool (or framework if it abstracts the build tool) are you using?

What version of Node.js are you using?

16.14

What browser are you using?

What operating system are you using?

Reproduction URL

Describe your issue

theme('colors[primary] / 20%') reports 'colors[primary] / 20%' does not exist in your theme config..

It works well , but reports a lint error. Do I need to add any config or change the code below in tailwind.config.js ?

...
primary: withOpacity('--color-primary-rgb'),
...

Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead.

Metadata

Metadata

Assignees

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