Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Joey Banks
Joey Banksvor 3 Jahren

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. 🙏

Profilbild von Joey Banks
Joey Banksvor 3 Jahren

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. ⚡

Profilbild von Joey Banks
Joey Banksvor 3 Jahren

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

Profilbild von Joey Banks
Joey Banksvor 3 Jahren

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

Profilbild von Yann-Edern Gillet
Yann-Edern Gilletvor 3 Jahren

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

Profilbild von Josh Loh
Josh Lohvor 3 Jahren

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

Profilbild von Denislav Jeliazkov
Denislav Jeliazkovvor 3 Jahren

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

Profilbild von davy fung
davy fungvor 3 Jahren

@figma @dotdude Quality investigation like always. 🥰

Profilbild von Mordechai Hammer
Mordechai Hammervor 3 Jahren

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

Profilbild von Frank Sera
Frank Seravor 3 Jahren

@figma @dotdude 🤜🤛

Ähnliche Videos

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 Aufrufe • vor 1 Jahr