正在加载视频...

视频加载失败

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,210 次观看 • 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,496 次观看 • 1 年前