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

Extend to more color classes? #51

Open
francochau opened this issue Dec 28, 2021 · 3 comments
Open

Extend to more color classes? #51

francochau opened this issue Dec 28, 2021 · 3 comments

Comments

@francochau
Copy link

I would also like to implement nightwind in fill- class.
Is there a way I can achieve this?

@jjranalli
Copy link
Owner

Currently that's not possible unfortunately, will keep it in mind for future versions of the package

@francochau
Copy link
Author

@jjranalli
Thanks for clarifying.
May I also know is there a way to get and monitor the theme mode? e.g. showing two different icons in light and dark theme

@jjranalli
Copy link
Owner

There is no specific method exported from the library, but there are different ways you could check the current theme depending on your implementation:

  • check if dark class is present in <html> el
  • check if the value of localstorage key nightwind-mode is dark / light
  • (if using the next-themes library) use theme from the useTheme hook

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

2 participants