• Stars
    star
    826
  • Rank 54,922 (Top 2 %)
  • Language
    JavaScript
  • Created about 12 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of script commands for Sketch.app

Sketch Commands

Sketch Commands is a port of some of my Orange Commands for Fireworks for Sketch.app.

Installation

Documentation for All Commands

Align

  • Space Horizontal: Distributes the selected elements horizontally, with the same distance beetween them.
  • Space Vertical: Distributes the selected elements vertically, with the same distance beetween them.

Duplicate

  • Duplicate Artboard Below: Duplicates the selected Artboard to the bottom of the current one.
  • Duplicate Artboard Right: Duplicates the selected Artboard to the right of the current one.

Effects

  • Repeat Horizontal: Repeats the selected layer horizontally, with a custom spacing between layers.
  • Repeat Vertical: Repeats the selected layer vertically, with a custom spacing between layers.

Export

  • All Artboards as PNG: Exports all the Artboards in the document as PNG files, in a folder at the file's location.
  • All Artboards as PNG in…: Exports all the Artboards in the document as PNG files, in a folder of your choice.
  • All Artboards as SVG: Exports all the Artboards in the document as SVG files, in a folder at the file's location.
  • All Artboards as PDF: Exports all the Artboards in the document as independent PDF files (one PDF file per Artboard), in a folder at the file's location.
  • All Slices as PNG: Exports all the Slices in the document as PNG files, in a folder at the file's location.
  • All Slices as PNG in ZIP: Exports all the Slices in the document as PNG files, archived in a ZIP file.
  • All Slices as PNG in…: Exports all the Slices in the document as PNG files, in a folder of your choice.
  • All Slices as SVG: Exports all the Slices in the document as SVG files, in a folder at the file's location.
  • All Slices as PDF: Exports all the Slices in the document as independent PDF files (one PDF file per Slice), in a folder at the file's location.
  • Save and Export Slices: Saves the file, exporting all the Slices in PNG format, in a folder at the file's location.
  • Selection to Desktop as PNG: Exports the selected layers as a PNG file on the Desktop.
  • Selection to Desktop as SVG: Exports the selected layers as a SVG file on the Desktop.
  • Selection to Desktop as PDF: Exports the selected layers as a PDF file on the Desktop.
  • Whole Page to Desktop as PNG: Exports the current page as a PNG file on the Desktop.
  • Whole Page to Desktop as PDF: Exports the current page as a PDF file on the Desktop.

Guides

  • Add Guides Manually to Artboard: Adds a pair of horizontal & vertical guides to the current Artboard, at the specified coordinates.
  • Around Selection: Add four guides that frame each of the selected layers.
  • Clear All Guides in Current Artboard: Removes all the guides in the current Artboard.
  • Clear All Guides in Current Page: Removes all the guides in the current Page.
  • Clear All Guides: Removes all the guides in the current document.
  • Clear Horizontal Guides in Current Page: Removes all the horizontal guides in the current Page.
  • Clear Vertical Guides in Current Page: Removes all the vertical guides in the current Page.
  • Repeat Guides Horizontally on Artboard: Creates a repeating pattern of horizontal guides by specifying the starting position of the pattern, distance between guides, and number of guides.
  • Repeat Guides Vertically on Artboard: Creates a repeating pattern of vertical guides by specifying the starting position of the pattern, distance between guides, and number of guides.

Numberize

A collection of commands to add / remove numbers to the name of Pages and Artboards.

  • Artboards Add: Adds a number in front of the Artboard name, using their stacking order.
  • Artboards Remove: Removes the number added by the previous command.
  • Pages Add: Adds a number in front of the name of all pages.
  • Pages Remove: Removes the number added by the previous command.

Pages

  • Duplicate Current Page: Duplicates the current page in the document.
  • Remove Current Page: Removes the current page in the document.
  • Set Name…: Sets the name of the current page.

Position

  • Move Up 100px: Moves the selected layers 100 pixels up.
  • Move Down 100px: Moves the selected layers 100 pixels down.
  • Move Left 100px: Moves the selected layers 100 pixels left.
  • Move Right 100px: Moves the selected layers 100 pixels right.
  • Set Position…: Sets the position of the selected layers to a custom value.
  • Swap Positions: Swaps the positions of two selected layers.

Properties

  • Make Pill: Makes the selected Rectangle layer a pill button by rounding its corners to the maximum possible value.
  • Rotation…: Sets the rotation of the selected layers to a custom value.
  • Set Radius…: Sets the corner radius of the selected layers to a custom value.

Select

  • All Layers in Current Artboard: Selects all the layers in the current Artboard.
  • All Text Layers in Page: Selects all the text layers in the current Page.
  • Current Artboard: Selects the current Artboard.

Size

  • Equalize Height Down: Makes all selected objects the same height, using the shortest one as the reference.
  • Equalize Height Up: Makes all selected objects the same height, using the tallest one as the reference.
  • Equalize Width Down: Makes all selected objects the same width, using the narrowest one as the reference.
  • Equalize Width Up: Makes all selected objects the same width, using the widest one as the reference.
  • Height -100px: Decreases the height of the selected layers by 100px.
  • Height +100px: Increases the height of the selected layers by 100px.
  • Height…: Sets the height of the selected layers to a custom value.
  • Scale to 16:9: Scales the selected layers so that they have a 16:9 aspect ratio.
  • Scale to 4:3: Scales the selected layers so that they have a 4:3 aspect ratio.
  • Set Size…: Sets the size of the selected layers to a custom value.
  • Width -100px: Decreases the width of the selected layers by 100px.
  • Width +100px: Increases the width of the selected layers by 100px.
  • Width…: Sets the width of the selected layers to a custom value.

Text

See this article for more details on Sentence vs Title case.

  • Case Sentence case: Sets the selected text layers to Sentence case.
  • Case Title Case: Sets the selected text layers to Title Case.

More Repositories

1

sketch-framer

A Sketch plugin to easily export your mockups to FramerJS
JavaScript
767
star
2

artboard-manager

Because moving Artboards manually is *so* 2016
JavaScript
678
star
3

Strip-Whitespace-On-Save.tmbundle

TextMate 2 bundle: Strips trailing whitespace from current document when saving
127
star
4

Cleanup-Useless-Groups

A Sketch plugin that cleans up your layer list by removing empty groups and flattening deeply nested groups.
103
star
5

fireworks

Support files for Adobe Fireworks
JavaScript
82
star
6

sinatra_wiki

An ultralight, ultraminimal wiki thing with Markdown
Ruby
50
star
7

Save-On-Focus-Lost.tmbundle

Re-enables the "Save files when focus is lost" preference from TextMate 1 in TextMate 2
45
star
8

bliki

A small blog + wiki engine built on Sinatra + Stone
Ruby
38
star
9

nanoc_extensions

Testing ground for nanoc filters, plugins and commands
Ruby
29
star
10

sketch-sandbox

A small library to work around sandboxing issues in Sketch
JavaScript
29
star
11

sketch-action-api-tester

A plugin to listen to all the events in the Action API
26
star
12

install-library-bundle

Installs a bunch of shared Sketch Libraries at once, because life is too short to spend it clicking links
JavaScript
24
star
13

sketch-duplicate-and-nudge

A port to Sketch.app of Photoshop's Duplicate and Nudge feature
23
star
14

coding-designer

My stack to design in code, explained
Ruby
21
star
15

sketchtool-action

A sample repo to show how to run sketchtool as a GitHub Action
20
star
16

check-for-library-updates

A Sketch plugin to check for Sketch Cloud library updates
18
star
17

noteplan-backlinks

Ruby script to create backlinks for NotePlan notes
Ruby
17
star
18

mtasc

A fork of a fork of MTASC
OCaml
16
star
19

sketchpotify

A silly hack to control Spotify from Sketch, because why not.
JavaScript
15
star
20

voodoopad-gtd

A collection of scripts for a GTD workflow in VoodooPad
Python
13
star
21

psd-extract-font-info

A quick Ruby script to extract font information from PSD files
Ruby
12
star
22

sketch-color-blindness

A Sketch plugin that simulates the three more common forms of color blindness
JavaScript
12
star
23

flvplayer

Hopefully, the last FLV player I'll ever code
ActionScript
10
star
24

recetas

Un sitio donde poner mis recetas de cocina
SCSS
7
star
25

memesketch

Memes in Sketch!
JavaScript
7
star
26

rack-footnotes

Rack middleware to insert text comments into pages. First created to be used with jlong's serve, but should work with pretty much every rack app
Ruby
7
star
27

sketchplugins.tmbundle

A TextMate bundle for Sketch Plugins development
5
star
28

rack-smusher

Rack middleware to smush images
Ruby
5
star
29

obsidian-mono-theme

A very opinionated monospaced theme for Obsidian
CSS
5
star
30

serve-livereload

A barebones @jlong/serve project including support for LiveReload (via rack-liverload and guard-livereload, so no browser extensions needed!)
CSS
5
star
31

dokuwiki-offline-html

A fork of http://code.google.com/p/offlinehtml-plugin
PHP
4
star
32

artboard-border

Adds a border around the Artboards in the current page.
JavaScript
4
star
33

simplyphone

A simple theme for jailbroken iPhones
4
star
34

webhacker

A collection of tools for web design
Python
4
star
35

image-size-assistant

An Assistant to check the size of bitmap images
TypeScript
4
star
36

fluby

A simple command to create an empty ActionScript project for MTASC + SWFMILL + Rake
Ruby
4
star
37

run-node-with-github-actions

A template repository for running node scripts using GitHub Actions
3
star
38

fireworks-tmbundle

A TextMate bundle for Adobe Fireworks development
3
star
39

super-sharp-shooter

A Sketch plugin to resize the main window, for screenshots
JavaScript
3
star
40

poster

An anonymous image hosting service, with a companion Fireworks plugin to upload images.
Ruby
3
star
41

swfmp3

The MP3 player that Does Much Less™
ActionScript
3
star
42

qmk_user_folder

C
2
star
43

cornelius

Keymap for my Cornelius keyboard
C
2
star
44

sketch-image-downloader

A Sketch module to handle image downloads and insertion in documents
JavaScript
2
star
45

jcrop

git mirror of http://deepliquid.com/content/Jcrop.html
JavaScript
2
star
46

green-theme-for-dokuwiki

A simple theme for DokuWiki
PHP
2
star
47

sketch-alpha-window

JavaScript
2
star
48

crkbd-mini

QMK keymap for 3x5 Corne Keyboard
C
2
star
49

chic

A Sketch Assistant to warn you about text layers that don't use a Style
TypeScript
2
star
50

me

HTML
2
star
51

poster-plugin-fireworks

The companion Fireworks plugin for Poster
JavaScript
2
star
52

nathan-pitman-fireworks-extensions

A mirror of the Fireworks extensions released by Nathan Pitman
2
star
53

bsapi

A collection of ActionScript libraries I happen to use *quite* a lot
ActionScript
2
star
54

10th-anniversary

A Sketch plugin to celebrate its 10th Anniversary
JavaScript
2
star
55

open-export-folder

Opens the export folder in Finder after an export operation in Sketch
JavaScript
1
star
56

reveal-local-cache-sketchplugin

Plugin to reveal the currently open document in Finder
JavaScript
1
star
57

dotfiles

My dotfiles
Shell
1
star
58

safari-css-cursor-bug

Sample code to demonstrate a bug in Safari’s rendering of CSS cursors
HTML
1
star
59

sketch-plugin-update-demo

JavaScript
1
star
60

sofanaranja

sofanaranja.com
HTML
1
star
61

sketch-plugin-updater-lib

A library to check if a Sketch plugin is up to date compare to its master version
JavaScript
1
star
62

artboard-automargin

Automatically expand your layers to fill the Artboard width
JavaScript
1
star
63

atreus

Keymap for Keyboardio Atreus
C
1
star
64

sketch-data-parser

A sketch plugin to parse your data and populate your design
1
star
65

idobo

QMK Keymap & configuration for my Idobo keyboard
C
1
star
66

ama

Ask Me Anything!
1
star
67

fontbook

FontBook creates a bunch of random text layers, using all the installed font families in your computer
JavaScript
1
star