stylesToCSS: use code from React to hyphenate