Design+Code logo

Quick links

Suggested search

Math in Field

When you’re working with several pixel densities (1x, 2x, 3x), you need to be able to quickly and easily convert the units. In Sketch, not only can you edit the position and size values by using the Up and Down arrow keys, but you can also add, subtract, multiply and divide the numbers. With this technique, you can easily convert from 1x to 2x by simply multiplying the numbers by 2.

Additionally, you can use percentages. So if you put 100% in the Width field, the shape would resize to the full width of the Artboard, or the total width of the Group that it’s in.

Alt Tab Focusing

If you select a layer and press Alt Tab, it'll focus on the first property. As you press again, it'll switch to the next one.

Scale Tool

One of my favorite tools in Sketch is the Scale tool (Cmd K). Note that this isn’t the same as resizing, since it actually scales every property: Size, Radius, Border, Shadow and Inner Shadow. For instance, a 1 px border scaled at 200% will be 2 px. By only resizing, it’ll remain 1 px. This will be indispensable for converting @1x UI Kits to @2x or @3x, as it even works with Artboards.

Scale Tip

Tip: In general, scaling up yield better results than scaling down, since it won’t mess with your pixel perfection. For example, scaling down a 15 x 15 square will give 7.5 x 7.5. Decimals in your Position or Size will create blurry shapes. Use Show Pixels (Ctrl P) to determine.

Distances

Once created, press Alt to show distances between elements. When designing, distances are crucial to ensuring that your spacing are comfortable and consistent. For example, if you use 16 pt between sections of your design, try to keep using the same distance everywhere else.

Insert Shape

Inserting a shape is one of the tasks that you’ll perform hundreds of times a day. Using these shortcuts will make your experience less frustrating and more automatic. It will become a reflex. Over time, you will stop thinking about it and just focus on being creative. R: Rectangle O: Oval U: Rounded Rectangle L: Line T: Text V: Vector A: Artboard S: Slice P: Pencil Hold Shift: Keeps aspect ratio Hold Alt: Draw shape from center Learn-InsertShape

Smart Guides Before

Before you start drawing the shape, but after you’re ready to insert, you can use Smart Guides to increase precision. For example, you can press R to insert a Rectangle and align from top, center or bottom.

Keep Aspect Ratio

When inserting or resizing a shape, holding Shift will allow you to have a perfect circle or square. But once the shape is created and you want to resize it, you can keep the same aspect ratio by holding Shift.

Editing Shapes

With a layer selected, you can do the following shortcuts. 1 to 0: 1 represents 10% opacity, 0 represents 100% opacity. F: Toggle Fill. Ctrl C: Pick color. The Eyedropper tool can be used outside of the app. Double-click or Enter (not Grouped): Edit Mode. Double-Click (Grouped): Select one level deeper. ⌘ Click: Select any layer regardless of Groups. ⌘ Shift T: Transform ⌘ Shift R: Rotate ⌘ Shift L: Lock / unlock layer ⌘ Shift H: Hide / show layer ⌘ Shift E: Export Esc: Deselect / Select parent Artboard or Group. Space Drag: Move around canvas Keyboard-EditingShapes

Multiple Shapes

When you have multiple shapes selected, you can use these shortcuts. Alt ⌘ U: Union Alt ⌘ S: Subtract Alt ⌘ I: Intersect Alt ⌘ X: Difference Ctrl ⌘ M: Use as Mask ⌘ G: Group Shift ⌘ G: Ungroup

Editing Points

Once you’re in Edit mode, you can apply a number of shortcuts. 1: Straight 2: Mirrored 3: Disconnected 4: Asymmetric Tab: Next Point Alt: Show only Selected Point : Show Middle Point Keyboard-Points

Move and Resize

As you drag or resize shapes, Smart Guides and Distances are automatically visible. Shift Drag: Snap horizontally or vertically. Alt Drag: Duplicate Layer. ⌘ D: Duplicate. If you use Alt Drag first, the duplicates will be distanced consistently. Shift Resize: Keep aspect ratio Alt Resize: Resize from center : Rotate. Must hover borders. Shift ←, →, ↑ or ↓: Move by 10px ⌘ → or ↓: Expand by 1px ⌘ ← or ↑: Contract by 1px ⌘ Shift → or ↓: Expand by 10px ⌘ Shift ← or ↑: Contract by 10px

Type

These shortcuts apply to Text layers. ⌘ B: Bold ⌘ I: Italic ⌘ U: Underline ⌘ Alt +: Bigger type ⌘ Alt -: Smaller type ⌘ T: Change Font ⌘ Shift O: Convert Text to Outlines Alt Ctrl T: Tighten character spacing Alt Ctrl L: Loosen character spacing ⌘ Shift }: Align Left ⌘ Shift {: Align Right ⌘ Shift |: Align Center ⌘ Ctrl Space: Emojis and Symbols

Copy and Paste

You can Paste any format (JPG, PNG, SVG) to Sketch, from apps like Finder, Keynote, Mail, etc. Sketch will try to capture the vector if possible. Likewise, Sketch will Copy the vector to other apps like Keynote. ⌘ C: Copy ⌘ V: Paste ⌘ Shift V: Paste in Place. Right-click / Paste Here: Paste at the mouse cursor from center. Alt ⌘ C: Copy Style. Alt ⌘ V: Paste Style.

Arrange

Layers and Groups can be arranged within a parent Group or Artboard. Alt ⌘ ↑: Forward. Alt ⌘ ↓: Backward. Ctrl Alt ⌘ ↑: to Front. Ctrl Alt ⌘ ↓: to Back.

Zoom and Focus

Artboards and Layers can be focused on. ⌘ 1: Focus on all the elements in the screen. ⌘ 2: Focus on the element selected. ⌘ 3: Center Selection ⌘ 0: Zoom to Actual Size (100%). ⌘ +: Zoom In. ⌘ -: Zoom Out.

Grids and Rulers

In Preferences, enable Pixel Fitting to make sure that shapes land accurately in the Pixels Grid. Use Show Pixels to determine if your shapes are sharp. Ctrl G: Toggle Grid. Ctrl R: Toggle Rulers. To create a guide, click in the Ruler zone. Use Shift to move by 10 px. Drag outside to remove. Ctrl L: Toggle Layout. Ctrl P: Toggle Pixels. Ctrl X: Toggle Pixels Grid. The Pixels Grid can only be seen at 1000% zoom.

Window

** ⌘ ~: Switch to next window. **⌘ .: Toggle Presentation Mode. Alt ⌘ 1: Toggle Layers List. Alt ⌘ 2: Toggle Inspector. Alt ⌘ 3: Toggle Layers List, Inspector. Alt ⌘ T: Toggle Toolbar. Ctrl ⌘ F: Toggle Fullscreen.

Layers List

These shortcuts only apply to the Layers List. Alt: Switch to Lock instead of Hide. ⌘ R or Double-click: Rename Layer ⌘ Click: select multiple layers. Shift Click: select multiple layers in a group. Option Click Expand Arrow: Expand and Collapse all layers and groups. Tab: Next Layer. Shift Tab: Previous Layer. ⌘ F: Find Layer by name. Fn ↑: Previous Page. Fn ↓: Next Page. Drag Outside: Export 1x PNG asset based on Layer, Group or Artboard. You may override that setting by using Make Exportable.

Inspector

You can use Math (+, -, *, /) and percentage (%) in fields. Alt Tab (Repeated): Focus on next field. Drag Left or Right: Increase or decrease number. Must hover the label. ↑ or ↓: Increase or decrease by 1. Shift ↑ or ↓: Increase or decrease by 10. Alt ↑ or ↓: Increase or decrease by 0.1. Drag Outside: you can drag out Fills, Borders and Shadows to remove.

Custom Shortcuts

Shortcuts can be customized in the System Preferences pane. To add, go to Keyboard → Shortcuts → App Shortcuts. ⌘ Shift C: Create Symbol ⌘ Shift M: Make Grid… ⌘ Shift P: Round to Nearest Pixel Edge ⌘ Alt [: Horizontally (Align Objects) ⌘ Alt ]: Vertically (Align Objects) ⌘ Alt \: Collapse Artboards and Groups ⌘ Shift ‘: Remove Unused Styles Keyboard-Custom

Additional Resources

There are two additional resources that I highly recommend for further reading: Sketch Shortcuts and the official Sketch documentation.

BACK TO

Design for Web Part 2

READ NEXT

Sketch Plugins

Templates and source code

Download source files

Download the videos and assets to refer and learn offline without interuption.

check

Design template

check

Source code for all sections

check

Video files, ePub and subtitles

Videos

ePub

Assets

Subtitles

Meet the instructor

We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.

Meng To

I design, code and write

Meng To is the author of Design+Code. Meng started off his career as a self-taught designer from Montreal and eventually traveled around the world for 2 years as his US VISA was denied. During his travels, he wrote a book which now has 35,000 readers.

icon

39 courses - 184 hours

course logo

Build SwiftUI apps for iOS 18 with Cursor and Xcode

In this course, we'll explore the exciting new features of SwiftUI 6 and Xcode 16 for building iOS 18 apps. From mesh gradients and text animations to ripple effects, you'll learn how to create polished, highly custom apps using the latest workflows. We'll also dive into using Cursor and Claude AI for AI-driven coding, helping you start strong and customize your apps.

5 hrs

course logo

Create your Dream Apps with Cursor and Claude AI

Learn to build your dream web apps from the ground up using Cursor, Claude AI, and a suite of powerful AI tools. This course covers everything you need, including React for frontend development, Firebase for backend integration, and Stripe for handling payments. You’ll also dive into advanced AI tools like Claude Artifacts, Galileo AI, v0.dev for UI, Ideogram for design generation, and Cursor Composer for full-scale development.

6 hrs

course logo

Build a React Site from Figma to Codux

In this course, you'll learn to build a website from scratch using Codux, starting with a Figma template. You’ll master responsive design, collaborate with developers on a real React project, export CSS from Figma using Locofy, set up breakpoints with media queries, add CSS animations, improve SEO, create multiple pages with React Router, and publish your site. By following best practices, you’ll bridge design and development, improve your web design skills.

2 hrs

course logo

Create 3D UI for iOS and visionOS in Spline

Comprehensive 3D Design Course: From Basics to Advanced Techniques for iOS and visionOS using SwiftUI

3 hrs

course logo

Master No-Code Web Design with Framer

In this free Framer course, you'll learn to create modern, user-friendly interfaces. Start with dark mode and glass designs, then move from Figma to Framer, using vectors and auto layout for responsive websites. Add animations, interactive buttons, and custom components with code. Finally, you'll craft a design system suitable for teamwork or solo projects, all in a straightforward and practical approach.

4 hrs

course logo

Build SwiftUI Apps for iOS 17

In this course, we’ll be exploring the fresh and exciting features of SwiftUI 5! As we craft a variety of iOS apps from the ground up, we'll delve deep into the treasure trove that is SwiftUI's user interface, interactions, and animations.

4 hrs

course logo

Build Beautiful Apps with GPT-4 and Midjourney

Design and develop apps using GPT-4 and Midjourney with prompts for SwiftUI, React, CSS, app concepts, icons, and copywriting

4 hrs

course logo

Build SwiftUI apps for iOS 16

Create animated and interactive apps using new iOS 16 techniques using SwiftUI 4 and Xcode 14

5 hrs

course logo

Build a 3D Site Without Code with Framer

Design and publish a responsive site with 3D animation without writing a single line of code

3 hrs

course logo

Create 3D Site with Spline and React

Design and code a landing page with an interactive 3D asset using Spline and CodeSandbox

1 hrs

course logo

Build an Animated App with Rive and SwiftUI

Design and code an iOS app with Rive animated assets, icon animations, custom layouts and interactions

3 hrs

course logo

Build a SwiftUI app for iOS 15 Part 3

Design and code a SwiftUI 3 app with custom layouts, animations and gestures using Xcode 13, SF Symbols 3, Canvas, Concurrency, Searchable and a whole lot more

4 hrs

course logo

Build a SwiftUI app for iOS 15 Part 2

Design and code a SwiftUI 3 app with custom layouts, animations and gestures using Xcode 13, SF Symbols 3, Canvas, Concurrency, Searchable and a whole lot more

3 hrs

course logo

Build a SwiftUI app for iOS 15

Design and code a SwiftUI 3 app with custom layouts, animations and gestures using Xcode 13, SF Symbols 3, Canvas, Concurrency, Searchable and a whole lot more

4 hrs

course logo

React Livestreams

Learn how we can use React Hooks to build web apps using libraries, tools, apis and frameworks

4 hrs

course logo

Design Founder Livestreams

A journey on how we built DesignCode covering product design, management, analytics, revenue and a good dose of learning from our successes and failures

2 hrs

course logo

SwiftUI Advanced Handbook

An extensive series of tutorials covering advanced topics related to SwiftUI, with a main focus on backend and logic to take your SwiftUI skills to the next level

4 hrs

course logo

iOS Design Handbook

A complete guide to designing for iOS 14 with videos, examples and design files

2 hrs

course logo

SwiftUI Handbook

A comprehensive series of tutorials covering Xcode, SwiftUI and all the layout and development techniques

7 hrs

course logo

Build a web app with React Hooks

Learn how we built the new Design+Code site with React Hooks using Gatsby, Netlify, and advanced CSS techniques with Styled Components.

4 hrs

course logo

UI Design Handbook

A comprehensive guide to the best tips and tricks for UI design. Free tutorials for learning user interface design.

2 hrs

course logo

Figma Handbook

A comprehensive guide to the best tips and tricks in Figma

6 hrs

course logo

SwiftUI for iOS 14

Build a multi-platform app from scratch using the new techniques in iOS 14. We'll use the Sidebar and Lazy Grids to make the layout adaptive for iOS, iPadOS, macOS Big Sur and we'll learn the new Matched Geometry Effect to create beautiful transitions between screens without the complexity. This course is beginner-friendly and is taught step-by-step in a video format.

3 hrs

course logo

SwiftUI Livestreams

This is a compilation of the SwiftUI live streams hosted by Meng. Over there he talks and teaches how to use design systems, typography, navigation, iOS 14 Design, prototyping, animation and Developer Handoff.

19 hrs

course logo

UI Design Livestreams

This is a compilation of the UI live streams hosted by Meng. Over there he talks and teaches how to use design systems, typography, navigation, iOS 14 Design, prototyping, animation and Developer Handoff.

26 hrs

course logo

UI Design for Developers

In this course we'll learn how to use design systems, set up break points, typography, spacing, navigation, size rules for adapting to the iPad, mobile and web versions, and different techniques that translate well from design to code.

3 hrs

course logo

Build an app with SwiftUI Part 3

This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.

4 hrs

course logo

Build an app with SwiftUI Part 2

This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.

4 hrs

course logo

Build a full site in Webflow

Webflow is a design tool that can build production-ready experiences without code. You can implement CSS-driven adaptive layouts, build complex interactions and deploy all in one tool. Webflow also comes with a built-in content management system (CMS) and Ecommerce for creating a purchase experience without the need of third-party tools.

3 hrs

course logo

Advanced Prototyping in ProtoPie

ProtoPie is a cross-platform prototyping tool that creates prototypes nearly as powerful as those made with code, with half of the efforts, and zero code. It's perfect for designers who want to quickly experiment with advanced interactions using variables, conditions, sensors and more.

3 hrs

course logo

Build an app with SwiftUI Part 1

This course was written for designers and developers who are passionate about design and about building real apps for iOS, iPadOS, macOS, tvOS and watchOS. SwiftUI works across all of those platforms. While the code is not a one-size-fits-all, the controls and techniques involved can apply to all platforms. It is beginner-friendly, but it is also packed with design tricks and cool workflows about building the best UIs and interactions.

4 hrs

course logo

React Native for Designers Part 2

React Native is a popular Javascript framework that builds on top of React by using native components to create a real mobile app indistinguishable from one made using Xcode or Android Studio. The main difference with native development is that you get to use CSS, hot-reload, Javascript and other familiar techniques that the Web has grown over the past decades. Most importantly, you're building for both iOS and Android using the same codebase.

3 hrs

course logo

React Native for Designers

React Native is a popular Javascript framework that builds on top of React by using native components to create a real mobile app indistinguishable from one made using Xcode or Android Studio. The main difference with native development is that you get to use CSS, hot-reload, Javascript and other familiar techniques that the Web has grown over the past decades. Most importantly, you're building for both iOS and Android using the same codebase.

5 hrs

course logo

Design System in Figma

Learn how to use and design a collaborative and powerful design system in Figma. Design Systems provide a shared library of reusable components and guidelines and that will let you build products much faster

3 hrs

course logo

React for Designers

Learn how to build a modern site using React and the most efficient libraries to get your site/product online. Get familiar with Grid CSS, animations, interactions, dynamic data with Contentful and deploying your site with Netlify.

3 hrs

course logo

Swift Advanced

Learn Swift a robust and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV and Apple Watch

9 hrs

course logo

Learn Swift

Learn Swift a robust and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV and Apple Watch

4 hrs

course logo

Learn Sketch

Learn Sketch a design tool entirely vector-based and focused on user interface design

5 hrs

course logo

Learn iOS 11 Design

Learn colors, typography and layout for iOS 8

1 hrs