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

[Feat] Find variables inside other selectors #122

Open
scriptcoded opened this issue Dec 19, 2024 · 0 comments
Open

[Feat] Find variables inside other selectors #122

scriptcoded opened this issue Dec 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@scriptcoded
Copy link

Is your feature request related to a problem? Please describe.
Hey! In our project we have some variables which are scoped using attributes. For example:

[data-some-setting] {
  --size: 12px;
}

There doesn't seem to be a way of getting the extension to identify these variables. I thought this would work with themes but unfortunately those only seem to work with classes.

Describe the solution you'd like
I see two potential solutions, maybe both could co-exist.

  1. Make it so that you can disable checking for selectors and just grabbing all variables.
  2. Make it so that the theme setting uses selectors and not class names. So ['.dark'] instead of ['dark'].

Describe alternatives you've considered
I think both alternatives mentioned would be feasible. Can't think of anything else unfortunately.

Additional context
Add any other context or screenshots about the feature request here.

@scriptcoded scriptcoded added the enhancement New feature or request label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants