figma下载_Figma的自动版式实用

figma下载

Figma’s Auto Layout has been around for a while, but not everyone’s aware of the benefits it brings. It doesn’t replace constraints, they’re still very much needed. The trick is to use the right feature where necessary. I want to show you how to combine components, constraints, and Auto Layout for the best results.

Figma的自动版式已经存在了一段时间,但并不是每个人都意识到它带来的好处。 它不能代替约束,仍然非常需要它们。 诀窍是在必要时使用正确的功能。 我想向您展示如何组合组件,约束和自动版式以获得最佳效果。

I threw together a screen for an Uber Eats inspired food delivery app and I’m going to tear it down to show you how you can use Auto Layout along with constraints and components to up your design game.

我为受Uber Eats启发的送餐应用程序放了一个屏幕,我将其拆下来向您展示如何使用自动版式以及约束和组件来设计游戏。

App Prototype in Figma Mirror
Prototype in Figma Mirror. A little drizzly today, don’t mind the droplets.
Figma Mirror中的原型。 今天有点毛毛雨,不要介意水滴。

Most of you already know that, but for a word of introduction, what Auto Layout does is automatically arrange elements placed inside of a frame. These elements can be either arranged vertically or horizontally and you can set the spacing between individual elements as well as between the elements and the borders of the frame. Because of this can’t use constraints or place elements on top of one another in frames that use Auto Layout.

你们大多数人都已经知道这一点,但简单地说,“自动布局”的作用是自动排列放置在框架内部的元素。 这些元素可以垂直或水平排列,您可以设置各个元素之间以及元素与框架边框之间的间距。 因此,不能使用约束,也不能在使用“自动布局”的框架中将元素彼此重叠放置。

Application screen displaying how inner frames are used

At the top-most level, these are the four separate elements that the screen/frame is comprised of.

在最顶层,这些是组成屏幕/框架的四个独立元素。

  1. The header consists of four inner frames and uses Auto Layout. We’ll get to it later.

    页眉由四个内部框架组成,并使用“自动布局”。 我们稍后再讨论。
  2. This is the headline element which is simply a left and bottom constrained text element inside a frame.

    这是标题元素,仅是框架内的左侧和底部约束文本元素。
  3. The content area frame is a little more complex. More on that later.

    内容区域框架稍微复杂一些。 以后再说。
  4. The bottom menu houses a top and horizontally stretched 375x1px light gray rectangle and a group of icons inside a frame that we’ll tackle a little later.

    底部菜单包含顶部和水平拉伸的375x1px浅灰色矩形,以及框架内的一组图标,稍后我们将解决。

The frame for the screen is a lot longer than shown in the example above so that the much longer content area can be scrollable. The header’s and the menu’s positions are fixed when scrolling, which is one of the reasons we can’t be using Auto Layout in this frame. The sections (2) and (3) have their constraints set to align to top and stick to the left and right edges so that if the frame was to be resized, they’d stick to their initial position and also fill out the screen horizontally the way they do now.

屏幕的框架比上面的示例显示的要长得多,因此可以滚动更长的内容区域。 滚动时标题和菜单的位置是固定的,这是我们不能在此框架中使用“自动布局”的原因之一。 将第(2)和(3)节的约束设置为与顶部对齐并固定在左右边缘,这样,如果要调整框架的大小,它们将固定在其初始位置并水平填充屏幕他们现在的方式。

One of the inner frames using Auto Layout

Now let’s look at the header element. It’s comprised of another four frames and this is where Auto Layout comes into play. They’re arranged vertically and there’s no spacing between any of them or any of the borders of the frame.

现在让我们看一下header元素。 它由另外四个帧组成,这是自动版式发挥作用的地方。 它们是垂直排列的,它们之间或框架的边框之间都没有间距。

  1. This is the typical status icon setup in iOS. This frame contains a group of elements locked inside a frame that is set centered both horizontally and vertically. The inner frame houses a left and center constrained text element and right and center constrained vector icons.

    这是iOS中典型的状态图标设置。 此框架包含一组锁定在水平和垂直居中设置的框架内的元素。 内部框架包含一个左和中心约束的文本元素以及右和中心约束的矢量图标。
  2. This frame contains a frame that again uses Auto Layout to take care of the elements inside of it — we’ll get to it later.

    该框架包含一个框架,该框架再次使用“自动布局”来处理其中的元素-我们将在稍后进行介绍。
  3. It’s just a simple spacer element, a frame that is 1px tall with a light gray background.

    这只是一个简单的间隔元素,一个高度为1px的框架,背景为浅灰色。
  4. This frame contains a left and center aligned icon and a horizontally and vertically centered text element.

    该框架包含一个左对齐和居中对齐的图标以及一个水平居中和垂直居中的文本元素。

Now since every frame I use in this project is a component, what this does is enable me to easily modify the content of the header element across many screens. I can now easily modify the height of all inner frames or add more inner frames.

现在,由于我在该项目中使用的每个框架都是一个组件,因此使我能够轻松地在许多屏幕上修改header元素的内容。 现在,我可以轻松地修改所有内部框架的高度或添加更多内部框架。

I often use this type of structuring when designing menus. In one of the bigger projects I work on we often use popup menus with a set number of options. The master component includes all these available options, but since each child instance of the popup menu uses 3–4 options at most, I just hide all the unnecessary ones. This way I use the same component across the entire system and just hide/unhide whatever menu options I need on a given screen. This technique could be used the same way in case of the header above — you could include all types of header elements used anywhere in the app and just hide/unhide the ones you need on a given screen.

在设计菜单时,我经常使用这种类型的结构。 在我从事的较大的项目之一中,我们经常使用带有一定数量选项的弹出菜单。 主组件包括所有这些可用选项,但是由于弹出菜单的每个子实例最多使用3–4个选项,因此我只隐藏了所有不必要的选项。 这样,我在整个系统中使用相同的组件,并且只隐藏/取消隐藏给定屏幕上需要的任何菜单选项。 对于上面的标题,可以以相同的方式使用此技术-您可以包括应用程序中任何位置使用的所有标题元素类型,而只在给定屏幕上隐藏/取消隐藏所需的标题元素。

Using Auto Layout in the content area frame

The content area frame contains cards (in the case of this particular project there are 5 cards) that are arranged vertically. The cards are 345px wide, and the horizontal padding is set to 15. That’s because I’m designing with a specific screen size in mind. I might be adding more cards, but I won’t be changing the screen’s size to anything other than 375px wide. We also needed some spacing between the cards themselves, so I set it to 32px. All cards use the same parent component whose inner elements (the image, the title etc.) I later modify accordingly.

内容区域框架包含垂直排列的卡片(在此特定项目中,有5张卡片)。 这些卡的宽度为345px,水平填充设置为15。这是因为我在设计时考虑了特定的屏幕尺寸。 我可能会添加更多的卡,但是我不会将屏幕的尺寸更改为375像素宽以外的任何尺寸。 我们还需要在卡本身之间留一些间距,因此我将其设置为32px。 所有卡都使用相同的父组件,其内部元素(图像,标题等)将在以后进行相应修改。

Digging even deeper, Auto Layout in the card frame

The card element is another component that exploits the Auto Layout feature.

卡元素是利用自动布局功能的另一个组件。

  1. This is the image frame. In case of an app like this you could set up a bunch of image components that you could then easily switch between. You could also set these images up as styles. Check out my article on how to create a simple design system to find out how.

    这是图像帧。 如果是这样的应用,您可以设置一堆图像组件,然后可以在它们之间轻松切换。 您也可以将这些图像设置为样式。 查看有关如何创建简单设计系统的文章,以了解如何进行。

  2. The title & delivery time frame consists of two elements — one aligned to left and center, the other one to right and center as well.

    标题和交付时间框架由两个元素组成-一个元素左对齐并居中,另一个元素右对齐并居中。
  3. This Auto Laid out frame uses Auto Layout for the two tags inside that are also using Auto Layout themselves. I’ll focus on this particular element in a bit.

    此自动布局框架将自动布​​局用于内部的两个标签,它们本身也使用自动布局。 我将重点关注这个特定元素。

Now again this kind of setup enables us to modify the contents of an individual card — modify, add or remove elements from it without negatively impacting the content area. Say your stakeholders decide it’d be a good idea to place a little description for every restaurant under its name, you just add a frame that houses a text element and you’re good to go — this design change is not only automatically populated to all your screen but also arranged according to the layout you’ve decided on.

现在,这种设置再次使我们能够修改单个卡的内容-修改,添加或删除其中的元素,而不会对内容区域造成负面影响。 假设您的利益相关者认为在每个餐厅的名称下放置一个简短的描述是一个好主意,您只需添加一个包含文本元素的框架,便可以了,这种设计更改不仅会自动填充到您的所有屏幕,还可以根据您确定的布局进行排列。

This is how tags are made with Auto Layout

The tags use the type of Auto Layout structuring I talked about earlier. As shown above, both tags stem from the same master component. The master component contains all types of elements used in a tag. The icon (replacable) and 3 editable text elements. The visibility of these elements is then configured accordingly. This way if you decide to change the font styling, the colors or the border radius of a tag, all you need to do is modify the settings of only one component.

标记使用我之前提到的“自动布局”结构的类型。 如上所示,两个标签都来自同一主组件。 主组件包含标签中使用的所有类型的元素。 图标(可替换)和3个可编辑文本元素。 然后相应地配置这些元素的可见性。 这样,如果您决定更改标签的字体样式,颜色或边框半径,则只需修改一个组件的设置即可。

One of my favorite examples of combining Auto Layout and constraints

This is one of my favorite examples of combining Auto Layout with constraints. At the top-most level, both frames contain a center-aligned frame. The center-aligned frames use Auto Layout to arrange elements they contain and depending on what’s going on inside, how many elements there are or how big they are, they expand or contract while retaining the correct position.

这是将自动版式与约束相结合的最喜欢的示例之一。 在最顶层,两个框架都包含一个中心对齐的框架。 居中对齐的框架使用“自动布局”来排列它们包含的元素,并根据内部发生的情况,有多少个元素或它们的大小来扩展或收缩,同时保留正确的位置。

There are many other way to combine Auto Layout with constraints, especially at a more complex level, where you need to accommodate for screen size changes as well as any changes inside the frames, but this short article should give you a general idea of what can be done using the features Figma provides.

还有许多其他方法可以将自动版式与约束结合起来,尤其是在更复杂的级别上,在这种情况下,您需要适应屏幕尺寸的变化以及框架内的任何变化,但是这篇简短的文章应该让您大致了解可以使用Figma提供的功能来完成。

Do you use Auto Layout in your designs? Would you do any of the things differently? Let me know in the comments below.

您在设计中使用自动版式吗? 您会以不同的方式做任何事情吗? 在下面的评论中让我知道。

翻译自: https://uxdesign.cc/figmas-auto-layout-in-action-d84c4688aca4

figma下载

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/274497.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Qt通过ODBC读取excel文件

之前替学校考试科用C Builder做过一个小的数据库工具,处理excel表格用的,现在想转换到Qt平台下来,在网上搜了搜有一些利用OBDC读取xls文件的教程: http://hi.baidu.com/kxw102/item/770c496d5736470ca0cf0f1d http://blog.sina.co…

真 · 三面面试官:运行 npm run xxx 的时候发生了什么?

昨晚没权限我只放了链接,今天联系开了白名单。昨天推文主要是为了投票,表明 Node.js 的重要性,有人评论是水文。今天重新转载下。欢迎继续点此去投票。投票显示有高达近80% 表示不太会开发脚手架,看来大多数人确实没有应用场景。可…

ovo svm_反思我在OVO担任远程产品设计实习生的时间

ovo svmIn a quiet bedroom accompanied only by the low humming of my laptop fan, I sat before a Google Hangouts meeting, and got to know my colleagues for the first time, unaware of the joy of a ride that was waiting for me at OVO Design.在一个安静的卧室里&…

最受读者喜爱的前端书 Top 15【留言送书】

最受读者喜爱的前端书Top 15JavaScript高级程序设计(第4版)| 中文版累计销量32万册,JavaScript“红宝书”全新升级 | 涵盖ECMAScript 2019,全面深入,入门和进阶俱佳 | 结合视频讲解配套编程环境,助你轻松掌…

图文结合简单易学的 npm 包的发布流程

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

拟态防御_拟态从未消失。 这就是为什么。

拟态防御Looking back on design languages, what Apple’s WWDC 2020 Keynote means for the future of design languages, and how we move on from here.回顾设计语言,Apple的WWDC 2020主题演讲对设计语言的未来意味着什么,以及我们如何从这里继续前进…

经常开发后台管理系统,如何提升自己?推荐~【留言送书】

大家好,我是若川。之前送过N次书,可以点此查看回馈粉丝,现在又和博文视点合作再次争取了几本书,具体送书规则看文末。Vue.js是一套用于构建用户界面的渐进式框架。与其他大型框架不同的是,它可以自底向上逐层应用。Vue…

lottie 动画_使用After Effects和Lottie制作网络动画而不会损失质量

lottie 动画A quick getting started guide快速入门指南 I recently took on a project where the team wanted to add some animated icons and a logo. Besides UX & UI design I am also a motion graphic designer so I took on the challenge of doing it with after…

最优秀的技术能力,是技术领导力!

最近和几个刚晋升为技术经理的朋友们约饭,席间互相吐槽职场中的喜怒哀乐: “开始带团队,既担心自己长时间不写代码技术功底退化,又怕手下人干不好,该怎么办?”“我都想回去敲代码了,拼命熬到管理…

模式匹配 怎么匹配减号_如何使您的应用导航与用户的思维模式匹配

模式匹配 怎么匹配减号One of the most interesting things about complex apps is that the navigation itself can be designed to support users’ mental model of the entire experience, thereby increasing engagement and decreasing potential user frustration.复杂应…

ux的重要性_颜色在UX中的重要性

ux的重要性When coming up with a new digital solution (desktop, mobile, app, whatever it may be) or any design concept, choosing the right colour palette is a crucial step that affects its success and outcome. The content, animations, copy and features may …

都2022 年了,你总不能还只会 npm i 吧?

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

matlab学习:图像频域分析之Gabor滤波

很多同学需要源文档,所以添加了下载链接,方便大家共同学习进步~ 本文下载链接:http://files.cnblogs.com/yingying0907/Gabor%E7%AC%94%E8%AE%B0.zip Gabor变换是D.Gabor 1946年提出的。为了由信号的Fourier变换提取局部信息,引入…

云谦:前端框架的趋势与实践

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

element-ui表单_每日UI挑战强加-登录表单(分步教程)

element-ui表单A step by step journey to create a good design from the daily UI challenge一步步走,从日常的UI挑战中创建出色的设计 内容 (Content) Introduction 介绍 Result demo 结果演示 Prerequisite 先决条件 Step by step guide 逐步指南 Conclusion 结…

GitHub 搜索技巧:如何更有效地搜索 issue、repo 和更多信息

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

js 绘画js 绘画路径_绘画是一种技能,而不是才能

js 绘画js 绘画路径重点 (Top highlight)November 2019… some decided to start rocking a moustache, others were obsessed with baby Yoda. I decided to commit to drawing something every single day. As a way to keep myself accountable I started posting daily on …

点击页面元素跳转IDE对应代码,试试这几个工具!

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…

shields 徽标_徽标不够用时如何设计应用程序图标

shields 徽标What’s the first thing that comes to mind when you think about a particular app? Chances are, it’s the icon. And it’s certainly the first thing a user notices when deciding what app to install — similar to studying the supermarket shelves.…

基于Sentry高效治理前端异常

大家好,我是若川。我持续组织了近一年的源码共读活动,感兴趣的可以 点此扫码加我微信 ruochuan12 参与,每周大家一起学习200行左右的源码,共同进步。同时极力推荐订阅我写的《学习源码整体架构系列》 包含20余篇源码文章。历史面试…