motion icon indicating copy to clipboard operation
motion copied to clipboard

fix: Improve types to include css variables

Open dca123 opened this issue 1 year ago • 0 comments

In the docs regarding css variables, it's recommended to cast it as any.

This PR should allow you to add css variables, i.e "--${anthingGoesHere}". If the initial "--" is not there, an error is thrown !

Right now it only allows for strings & numbers as the properties.

Valid

{
  "--myColor": "#eeeeee"
}

Invalid

{
  "myColor": "#eeeeee"
}

dca123 avatar Sep 14 '24 21:09 dca123