Reference

API Reference

API Reference

Use the reference pages after you understand the basic Ruflet application model.

Controls (components and widgets)

Color Values

Every color property, including color, bgcolor, border_color, icon_color, shadow_color, gradient colors, and theme color fields, accepts named colors or hex strings.

container(
  bgcolor: :surface_container_high,
  border: { color: :blue_grey_200, width: 1 },
  content: text(value: "Named colors", style: { color: :deep_orange_500 })
)

filled_button(
  "Save",
  bgcolor: :deep_orange_500,
  color: "#ffffff"
)

Use named colors for Material/theme colors and hex for exact brand values. Use Ruby-style symbols such as :deep_orange_500, :blue_grey_200, and :surface_container_high for named colors. Hex values can use #rrggbb, #aarrggbb, 0xrrggbb, or 0xaarrggbb; append ,0.5 to apply opacity.

Services

methods, persistent service objects, and protected device access.

Extensions

Ruby controls or services they provide.

extension.

package contract used by Ruflet.

Runtime and tooling

  • Events and State documents event payloads and control updates.
  • CLI Reference covers every project, run, build, update, install, and tooling option.
  • Configuration documents ruflet.yaml, services.yaml, extensions, and environment overrides.
  • App Structure explains how generated files fit together.

Rails documentation, including the complete Rails API, is grouped under Integrations.