LiveStyle.Config.Shorthand (LiveStyle v0.13.1)

View Source

Configuration for CSS shorthand property handling.

Controls how LiveStyle expands shorthand properties like margin, padding, etc. This is compile-time configuration (like StyleX Babel plugin config).

Summary

Functions

Returns the configured shorthand expansion behavior and options.

Functions

shorthand_behavior()

@spec shorthand_behavior() :: {module(), keyword()}

Returns the configured shorthand expansion behavior and options.

Returns a tuple of {module, opts} where opts is a keyword list.

Examples

# Default
shorthand_behavior() #=> {LiveStyle.ShorthandBehavior.AcceptShorthands, []}

# Using atom shortcut
shorthand_behavior() #=> {LiveStyle.ShorthandBehavior.FlattenShorthands, []}

# Custom behavior with options
shorthand_behavior() #=> {MyCustomBehavior, [strict: true]}