Renderers
Stay organized with collections
Save and categorize content based on your preferences.
The shape of a block is determined by a renderer, based on the
block's definition (that is, its fields and connections).
Built-in renderers
Blockly provides three built-in renderers, each of which give a slightly
different feel to the program.
Renderer |
Description |
Image |
Thrasos
|
The recommended renderer. It is a more
modern take on the geras renderer, with more
even spacing and solid borders. |
|
Geras
|
The default renderer. It is the original
renderer that Blockly was built with. |
|
Zelos |
A renderer based on Scratch-3.0 block design. |
 |
To use one of these renderers, pass the name into the configuration options:
Blockly.inject('blocklyDiv', {
renderer: 'thrasos'
});
Custom renderers
If you want to give your program a different look and feel than any of the
built-in renderers, you can also create a custom renderer. To get started the
Blockly team recommends you:
- Read through the renderer concept docs to learn
how all of the components of a renderer fit together.
- Complete the custom renderer codelab to
get hands-on practice with custom rendering.
- Add the debug renderer to your project.
- Customize your renderer.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-13 UTC."],[[["Block shape is determined by a renderer based on the block's definition, including fields and connections."],["Blockly offers three built-in renderers: Thrasos (recommended), Geras (default), and Zelos (Scratch-3.0 based)."],["Custom renderers can be created for unique program aesthetics by following documentation and tutorials."]]],[]]