Style Builder Example
This example shows how a reusable base Style is composed with an additional layer through with(...).
- File:
examples/02_style_builder.rs - Run:
& "$env:USERPROFILE\.cargo\bin\cargo.exe" run --example style_builder
- Expected output: the merged padding, background, text color, radius, and shadow values.
Why this exists: it demonstrates that Twill’s core abstraction is style composition, not framework-specific components.