About Sass Variables in JavaScript
You can pass Sass variables to JavaScript using CSS custom properties as follows:
Sass:
1 2 3 4 5 |
|
JavaScript:
1 2 |
|
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You