Skip to content

⚗️ Zeplin extension that generates text style snippets.

License

Notifications You must be signed in to change notification settings

artemnovichkov/stylin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.