Skip to content

vscode intellisense/eslint doesnt work with theme inside variant #304

Description

@imranbarbhuiya

What happened?

The way uniwind works with theme is a big unconventional. Is there a reason why it doesn't work the same way as tailwind does? that could make all tools work the same way. Or is there a way for the tools to work with this setup too? defining theme inside layer theme instead of @theme and also using variants for light/dark instead of .dark and leaving light as is

Steps to Reproduce

Clone the repo inside vscode with the extension and see all classes shows intellisense except the color ones inside variant. Same with the eslint plugin too.

Snack or Repository Link

https://github.com/imranbarbhuiya/uni-test

Uniwind version

^1.2.4

React Native Version

0.81.5

Platforms

Android, iOS

Expo

Yes

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions