Загрузка видео...

Не удалось загрузить видео

На главную

After so much experimentation and playing around with variables in Figma, thanks to chad, I think I finally found the most *efficient and easy* way to migrate existing component libraries from styles to variables. 🎛️⚡

124,229 просмотров • 3 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Joey Banks
Joey Banks3 лет назад

By using the Styles to Variables Converter plugin, which specifically binds variables *back* to the original style definition, it's then super easy to take an existing design and by simply detaching all styles, you're left with *only* variables. 🙏

Фото профиля Joey Banks
Joey Banks3 лет назад

Using the Destroyer plugin will help make this all a bit faster, too, which allows you to select everything in a file and, with a click, unlink all styles—leaving only variables in use. ⚡

Фото профиля Joey Banks
Joey Banks3 лет назад

If you're curious to watch a more complex example, here's an entire tutorial from the @figma team: ✨

Фото профиля Joey Banks
Joey Banks3 лет назад

If you haven't already converted your libraries, IMO, this is the way. With just a few actions, hours of manual conversion is saved. 🙌

Фото профиля Yann-Edern Gillet
Yann-Edern Gillet3 лет назад

@figma @dotdude If you're looking for a plugin that handles modes and binds styles to variables once created, my plugin can help you ⚡️

Фото профиля Josh Loh
Josh Loh3 лет назад

@figma @dotdude I just watched that video today too! Makes so much sense

Фото профиля Denislav Jeliazkov
Denislav Jeliazkov3 лет назад

@figma @dotdude This will make life so much easier. Thanks for sharing

Фото профиля davy fung
davy fung3 лет назад

@figma @dotdude Quality investigation like always. 🥰

Фото профиля Mordechai Hammer
Mordechai Hammer3 лет назад

@figma @dotdude Thanks for surfacing — we’ll probably follow suit.

Фото профиля Frank Sera
Frank Sera3 лет назад

@figma @dotdude 🤜🤛

Похожие видео

CSS variables are live and they are POWERFUL. Now Live on Product Hunt 🚀 ➡️ Create a design system "So you can stay consistent and build much quicker." Define global styles like colors, gradients, sizes, and box shadows. ➡️ Use your variables everywhere "So you never have to manually enter a border color again." You're not limited to just sizes, colors, and font families. Use variables in gradients, box shadows, transforms, and more! ➡️ Start with libraries like Open Props, expertly crafted CSS variables "So you can use a tried and true system, and so we can standardize our Projects." Because there are no abstractions, you can use existing CSS variable libraries like Open Props, an expertly crafted library of CSS variables, and the recommended starting point in Webstudio. ➡️ Create complex micro-interactions "So when you hover a link, you can change any children's styles." CSS variables go beyond reusability! You can define variables anywhere in the navigator, such as on a link, and modify the variables on hover. Then, you can use those variables on the children to create complex micro-interactions! ➡️ Design and build simultaneously "So when deciding that perfect border color, you can arrow through all your options." Experimenting on the canvas just got a whole lot better. Now, you can arrow through your variables and see them rendered on the canvas to see which works best. ➡️ Change variable by breakpoint "So you can make the variables look great, no matter the screen size." CSS variables in Webstudio use the same UI as the rest of your styles, enabling breakpoints to work the same way. ✨ Building with design systems gives a HUGE boost in speed, consistency, and maintainability.

Webstudio

15,497 просмотров • 1 год назад