src/lib/theme.js
function convertRawTheme(theme) {
  if (!Array.isArray(theme.constants)) {
    return {
      constants: Object.keys(theme.constants).map(key => theme.constants[key]),
      styles: [].concat(theme.styles),
      animations: [].concat(theme.animations)
    }
  }
  else
    return theme;
}
function convertRawTheme(theme) {
  if (!Array.isArray(theme.constants)) {
    return {
      constants: Object.keys(theme.constants).map(key => theme.constants[key]),
      styles: [].concat(theme.styles),
      animations: [].concat(theme.animations)
    }
  }
  else
    return theme;
}
function convertRawTheme ( theme ) { if ( ! Array . isArray ( theme . constants ) ) { return { constants : Object . keys ( theme . constants ) . map ( key => theme . constants [ key ] ) , styles : [ ] . concat ( theme . styles ) , animations : [ ] . concat ( theme . animations ) } } else return theme ; }
user may not want to configure a whole theme and just pass in the theme we give them wholesale, lets convert it
user may not want to configure a whole theme and just pass in the theme we give them wholesale lets convert it