Giter Site home page Giter Site logo

tbrasington / rename-layers-based-on-textstyle Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 12.58 MB

A Sketch plugin to rename layers based on the text style applied

License: MIT License

JavaScript 100.00%
sketch sketch-plugin documentation design design-systems invision zeplin

rename-layers-based-on-textstyle's Introduction

logo

rename-layers-based-on-textstyle

What?

This plugin will go through your current pages' text styles and prepend or replace their Text Style name to the layer.

It will go through your local document text styles first, then look for any text styles that are linked from your libraries.

Why?

When developers are picking through tools like InVision and Zeplin they can't easily sync up the style reference to your design system. They only get the attributes of the font like size or letter spacing. This tool allows them to see the style name and reference it with their codebase.

Installation

Install rename-layers-based-on-textstyle with Sketchpacks

Either install via Sketchpacks, Sketch Runner or...

  1. Download from the release page
  2. Unzip
  3. Double Click on rename-layers-based-on-textstyle.sketchplugin

Commands

Append

logo

Takes the Text Syle name and adds it to the end of the the Layer name with a hypen

Prepend

logo

Takes the Text Syle name and adds it to the front of the the Layer name with a hypen

Replace

logo

Takes the Text Syle name and replaces the entire layer name with the Text Style


@tbrasington | tbrasington.com

rename-layers-based-on-textstyle's People

Contributors

tbrasington avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rename-layers-based-on-textstyle's Issues

Doesn't work in Sketch 58

When I use the plugin in Sketch 58, nothing happens. The layers do not rename to the text style, everything remains the same as if I didn't run the plug in.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.