struct
UI::DesignTokens::RadiusScale
- UI::DesignTokens::RadiusScale
- Struct
- Value
- Object
Overview
Role-based radius scale. Phase 1 added #xs, #card, #sheet, #avatar,
and #avatar_lg to cover concrete renderer use cases (4pt bar corners,
10pt grouped-card / popover / snackbar corners, 14pt sheet corners,
30pt circular action icons, 60pt circular hero icons). These are
role-named rather than t-shirt-sized so consuming brands can override
them semantically.
Defined in:
ui/design_tokens.crConstructors
Instance Method Summary
- #avatar : Float64
- #avatar_lg : Float64
- #card : Float64
- #clone
- #copy_with(none _none = @none, xs _xs = @xs, sm _sm = @sm, md _md = @md, lg _lg = @lg, xl _xl = @xl, x2l _x2l = @x2l, card _card = @card, sheet _sheet = @sheet, avatar _avatar = @avatar, avatar_lg _avatar_lg = @avatar_lg, pill _pill = @pill)
- #lg : Float64
- #lookup(key : Symbol) : Float64 | Nil
- #md : Float64
- #none : Float64
- #pill : Float64
- #sheet : Float64
- #sm : Float64
- #x2l : Float64
- #xl : Float64
- #xs : Float64
Constructor Detail
def self.new(none : Float64, xs : Float64, sm : Float64, md : Float64, lg : Float64, xl : Float64, x2l : Float64, card : Float64, sheet : Float64, avatar : Float64, avatar_lg : Float64, pill : Float64)
#
Instance Method Detail
def copy_with(none _none = @none, xs _xs = @xs, sm _sm = @sm, md _md = @md, lg _lg = @lg, xl _xl = @xl, x2l _x2l = @x2l, card _card = @card, sheet _sheet = @sheet, avatar _avatar = @avatar, avatar_lg _avatar_lg = @avatar_lg, pill _pill = @pill)
#