Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

10 Kommentare

Profilbild von luis.
luis.vor 2 Jahren

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

Profilbild von luis.
luis.vor 2 Jahren

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

Profilbild von luis.
luis.vor 2 Jahren

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

Profilbild von luis.
luis.vor 2 Jahren

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

Profilbild von luis.
luis.vor 2 Jahren

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

Profilbild von luis.
luis.vor 2 Jahren

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

Profilbild von luis.
luis.vor 2 Jahren

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 😅

Profilbild von luis.
luis.vor 2 Jahren

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

Profilbild von Nathan A Curtis
Nathan A Curtisvor 2 Jahren

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 :)

Profilbild von luis.
luis.vor 2 Jahren

Yesss! Love it

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