Closed FirstPotatoMan closed 4 years ago
Turns out Blockly.Theme.defineTheme is indeed, not a function. Here is my working updated code if anyone runs into a similar issue.
import Blockly from "node-blockly/browser";
const fontStyle = {
family: "Raleway, sans serif",
weight: "bold",
size: 12
};
const componentStyle = {
workspaceBackgroundColour: "red",
toolboxBackgroundColour: "#333"
};
const stone = (Blockly.Theme.defineTheme = {
base: Blockly.Themes.Classic,
fontStyle: fontStyle,
componentStyles: componentStyle
});
export default stone;
Here's my code. However, it returns an error: browser.default.Theme.defineTheme is not a function