All Projects → d4rekanguok → sketch-slicer

d4rekanguok / sketch-slicer

Licence: MIT license
Creating slices for selected layers in Sketch

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sketch-slicer

ForeignIpsum
Generate text for your mockups in multiple languages ¯\_(ツ)_/¯
Stars: ✭ 43 (+16.22%)
Mutual labels:  sketch, sketch-plugin
styledrop
A plugin for Sketch allows you to easily copy styles from one layer to another.
Stars: ✭ 54 (+45.95%)
Mutual labels:  sketch, sketch-plugin
diverseui-sketch-plugin
Fill your designs with photos of diverse users. Resource for images, avatars, and content.
Stars: ✭ 70 (+89.19%)
Mutual labels:  sketch, sketch-plugin
Smile-Sketch
文档快速整理排序,资源导入与导出
Stars: ✭ 14 (-62.16%)
Mutual labels:  sketch, sketch-plugin
symbol-insert
A simple plugin to insert your Sketch symbols
Stars: ✭ 25 (-32.43%)
Mutual labels:  sketch, sketch-plugin
Sketch-to-Clickthrough-HTML
Sketch plugin for creating a click-through HTML prototype
Stars: ✭ 75 (+102.7%)
Mutual labels:  sketch, sketch-plugin
Sketch-Keyboard-Resize
A Sketch plugin that lets you resize objects from all sides with keyboard shortcuts. As a bonus you can specify the resize amount.
Stars: ✭ 16 (-56.76%)
Mutual labels:  sketch, sketch-plugin
context-sketch-plugin
Count character, words, and paragraphs from a text layer easily inside Sketch!
Stars: ✭ 13 (-64.86%)
Mutual labels:  sketch, sketch-plugin
design-tokens-plugin
Support end of life! Delivering consistent Design System. A Sketch plugin that exports Design Tokens to JSON format. You can export colors, typography, icons and utilis. A must-have tool for design system project.
Stars: ✭ 100 (+170.27%)
Mutual labels:  sketch, sketch-plugin
symbol-namer
A plugin to help you rename symbol instances. Rename symbol instances to their override text values, or set and use a default name.
Stars: ✭ 17 (-54.05%)
Mutual labels:  sketch, sketch-plugin
DesignToken2Code
Convert design tokens to SCSS variables as code
Stars: ✭ 16 (-56.76%)
Mutual labels:  sketch, sketch-plugin
sketch-data-faker
A Sketch plugin providing 130+ types of smart placeholder content for your mockups from Faker.js and other sources.
Stars: ✭ 62 (+67.57%)
Mutual labels:  sketch, sketch-plugin
sketch-flip-size
🔁 FlipSize is a small Sketch plugin to flip the size of a shape, layer or artboard
Stars: ✭ 16 (-56.76%)
Mutual labels:  sketch, sketch-plugin
Sketch-SelectPlus
Sketch plugin to select different layers of specific types. It basically selects everything!
Stars: ✭ 20 (-45.95%)
Mutual labels:  sketch, sketch-plugin
sketchplugin-swift-color
A Sketch Plugin for generating UIColor and NSColor initializer Swift code from fill color of selected layers.
Stars: ✭ 58 (+56.76%)
Mutual labels:  sketch, sketch-plugin
sketch-debugger
🐛 Debugger Plugin and Utils for Sketch Plugin Developers
Stars: ✭ 16 (-56.76%)
Mutual labels:  sketch, sketch-plugin
Sketch-Highlighter
Sketch plugin that generates highlights for selected text layers
Stars: ✭ 41 (+10.81%)
Mutual labels:  sketch, sketch-plugin
RemoveAllGuides
Plugin for Sketch App.
Stars: ✭ 21 (-43.24%)
Mutual labels:  sketch, sketch-plugin
print-export-sketchplugin
Exports a PDF for printing
Stars: ✭ 85 (+129.73%)
Mutual labels:  sketch, sketch-plugin
sketch-align-layers-middle-no-bounds
sketch align layers middle no bounds from parent layer
Stars: ✭ 13 (-64.86%)
Mutual labels:  sketch, sketch-plugin

Sketch Slicer

Sketch plugin for creating slices for selected layers

How to use

  • Select one or more layers
  • Run one of the 2 commands: Slice with padding or Slice with frame

Options

Slice with Padding

Padding is the padding of the slice created from selected layers.

Enter one number to have equal padding from all sides, or manually set each of them using order similar to padding shorthand in CSS. For example, setting padding to 24/48 is equivalent to

padding: {
    top: 24
    right: 48
    bottom: 24
    left: 48
}

and setting padding to 12/14/16 is equivalent to

padding: {
    top: 12
    right: 14
    bottom: 16
    left: 14
}

Setting padding will not affect the selected layers' position.

Slice with Frame

Frame is the dimension of the slice. Using frame, the resulting slice layer will be centered around the selected layer.

Set one number will create a square slice layer, set two numbers to create a rectangle.

// 36;48
frame: {
  width: 36,
  height: 48
}

// 36
frame: {
  width: 36,
  height: 36
}

Note: If the selected layer doesn't have a rounded dimension (i.e 12.4241 x 14.1241), setting frame will slightly adjust its position so that the result slice layer is placed on a round pixel and have selected layer centered inside.

Select preset

Select one of the presets that you set in Sketch Preference cmd + ,

Create symbol

Create symbol out of the selected layers.

TODO
  • Set padding for slice
  • Set fixed slice size
  • Option to break text inside selected layers
  • Set export options Use user's export preset (set it Preference)
  • Create symbol with selected layer
    • If selected layer contains symbol, have an option to detach that nested symbol
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].