Giter Club home page Giter Club logo

blade's Introduction

Blade

Version Join the chat at https://gitter.im/Sketch-Plugin-Blade/Lobby

Blade is a sketch plugin designed to generate prototype web pages. Add simple annotation to your sketch layers and blade will get the magic done. Click image below to see demo video.

Blade New Demo

Installation

  • Copy blade.sketchplugin in dist folder to sketch plugin folder.
  • Create a artboard to group your layers.
  • Run Blade -> Export Current Artboard on plugin menu.

You can check the example file and its output in the example folder.

Annotation Usage

Blade use layer name annotation to convert layer to certain html component.

A

Add link to any kind of layer.

[A?url=http://www.github.com/sskyy/blade]xxx

Case

Switch between different versions of any layer. Press Command key to see selectors.

[Case]
  [#caseName=red]xxx
  [#caseName=blue]xxx

Group

Default type of group layer. Can be centered to its container.

[Group?center=true]

Ignore

Layer will not show in output.

Img

Export any kind of layer as a Image.

Roadmap

Components

  • Group( as default)
  • A
  • Button
  • Case
  • Ignore
  • Img
  • Input
  • Text
  • Textarea

Script support

Support basic javascript

blade's People

Contributors

gitter-badger avatar sskyy 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  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  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

blade's Issues

can you help us with more code

Hey your blade plugin works well.
But say for ex. i had to make a drop down.. then how would it work?
need more commands from you such as you form.

No html generated

What am I doing wrong? I created simple design for testing. I got empty folders with 0 files for output:

screenshot 2015-02-09 12 40 08

Doest this plugin support Appstore version of Sketch app? And actually what is the latest version supported now? Mine is Version 3.2.2 (9983)

Thanks
Peter

If an image is wrapped by a link [btn], the image does not export.

Folder Structure:
Header[btn]
-- logo complete
---- logo (saved as a symbol and export)
---- icon (saved as a symbol and export)
-- background

When I add "[btn]" to the Header layer, the logo, icon and background all fail to export. I'm not sure if I'm using [btn] wrong or if this is a bug.

Thanks

Idea: Responsive demos with multiple artboards and media-queries

It would be really cool if this plugin could could take each artboard in the Sketch document and export it to HTML with its visibility set according to media-queries.

Artboards could have a naming convention that specified the media query for which it would be visible. For example, you could have two artboards named like:

  1. media (max-width: 300px)
  2. media (min-width: 301px)

which would output each artboard into a div with an ID that was targeted by media-queries created according to the artboard names.

no HTML

Hi,

A folder is created with reset.css. jQuery file but no project css file or html file.
Please advice.....

Deprecation warning

Hi there.

As you probably know, [MSTextLayer lineSpacing] has been deprecated for a while, and it will be removed in Sketch v40. Please update your Plugin to use [MSTextLayer lineHeight] instead, or it won't work in the next release :)

Special Characters

Hi - I use blade plugin almost every other minute. Here are the items I wish to see improvements.

  • Special characters like &, bullet item characters, are every time geeky characters in output; it looses the formatting
  • The fonts sometime do not fit in the width; I have to manually change from auto and give it some width

There are others but we can workaround them. Can you let me know if there are any workarounds?

Thanks.

How to install the plugin in Sketch?

Hi @sskyy

Thanks for your good tool.
I'm using the latest Sketch version 47.1. i wonder how can i install this plugin to the Sketch app?
After i download the source code, i run command "npm install" and "npm run render" but there is no Blade plugin in Sketch.

Sorry, this is the 1st i use this plugin.
Thanks

Does nothing

Doesn't work.

Tried one shape in a new document : nothing happens
Tried existing document with art boards : nothing happens
Tried existing new document with one art board and one shape : nothing happens.

I quick read me to make sure we are using it properly would be great!

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.