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

Parse color from css vars ? #130

Closed
resarahman opened this issue Dec 9, 2021 · 1 comment
Closed

Parse color from css vars ? #130

resarahman opened this issue Dec 9, 2021 · 1 comment

Comments

@resarahman
Copy link

is it possible to get the color object from css vars ? for example like this jQuery.Color( 'var(--heading-color)' )
or is there any method to extend to jQuery.Color to parse the css variable ?

Thanks

@mgol
Copy link
Member

mgol commented May 15, 2024

From README:

// Helper to get value from CSS
jQuery.Color( element, cssProperty );

cssProperty can be a CSS variable like --heading-color, you just need to use jQuery 3.2 or newer.

@mgol mgol closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants