export function formartThemeConfig(options) {
  const data = {};
  data.mode = options.mode;
  data.className = options.className;
  data.vars = {};
  const dom = document.querySelector(':root');
  [].concat(...Object.values(options.vars)).forEach(item => {
    const [key, value] = item.split(':');
    data.vars[key] = value;
    dom.style.setProperty(`--${key}`, value);
  });
  return data;
}
