getElementCssVariables = (element, cssVarNames) => {
  const varNames = cssVarNames || getAllCssVariableNames()
  const styles = getComputedStyle(element)
  const styleDict = {}

  varNames.forEach(key => {
    styleDict[key] = styles.getPropertyValue(key)
  })

  return styleDict
}
Get a dict of variables for a given variables
@param {*} element element to check
@param {*} cssVarNames list of names, optional
@returns {Object}