

Each of these units allow our elements to adapt with the browser, unlike pixels. While this requires a new way of thinking for some, it ultimately ensures that your page, and the elements within it, are responsive across various devices.įor this reason, we’ll use percentages (%), viewport width (vw), or viewport height (vh).

This means that an element’s size should be considered relative to other elements, such as the browser or parent element. While creating our style guide, let’s remember to think in relative, not fixed units. For our purposes, we’ll keep it simple so that it’s easier to navigate. It can be as neat or as messy as you’d like. Now, the layout of the style guide is completely up to you. This lets you make updates with ease and save you the common headache when your client changes their mind about button color. In Webflow, we simply save a swatch as “Global,” which allows us to make sweeping changes to entire projects. Instead of spending a lot of time updating a color throughout the whole document in Sketch, we’ll use global colors. Next, we’ll create a style guide in Webflow. Every font weight adds to the site’s file size and load time.
ZEPLIN PLUGIN FOR SKETCH PRO
Pro tip: only select the weight(s) you need when uploading fonts, or selecting from Google. For this project, we’ll add the Roboto font weights of 100, regular, and 900. These can be Google fonts, Typekit fonts, or your own fonts. Let’s open our Webflow project, select the font tab in the project settings, and add our fonts. Now we’re ready to add our assets to a new Webflow project. The form button, for example, will need set padding: This is because we want to have a standard padding for all elements like these. Elements that have this requirement are typically buttons, input fields, cards, and sections. Step 1: Set padding in Sketchįor this walk-through, we’ll use a template by Felix Cruz to demonstrate the Sketch-to-Webflow process.įirst, let’s use the Paddy plugin for any elements that require specific padding. So, go ahead and add Paddy and Sketch Measure to your plugins before we get started. The Measure plugin, however, allows us to generate an HTML page with a single click and inspect every design detail, including CSS styles, offline. Each block is called out by a preceding comment using the layer's name. I'm sure you've discovered Sketch's context menu CSS grabber. This allows us to maintain strict padding for buttons, symbols, and elements that will later be recreated in Webflow. The background layer will then automatically resize itself by whatever amount we specify. The Paddy plugin allows us to apply padding to one background layer (either a shape layer or a symbol) of a group. So, how do we prepare a Sketch design that’s optimized for the box model? Let’s start with the plugin combination of Paddy and Sketch Measure. This powerful and just-works™️ layout mode is important to think about while you’re creating your Sketch design because, in most cases, the space between elements on the web is set by their margins. What does this mean? The space between elements is set by their margins and the space between a button’s text and its box is set with padding. This illustration was created by W3Schools.
