material-components-web icon indicating copy to clipboard operation
material-components-web copied to clipboard

Tone should work with css-variables

Open worthy7 opened this issue 1 year ago • 0 comments

https://github.com/material-components/material-components-web/blame/8656bf0e032270f97d8673d33aaab4760befb5bc/packages/mdc-theme/_theme-color.scss#L66

Is this really neccessary? Why can it not work with css variables too? What happens if var(--my-primary-color) is passed in instead?

Can this code detect if it is a var and just resolve it and continue?

worthy7 avatar Dec 14 '23 00:12 worthy7