struct UI::DesignTokens::RadiusScale

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.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def avatar : Float64 #

def avatar_lg : Float64 #

def card : Float64 #

def clone #

[View source]
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) #

[View source]
def lg : Float64 #

def lookup(key : Symbol) : Float64 | Nil #

[View source]
def md : Float64 #

def none : Float64 #

def pill : Float64 #

def sheet : Float64 #

def sm : Float64 #

def x2l : Float64 #

def xl : Float64 #

def xs : Float64 #