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

Work on all stylesheets #67

Open
Saakshaat opened this issue Jan 18, 2021 · 0 comments
Open

Work on all stylesheets #67

Saakshaat opened this issue Jan 18, 2021 · 0 comments

Comments

@Saakshaat
Copy link

[FEATURE REQUEST]

It seems like, currently, this hook only works with global styles sheets but as the codebase grows, multiple stylesheets become a necessity. This is particularly relevant with frameworks like Next.js where the file structure advises different stylesheets for different modules, separate from the global stylesheet.

I think it'll be really valuable if this worked with all stylesheets and not just global. Since the useDarkMode function looks for classes name .dark-mode or .light-mode (or other user-defined names) could this hook be used to also implemented these classes present in other stylesheets?

@Saakshaat Saakshaat changed the title Work with different stylesheets Work with all stylesheets Jan 18, 2021
@Saakshaat Saakshaat changed the title Work with all stylesheets Work on all stylesheets Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant