-
Notifications
You must be signed in to change notification settings - Fork 3
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: css var support, closes #30 #31
Conversation
raae
commented
Dec 6, 2021
- feat: support for css variables
- demo: changes in demo to test css variables
d02cda9
to
ae499e9
Compare
Gatsby Cloud Build Reportgatsby-plugin-let-it-snow 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 1m PerformanceLighthouse report
|
The solution lets you supply css variables in addition to hex colors. The css variables should still resolve to hex color though. |
Don't forget the |
The colors are fetched on initial load, so will not change when dark/light is changes. If moved to the animationFrame it would change dynamically making "new snow" get the new colors. |
Ah I see what you're saying. Then I think there is still some friction because |
🎉 Moved it into animationFrame, red flakes will appear in dark mode and then disappear again when changing to light mode, demo https://letitsnow-featcssvarsupportcloses30.gtsb.io/. |
🎉 This PR is included in version 0.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |