I was able to get it working locally by putting everything in quotes like in the codelab:
```
<style>
...
.myButton {
fill: blue;
}
...
</style>
...
var toolbox = {
"kind": "flyoutToolbox",
"contents": [
...,
{
"kind": "button",
"text": "Trying to style",
"web-class": "myButton"
},
]
};
...
var workspace = Blockly.inject('blocklyDiv', {
toolbox: toolbox
});
```
This gave me a button that looks like this: