I assume that you are referring to ES.next (possibly using stage babel-0), as klaemo said you can access it, as you would expect, however, if I remember that there were some problems when using Babel and export the class immediately, so export after class definition if you have any problems:
class MyStyle extends Stylesheet {
static Color = {
mainDark: '#000'
}
someMethod() {
console.log(MyStyle.Color.mainDark);
}
}
export default MyStyle;
You can learn more about the problem of Babylon in Marian's answer on a similar question , which was allegedly recorded in Babel 6.2.1.