Constructors

  • data class containing the style values for a specific selector

    Parameters

    • selector: string
    • Optionaldefaults: Record<string, any>
    • Optionalvalues: Record<string, any>

    Returns ObjectStyle

Methods

  • add one or more classes

    Parameters

    • cls: string | string[]

    Returns boolean

    true if one or more classes were added, false otherwise

  • Parameters

    • style: Style
    • parentStyle: string
    • Optionalcontext: null | string

    Returns { acquiredColors: string[] }

  • Parameters

    • name: string
    • value: string | number

    Returns void

  • Parameters

    • name: string

    Returns void

  • Parameters

    • option: string
    • Optionalfallback: any

    Returns any

  • Parameters

    • name: string

    Returns boolean

  • remove one or more classes

    Parameters

    • cls: string | string[]

    Returns boolean

    true if one or more classes were removed, false otherwise

  • update the object styles class

    Parameters

    • cls: string | string[]

    Returns boolean

    true if classes were changed, false otherwise

  • update the object styles key

    Parameters

    • Optionalkey: string

    Returns boolean

    true if the key was changed