Reference

API Reference

API Reference

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

UI

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("Named colors", color: "DeepOrange500")
)

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

Use named colors for Material/theme colors and hex for exact brand values. Ruflet accepts Ruby-style symbols such as :deep_orange_500, compact strings such as "DeepOrange500", spaced names such as "Deep Orange 500", and hyphenated names such as "deep-orange-500". Hex values can use #rrggbb, #aarrggbb, 0xrrggbb, or 0xaarrggbb; append ,0.5 to apply opacity.

Runtime and tooling