Variants vs variables

Поділитися
Вставка
  • Опубліковано 12 вер 2023
  • In this video, we break down the differences between variants and variables (plus modes), and determine when it makes sense to use each one. Follow along with the community file here www.figma.com/community/file/...
    00:38 The difference between variants and variables + modes
    01:49 When do I use each one? The simple answer
    02:47 When do I use each one? The more complex answer
    05:32 Example 1: Button states
    08:10 Example 2: Prototyping with logic
    10:36 Example 3: Small visual difference vs large visual difference
    12:34 Example 4: Will everything on the screen have a mode?
    Figma is free to use. Sign up here: bit.ly/3msp0OV
    ____________________________________________________
    Find us on ⬇️
    Twitter: / figma
    Instagram: / figma
    LinkedIn: / figma
    Figma forum: forum.figma.com/
    ____________________________________________________
    #Figma #Config #FigJam #Tutorial #NothingGreatIsMadeAlone #design #tips #DesignSystems #Config2023
  • Наука та технологія

КОМЕНТАРІ • 28

  • @kristinagroeger2839
    @kristinagroeger2839 5 місяців тому

    I spent an entire day trying to figure this out, thank you for the amazing demo.

  • @Gobothechairman
    @Gobothechairman 10 місяців тому +1

    Omg, thank you! I was really confused until now.

  • @r2figo
    @r2figo 10 місяців тому +1

    Thank you! And thanks for the snack :D

  • @rickyaznmartin
    @rickyaznmartin 10 місяців тому

    Thank you!!🎉 ❤🔥

  • @smart23033
    @smart23033 10 місяців тому

    thank you!

  • @ytRap007
    @ytRap007 10 місяців тому +4

    @Figma i hope we can set variable also for stroke and effects.

  • @gianlucacroci3120
    @gianlucacroci3120 7 місяців тому

    Thanks for the video! All the information is clear and well explained! I have a doubt about this: If I use variables instead of variants, how a developer would know that the component have several versions? Example, like Figma did at config, 9 buttons became 3 because of variables and changes were applied on padding basically

  • @hueyfreeman6215
    @hueyfreeman6215 29 днів тому

    "There's and easy-ish answer, sometimes". LMAO. Great video and explanation!

  • @eugostodecereal1
    @eugostodecereal1 10 місяців тому

    love you Figma

  • @JohnPeele
    @JohnPeele 10 місяців тому

    Totally unrelated question… how do you achieve the custom mask shape for your headshot in the video? OBS?

  • @ChandlerFaye
    @ChandlerFaye 10 місяців тому +7

    Will it be possible to import a CSV to set variables? I've been doing a lot of data entry since the launch and it would be neat if I could flow content in eventually. :)

    • @matissoM
      @matissoM 10 місяців тому

      Great question to post on the Figma Community Forum, I guess. 🙃

    • @andrewc3310
      @andrewc3310 Місяць тому

      SO true! Managing variables in the current UI is very manual and slow. Esp when I realize I should move a set of variables from one collection to another.

  • @vaanresvaanica
    @vaanresvaanica 10 місяців тому +6

    Please share the file ! that would even more helpful

    • @Figma
      @Figma  10 місяців тому +4

      added a community file! www.figma.com/community/file/1284206072590997466/Variants-vs-variables

  • @rjabrm
    @rjabrm 10 місяців тому +2

    Why don't you combine them together?

  • @twinnieee
    @twinnieee 10 місяців тому +6

    Really helpful! Do you mind sharing the file?

    • @Figma
      @Figma  10 місяців тому +2

      added a community file! www.figma.com/community/file/1284206072590997466/Variants-vs-variables

  • @welling1
    @welling1 10 місяців тому +5

    Unless the endgame is turning Figma into a no-code tool, it's adding unnecessary levels of complexity for a tool that still requires manual coding.

    • @platinumdynamite
      @platinumdynamite 10 місяців тому +3

      It really advances prototyping, though - when text inputs are implemented, it's going to be a lot easier to create realistic prototypes with actual interactivity rather than faking static states.

  • @romanvernik1968
    @romanvernik1968 10 місяців тому

    Can you please explain for mortal ones why I can’t use variables for 80% of properties like font name, font size, stroke width, shadow attrs etc?

    • @AlicePackard
      @AlicePackard 10 місяців тому +2

      Hey Roman, my understanding is that Figma is actively working on making variables compatible with the types of inputs you listed! Hopefully we'll see them by the end of 2023. I don't work for Figma so I can't say why they chose to release what they did, but my best guess as an outsider is they wanted to ease customers into this new feature with a limited set of options: color vars on just fills and strokes, but not yet shadow colors or gradient stops... numbers for dimension values and auto layout, but not yet typographic attributes like font size... and booleans and strings for prototyping and mode switching, but not yet direct binding to variants (there's a workaround with strings but i don't fully trust it's stability). This probably also allowed them to ship an open beta in time for Config, so there's no doubt a "hype" aspect too.

    • @romanvernik1968
      @romanvernik1968 10 місяців тому

      @@AlicePackard Yes, makes sense.

    • @md.junayedhossain7955
      @md.junayedhossain7955 10 місяців тому +1

      See the config 23 of figma, the ceo Dylan Field literally said they are working on the typography and much more will be coming at the end of this year. One day, Styles might become obsolete, thats my two cents.

  • @jinskim7615
    @jinskim7615 10 місяців тому +1

    1:50 Is Variants the same as Instances of Components?

    • @platinumdynamite
      @platinumdynamite 10 місяців тому

      Variants are properties in components. (different versions of the component)
      Variables are global properties.

    • @eugeniat5460
      @eugeniat5460 6 місяців тому

      My understanding is that Variants can be used used on Instances of Components

  • @jakecoventry9004
    @jakecoventry9004 9 місяців тому +3

    Only 4 modes are allowed, unless you pay for enterprise, which is ridiculous. Shame on you Figma.