//
//  UILabel+Brand.swift
//  Multiplatform Redux Sample
//
//  Created by Julia Strasser on 02.11.20.
//

import Foundation
import UIKit.UILabel

extension UILabel {

    static func h1() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .h1()
        label.textColor = UIColor.testAppBlue
        label.textAlignment = .center
        label.numberOfLines = 0
        return label
    }

    static func h2() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .h2()
        label.textColor = UIColor.testAppBlue
        label.textAlignment = .center
        label.numberOfLines = 0
        return label
    }

    static func h3() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .h3()
        label.textColor = UIColor.testAppBlack
        label.textAlignment = .center
        label.numberOfLines = 0
        return label
    }

    static func h5() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .h5()
        label.textColor = UIColor.testAppBlue
        label.textAlignment = .left
        label.numberOfLines = 0
        return label
    }

    static func label() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .label()
        label.textColor = .white
        label.textAlignment = .center
        label.numberOfLines = 0
        return label
    }

    static func paragraph1() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .paragraph1()
        label.textColor = UIColor.testAppBlack
        label.textAlignment = .left
        label.numberOfLines = 0
        return label
    }

    static func paragraph2() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .paragraph2()
        label.textColor = UIColor.testAppBlack
        label.textAlignment = .left
        label.numberOfLines = 0
        return label
    }

    static func button() -> UILabel {
        let label = UILabel.autoLayout()
        label.font = .button()
        label.textColor = .white
        label.textAlignment = .center
        label.numberOfLines = 1
        return label
    }
}
