Loading video...

Video Failed to Load

Go Home

Just hit publish on a new guide! It's called "Variable mapping and design system structure" and you can grab it here: It's hopefully a way to provide some guidance on how to structure your variables and collections according to how your system is set up

69,440 views • 2 years ago •via X (Twitter)

10 Comments

luis.'s profile picture
luis.2 years ago

Included: 1️⃣ The introductory slides from Config's session 2️⃣ A visual showing the relationship between (colour) variables and styles 3️⃣ Setup for single brand 4️⃣ Setup for multi-brand, shared primitives 5️⃣ Setup for multi-brand, different primitives

luis.'s profile picture
luis.2 years ago

First: Colour variables and styles I prefer to keep styles, "feeding" them with variables It sets up us for composite tokens and is more future proof (right now!) Primitive variables ➡️ Semantic variables ➡️ Semantic styles Last step may be repetitive, but it's worth it

luis.'s profile picture
luis.2 years ago

Next up is the approach for a single brand This naming convention is the approach for all system setups, but the difference here is that we have a single foundations file

luis.'s profile picture
luis.2 years ago

Next: Multiple brands, but the same primitive foundation This is a complex layout, but essentially: • A central primitives file • Each brand has their own semantic foundations file • The primitives are fed into each foundations file

luis.'s profile picture
luis.2 years ago

Finally: multiple brands, independent primitives As you'd expect, this means more files! If we have no crossover between brands, it makes sense to keep things distinct These could live in different workspaces, different teams, or within the same project, it's up to you

luis.'s profile picture
luis.2 years ago

Lastly, there's a playground section where you can build your own diagrams rather than trying to fiddle around with mine!

luis.'s profile picture
luis.2 years ago

Hotfix! @alexiadanton noticed that I had a bug in the variable names We should avoid using slashes in variable named (e.g. red/300) and introduce hyphens (e.g. red-300) Sorry, but you'll have to duplicate this one again 😅

luis.'s profile picture
luis.2 years ago

And available in Spanish! Thank you @imandresochoa for translating the description 🙌

Nathan A Curtis's profile picture
Nathan A Curtis2 years ago

This may help, too: an automated x-ray to verify how you've applied variables to the anatomy, properties and now modes of your features :)

luis.'s profile picture
luis.2 years ago

Yesss! Love it

Related 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,495 views • 1 year ago