# StyleOptions

data class StyleOptions(val foregroundColor: Color? = null, val backgroundColor: Color? = null, val borderColor: Color? = null, val borderWidth: Sizes? = null, val borderStyle: NodeStyle.BorderStyle? = null, val alignment: NodeStyle.Alignment? = null, val textAlignment: NodeStyle.TextAlignment? = null, val margin: Sizes? = null, val padding: Sizes? = null, val cornerRadius: Sizes? = null, val fontSize: TextTransformData.Size? = null, val fontWeight: TextTransformData.Weight? = null, val fontStyle: TextTransformData.Style? = null, val fontVariant: TextTransformData.Variant? = null, val textDecoration: TextTransformData.Decoration? = null, val textCase: TextTransformData.Case? = null)

#### Parameters

foregroundColor

text color. Default if unset

backgroundColor

background color. Transparent if unset

borderColor

border color. Default if unset and borderWidth is set

borderWidth

border width. Default if unset and borderColor is set

borderStyle

border style. Normal (solid) if unset and borderColor or borderWidth is set

alignment

alignment of the content. Default if unset

textAlignment

alignment of the text. alignment if unset

margin

whitespace outside the content. None if unset

padding

whitespace around the content. None if unset

cornerRadius

corner (and border) radius. None if unset

fontSize

relative font size of the text. Normal if unset

fontWeight

font weight of the text. Normal if unset

fontStyle

font style of the text. Normal if unset

fontVariant

font variant of the text. Normal if unset

textDecoration

text decoration of the text. None if unset

textCase

text case of the text. Normal if unset

## Constructors

StyleOptions
Link copied to clipboard
constructor(foregroundColor: Color? = null, backgroundColor: Color? = null, borderColor: Color? = null, borderWidth: Sizes? = null, borderStyle: NodeStyle.BorderStyle? = null, alignment: NodeStyle.Alignment? = null, textAlignment: NodeStyle.TextAlignment? = null, margin: Sizes? = null, padding: Sizes? = null, cornerRadius: Sizes? = null, fontSize: TextTransformData.Size? = null, fontWeight: TextTransformData.Weight? = null, fontStyle: TextTransformData.Style? = null, fontVariant: TextTransformData.Variant? = null, textDecoration: TextTransformData.Decoration? = null, textCase: TextTransformData.Case? = null)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

alignment
Link copied to clipboard
val alignment: NodeStyle.Alignment?
backgroundColor
Link copied to clipboard
val backgroundColor: Color?
borderColor
Link copied to clipboard
val borderColor: Color?
borderStyle
Link copied to clipboard
val borderStyle: NodeStyle.BorderStyle?
borderWidth
Link copied to clipboard
val borderWidth: Sizes?
cornerRadius
Link copied to clipboard
val cornerRadius: Sizes?
fontSize
Link copied to clipboard
val fontSize: TextTransformData.Size?
fontStyle
Link copied to clipboard
val fontStyle: TextTransformData.Style?
fontVariant
Link copied to clipboard
val fontVariant: TextTransformData.Variant?
fontWeight
Link copied to clipboard
val fontWeight: TextTransformData.Weight?
foregroundColor
Link copied to clipboard
val foregroundColor: Color?
margin
Link copied to clipboard
val margin: Sizes?
padding
Link copied to clipboard
val padding: Sizes?
textAlignment
Link copied to clipboard
val textAlignment: NodeStyle.TextAlignment?
textCase
Link copied to clipboard
val textCase: TextTransformData.Case?
textDecoration
Link copied to clipboard
val textDecoration: TextTransformData.Decoration?

## Functions

toNodeStyle
Link copied to clipboard
fun toNodeStyle(): NodeStyle