Code Monkey home page Code Monkey logo

sketch-emmet's Introduction

What's Sketch Emmet?

A plugin that gets Emmet HTML abbreviations snippets to be expanded based on layers list structure and naming. Sketch to Emmet HTML

Download

Install with Sketch Runner

With Sketch Runner, just go to the install command and search for Sketch Emmet. Runner allows you to manage plugins and do much more to speed up your workflow in Sketch. Download Runner here

How it works?

You just need to organize and name your groups/layers correctly using Emmet’s abbreviations syntax, and then go to Plugins » Sketch Emmet » Get Emmet Snippet

https://vimeo.com/236480843

NOTE: In addition to Sketch Emmet you will need to have Emmet Plugin in your editor favorite to expand the snippets abbreviations properly.

Tips and tricks

  1. Add a % character as prefix if you want to ignore or prevent a layer or group of layers to be copied.

  2. If you have a block or a image with a prefix or name as "img" it will automatically add width and height attributes. Example:

  • img
  • img.classname
  • img.classname#id
  • img.classname#id[src=#]
  1. Text layers just output the text inside it, unless you asign a proper HTML tag as name. Example:
  • p
  • h1
  • h2
  • h3
  • p.classname
  • p.classname#id
  • p.classname#id[attribute=value]

Learn more about Emmet Abbreviations Syntax https://docs.emmet.io/

Credits

Thanks to Marisa Roque, I was inspired and used some code from his plugin Sketch Markup Listify

Did it help you?

You might want to invite me a coffee

sketch-emmet's People

Contributors

joelbqz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.