You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Saakshaat
changed the title
Work with different stylesheets
Work with all stylesheets
Jan 18, 2021
Saakshaat
changed the title
Work with all stylesheets
Work on all stylesheets
Jan 18, 2021
[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 theuseDarkMode
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?The text was updated successfully, but these errors were encountered: