StyleOptions

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)

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

Values

  • normal
  • dashed
  • dotted
  • double
alignment

alignment of the content. Default if unset

Values

  • start
  • center
  • end
textAlignment

alignment of the text. alignment if unset

Values

  • start
  • center
  • end
  • justify
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

Values

  • tiny
  • small
  • normal
  • medium
  • large
  • larger
  • huge
fontWeight

font weight of the text. Normal if unset

Values

  • normal
  • bold
fontStyle

font style of the text. Normal if unset

Values

  • normal
  • italic
fontVariant

font variant of the text. Normal if unset

Values

  • normal
  • smallcaps
textDecoration

text decoration of the text. None if unset

Values

  • none
  • underline
  • overline
  • underoverline
  • strikethrough
  • all
textCase

text case of the text. Normal if unset

Values

  • none
  • uppercase
  • lowercase
  • capitalize