bevy-ui-layout

Installation
SKILL.md

Bevy UI layout

When to use

Load this when laying out HUD or menu nodes. Text content stays on bevy-ui-text. Colors and widget styling stay on bevy-ui-theming.

ECS shape

  • Nodes: spawn Node entities. Children are child entities. Flexbox and CSS Grid are fields on Node.
  • Widgets: ui_widgets::Button plus the Pressed marker for the held state. ImageNode for a texture. Text content stays on bevy-ui-text.
  • Systems: layout is engine-owned. Game systems read Pressed and ComputedNode. They do not run a second layout pass.

A column fills the window. The button is a child with a fixed size. BackgroundColor is the fill. BorderRadius rounds the control.

use bevy::ui_widgets::Button;
Installs
56
GitHub Stars
982
First Seen
Oct 11, 2026