See all glossary terms

Theme

In Godot, a theme is a resource that contains a collection of resources and controls the appearance of the user interface. It is used to style the various UI elements in the editor and in the game.
You can assign a theme to a Control node by setting its theme property. This will apply the theme to the node and all its children.
By default, Godot applies a built-in theme to all controls. This is what gives the controls their initial look. You can override this by creating a new theme and assigning it to the root node of your user interface scenes.
Themes are made up of several properties and resources, including:
  • Fonts: The font files used for text rendering.
  • Colors: The colors used for various UI elements.
  • Images: Icons or images you use frequently in your UI.
  • Styles: Styleboxes that define the appearance of UI elements. These can be used to define the background, border, and other visual properties of a UI node.
  • Constants: usually, numbers that define the spacing, padding, and other layout properties of UI elements.

See Also

Related terms in the Glossary