Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.02 KB

README.md

File metadata and controls

62 lines (44 loc) · 2.02 KB

Stylin

Zeplin Extension Build Status

Zeplin extension that generates text style snippets. Based on Texstyle framework.

Getting started

Add the extension to your project from extensions.zeplin.io.

Output

extension TextStyle {

    static let sampleTextStyle: TextStyle = {
        let style = TextStyle()
        style.font = .systemFont(ofSize: 20, weight: .regular)
        style.color = .black
        style.alignment = .left
        return style
    }()

    static let sampleTextStyleWithColor: TextStyle = {
        let style = TextStyle()
        style.font = .systemFont(ofSize: 20, weight: .regular)
        style.color = .red
        style.alignment = .left
        return style
    }()
}

Development

This extension is developed using zem, Zeplin Extension Manager. zem is a command line tool that lets you quickly create, test and publish extensions.

To learn more about creating Zeplin extensions, see documentation.

Thanks

  • to Sacha for the logo
  • to Pasha for answering my stupid JS questions

Authors

Artem Novichkov, novichkoff93@gmail.com

Get help on Codementor

License

Stylin is available under the MIT license. See the LICENSE file for more info.