Blockly.Themes.Custom = Blockly.Theme.defineTheme('custom', {
'base': Blockly.Themes.Classic,
'blockStyles': blockStyling.blockStyles,
'categoryStyles': blockStyling.categoryStyles,
'componentStyles': blockStyling.componentStyles,
'fontStyle': blockStyling.fontStyle,
});
const defaultOptions = {
renderer: 'thrasos',
comments: true,
maxInstances: {
'set': 1,
'go': 1,
'mouse_click': 1
},
toolbox: {
'kind': baseBlockLibrary.kind,
'contents': categories,
'maxInstances': 1
},
theme: 'custom',
};
.blocklyTreeLabel {
font-family: Poppins, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: black;
font-weight: 500;
}
.blocklyTreeRow {
padding: 3px;
margin-bottom: 1em;
}
.blocklyTreeRow {
height: initial;
}
.swal2-title {
font-family: Poppins, sans-serif;
}