Skip to content

Generates Smartface themes from colors and text styles. 📱

Notifications You must be signed in to change notification settings

smartface/smartface-zeplin-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smartface Zeplin Extension

Generating Smartface themes from Zeplin projects has never been easier!

  • Install Smartface extension from Zeplin extension center
  • Go to styleguide of your Zeplin project
  • Select Color Palette
  • See Smartface tab on the right

  • If you click Export button on the right, variables.json will be created automatically which is ready to use in your Smartface app themes
  • Same also applies for text styles as well

Sample variables output:

{
  "black": "rgba(0,0,0,1)",
  "black60": "rgba(0,0,0,0.6)",
  "white": "rgba(255,255,255,1)",
  "gray": "rgba(220,220,220,1)",
  "slategray": "rgb(112,128,144,1)"
}

Sample text style output:

{
  ".headline": {
    "font": {
      "family": "SFProText",
      "style": "bold",
      "size": 20
    },
    "textColor": "${gray}"
  },
  ".genericTitle": {
    "font": {
      "family": "SFProText",
      "style": "semibold",
      "size": 17
    },
    "textColor": "${black}"
  }
}

Development

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

To learn more about zem, see documentation.

About

Generates Smartface themes from colors and text styles. 📱

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published