Zeplin extension that generates text style snippets. Based on Texstyle framework.
Add the extension to your project from extensions.zeplin.io.
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
}()
}
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.
Artem Novichkov, novichkoff93@gmail.com
Stylin is available under the MIT license. See the LICENSE file for more info.