<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lena Kaazik on Medium]]></title>
        <description><![CDATA[Stories by Lena Kaazik on Medium]]></description>
        <link>https://medium.com/@lena.kaazik?source=rss-508b0c3e7c1b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lvSCfRznwM_NkUeL</url>
            <title>Stories by Lena Kaazik on Medium</title>
            <link>https://medium.com/@lena.kaazik?source=rss-508b0c3e7c1b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:13:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lena.kaazik/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Upgrade your design system in Figma: add color variables in 15 minutes]]></title>
            <link>https://medium.com/@lena.kaazik/upgrade-your-design-system-in-figma-add-color-variables-in-15-minutes-68916862e3fa?source=rss-508b0c3e7c1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/68916862e3fa</guid>
            <category><![CDATA[figma-variables]]></category>
            <category><![CDATA[uxui-design]]></category>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[figma-tutorial]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Lena Kaazik]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 18:37:11 GMT</pubDate>
            <atom:updated>2023-07-05T08:16:23.778Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, Figma has introduced variables that everyone had been eagerly awaiting 🥳</p><p>This means that existing UI kits and design systems will need to be migrated to the new framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPz-v7-NQWa3_rSrXPS30Q.png" /></figure><p>This article is a step-by-step guide on how to quickly implement variables into existing color styles without the need to update all components and layouts to the new variables. Thanks to plugins, this can be done quickly and painlessly.</p><h3><strong>1. Let’s define a starting point</strong></h3><p>Below is an example of ready-made color styles from the library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUsW31xherzauLGYDIvPTg.png" /></figure><p>On the left side, the entire list of color styles is shown as they exist in Figma. The main image demonstrates how these styles work in the design system and in code, respectively.</p><p>We have basic colours (also known as aliases, basic tokens, primitives, etc.), brand palette (primary, foreground, background, etc.) and a group of styles related to components (as buttons, navigation bars, etc.). <br>The primary palette references the basic colours, while the component colours refer to the palette.</p><p>Variables in Figma allow you to create links between colours.</p><p>This is convenient primarily because when you change the basic colours, you won’t have to manually go through each style and update it.</p><p>With just one button, you can switch between light and dark modes.</p><p>Another huge advantage for the design system is that <strong>it will work in the same way as it does in code</strong>.</p><p><strong>Variables are located here:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCMJpRPFbmDCbhse-bMcYw.png" /></figure><p>Of course, nothing is automatically filled in there. You can go through the manual process of creating variables, but that’s not our preferred option.</p><h3><strong>2. Thanks to the plugins</strong></h3><p>To transfer all styles to variables, we can use the <a href="https://www.figma.com/community/plugin/1253585487427690087/Styles-to-Variables-Converter"><strong>Styles to Variables Converter</strong></a> plugin (thanks to Marcin Ukleja). There are likely other plugins available as well, but I used this one.</p><p><em>If you have a JSON file with colours, use a different </em><a href="https://github.com/figma/plugin-samples/tree/master/variables-import-export"><em>plugin</em></a><em> for that purpose.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kErLqOZMdzMUUpKZ14AtA.png" /></figure><p>Clicking the “<strong>Run</strong>” button instantly (without any loading, so don’t be alarmed if the plugin window closes immediately) creates a “Color Styles” collection from our styles in the Variables window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhTudM2H2qdz_yiguSBkxQ.png" /></figure><h3><strong>3. Create and edit collections</strong></h3><p>Let’s say you want to create three collections or groups of colours, as defined by your design system: basics, palette, and components. To achieve this, you would need to click the “Run” button in the plugin two more times to create three sets of color styles. Then, you can rename them accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C1-4I7pWvvzlu7ekoXwI5w.png" /></figure><p>Let’s remove the unnecessary color groups from each collection.</p><p>In the “tokens” collection, we will keep only the basic colours. Remove other unnecessary color groups.<br>In the “brand” collection, keep only relevant color groups (from brand palette) and remove others.<br>In the “component” collection, keep only the colours associated with components and widgets. There’s no need to create separate color variables for components unless it is necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvwFfbYVU4yiIS00qxVG8w.png" /></figure><p>If your basic colours are not organised into separate styles, you can use the <a href="https://www.figma.com/community/plugin/1048365292339473455">TokenMaster</a> plugin, which will group your color scheme based on the colours being used. These colours will serve as your basic tokens.<br>Create a collection called “tokens” and add these colors to it.</p><h3><strong>4. </strong>Establishing connections between variables.</h3><p>For the “brand” collection, we will modify the values for each variable: instead of using a hex code, we select the desired variable from the “tokens” collection in the Libraries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMwY5J7mPkS1P-ZTI5npRw.png" /></figure><p>For the “component” collection, we will follow the same process, but this time we will reference variables from the “brand” collection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aXI_jAZ2gXdL7Y_0IwhbHA.png" /></figure><h3><strong>5. Add dark mode</strong></h3><p>To enable theme switching, let’s add a new <strong>variable mode</strong> to the “brand” collection. We will rename the existing modes to “Light” and “Dark” (or add additional modes if there are multiple themes). Then, we will reassign the colors to the appropriate tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PBhEPj2N_v_E4Pp8uzbUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ssz21pe5woZVas7IRphGxA.png" /><figcaption>In the interface, theme switching can be achieved with a single click.</figcaption></figure><h3><strong>6. </strong>Assigning variables to styles</h3><p>Congratulations! We have set up variables, and now we can use them in existing styles.</p><p>Go to the style you want to edit. In the style editor, instead of using a hex value, choose the desired variable. <br>E.g., for the “fg-default” style, choose the same variable from the “brand” collection.</p><p>Apply variables to all styles where applicable, except for gradients.</p><p>By assigning variables to existing styles, you ensure that any changes made to the variables will be automatically reflected in the styles, providing a centralised and efficient way to manage and update your design system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kb7ApF1sTQZ24176dXrLCg.png" /></figure><p>If you have decided to apply variables only, use the <a href="https://www.figma.com/community/plugin/1076733710017310027">Destroyer</a> plugin to reset color styles to the variables they refer to: select the components and click the Run — Destroy Color Styles button.</p><h3><strong>7. Publishing the library</strong></h3><p>If you don’t want variables to appear in the color picker panel and potentially confuse designers in other Figma files, you can choose not to publish them.</p><p>In the publication window check the “Hide when publishing” option for variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*roV-yBoHt5zkQFXLmRZWLA.png" /></figure><p>If you have decided to use only variables in your library, it is recommended to publish the collections. However, it is better to hide the collection of basic tokens, thus preventing any unintentional use in layouts.</p><p>I hope this information is helpful 😊</p><p>Thank you for reading, and if you have any more questions, feel free to ask!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68916862e3fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Figma: Styles → Variables за 15 минут]]></title>
            <link>https://medium.com/@lena.kaazik/figma-styles-variables-%D0%B7%D0%B0-15-%D0%BC%D0%B8%D0%BD%D1%83%D1%82-b768d4117df6?source=rss-508b0c3e7c1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b768d4117df6</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[figma-tutorial]]></category>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Lena Kaazik]]></dc:creator>
            <pubDate>Sat, 24 Jun 2023 21:42:52 GMT</pubDate>
            <atom:updated>2023-07-05T08:06:20.463Z</atom:updated>
            <content:encoded><![CDATA[<p>На днях прошла конференция Figma, где были представлены долгожданные токены (переменные) — <strong>variables</strong> 🥳 <br>А это значит, что придётся существующие ui-kit и дизайн-системы переводить на новые рельсы.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Gg-ef16xoj6AePsltfwXw.png" /></figure><p>Эта статья — пошаговая инструкция, как быстро внедрить переменные в <strong>уже существующие цветовые стили</strong> <br>без необходимости обновлять все компоненты и макеты на новые переменные. Благодаря плагинам это можно сделать быстро и безболезненно.</p><p>Итак, начинаем.</p><ol><li><strong>Определим стартовую точку</strong></li></ol><p>Ниже — пример готовых цветовых стилей из библиотеки.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUsW31xherzauLGYDIvPTg.png" /></figure><p>У нас есть базовые цвета basic (они же alias, basic tokens), основные цвета (primary, foreground, background colors и др.) и группа цветов, относящихся к компонентам (buttons, bottom-bar). Основная палитра ссылается на базовые цвета, цвета компонентов — на палитру.</p><p>Variables в Figma позволяют делать связи между цветами. <br>Это удобно, прежде всего, тем, что при смене базовых цветов не нужно будет проходиться по каждому стилю и вручную его менять. <br>По одной кнопке можно переключаться между темами.<br>И огромный плюс для дизайн-системы — будет работать так же, <br>как и в коде.</p><p><strong>Где эти ваши вариаблсы? </strong>А вот тут:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCMJpRPFbmDCbhse-bMcYw.png" /></figure><p>Конечно же, автоматически там ничего не заполнено. Можно упороться и вручную заводить переменные. Но это не наш вариант.</p><p><strong>2. Да хранит вас плагин!</strong></p><p>Чтобы перенести все стили в variables используем плагин <a href="https://www.figma.com/community/plugin/1253585487427690087"><strong>Styles to Variables Converter</strong></a> (спасибо, Marcin Ukleja), скорее всего, есть уже и другие плагины, но я использовала этот.</p><p><em>Если у вас есть json с цветами — то используйте другой </em><a href="https://github.com/figma/plugin-samples/tree/master/variables-import-export"><em>плагин</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kErLqOZMdzMUUpKZ14AtA.png" /></figure><p>Нажимаем на кнопку <strong>Run</strong> и моментально (нет никакого лоадинга, <br>не пугайтесь, что сразу плагин закрывается) в окне Varibles создается коллекция Color Styles из наших стилей.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhTudM2H2qdz_yiguSBkxQ.png" /></figure><p><strong>3. Создаем и редактируем коллекции</strong></p><p>Допустим, я хочу создать 3 коллекции-группы цветов, какие и были заложены дизайн-системой: базовые, палитра и компоненты. Поэтому еще 2 раза нажимаем на кнопку Run в плагине, чтобы <br>в итоге получилось 3 набора color styles, и переименовываем их.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C1-4I7pWvvzlu7ekoXwI5w.png" /></figure><p>Удалите из каждой коллекции ненужные группы цветов: <br>в токенах остаются только базовые цвета, в палитре — основные цвета, в компонентах — относящиеся к компонентам, виджетам. <br>Необязательно для компонентов заводить отдельные цвета-переменные, если нет в этом необходимости.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvwFfbYVU4yiIS00qxVG8w.png" /></figure><p><em>Если у вас базовые цвета не вынесены в отдельные стили, используйте плагин </em><a href="https://www.figma.com/community/plugin/1048365292339473455"><em>TokenMaster</em></a><em>, который сгруппирует вашу цветовую схему по использующимся цветам — они и будут базовыми токенами. <br>Создайте коллекцию tokens и добавьте в нее эти цвета.</em></p><p><strong>4. Устанавливаем связи между переменными</strong></p><p>Для коллекции <strong>brand</strong> меняем значения для каждой переменной: вместо hex выбираем нужную переменную из коллекции <strong>tokens</strong> <br>в Libraries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMwY5J7mPkS1P-ZTI5npRw.png" /></figure><p>Для коллекции <strong>component</strong> делаем то же самое, только ссылаемся уже на переменные из <strong>brand</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aXI_jAZ2gXdL7Y_0IwhbHA.png" /></figure><p><strong>5. Добавляем тёмную тему</strong></p><p>Чтобы была возможность переключения между темами, добавляем новый <strong>variable mode</strong> в коллекции <strong>brand.<br></strong>Переименовываем modes в Light и Dark, если несколько тем — то добавляем ещё mode. И переназначаем цвета на нужные токены.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PBhEPj2N_v_E4Pp8uzbUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ssz21pe5woZVas7IRphGxA.png" /><figcaption>В интерфейсе переключение между темами происходит по одному клику.</figcaption></figure><p><strong>6. Назначаем переменные в стили</strong></p><p>Поздравляю! Мы завели переменные и теперь можно их использовать в существующих стилях.</p><p>Заходим в редактирование стиля и вместо hex значения выбираем нужную variable (для стиля fg-default выбираем точно такую же переменную из коллекции brand fg-default). Переменные можно назначить на все стили, кроме градиентов.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kb7ApF1sTQZ24176dXrLCg.png" /></figure><p>Если вы хотите переходить на использование только переменных, используйте плагин <a href="https://www.figma.com/community/plugin/1076733710017310027">Destroyer</a>, чтобы сбросить цветовые стили до переменных, на которые они ссылаются: выделите компоненты и нажмите на кнопку Run — Destroy Color Styles.</p><p><strong>7. Публикуем библиотеку (или нет)</strong></p><p>Если не хочется, чтобы в других файлах фигмы переменные отображались в панели выбора цветов и пу(т/г)али дизайнеров — то можно их не публиковать, убрав выбор в окне публикации и нажав на Hide when publishing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*roV-yBoHt5zkQFXLmRZWLA.png" /></figure><p>Если вы решили использовать в библиотеке только переменные — публикуйте коллекции. Коллекцию базовых токенов лучше скрыть, чтобы и места не занимали и не использовались в макетах.</p><p>Надеюсь, немного облегчила рутину 😊 Спасибо за прочтение!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b768d4117df6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>