Option to update/replace existing styles when pasting a class between projects

Currently, if you paste a class from the source project that has the same name as an existing class in the destination project, Webflow:

  • Compares the style properties for the two classes to see if they are the same
  • If so, it uses the existing class in the destination site rather than create a new one
  • If not, it creates a new class in the destination site with the pasted style properties and a unique name

 

However, in some cases -- such as using one project as a 'master component template' that you paste items from into different projects for use -- you might actually want to override the styles with that same class name in the destination sites when pasting, to update them for all elements that already have them in the site.

When there is a class name conflict with different style properties, it would be nice to have the flexibility to choose whether to add a new class or update/replace the existing class' styles when pasting between projects

  • Kyle Kilat
  • Apr 10 2018
  • Christoffer Furnes commented
    15 Jul 07:13am

    Just a note on original post, there should also be an option to 'Use existing class' too!

    • Add (and name) a new class

    • Update/replace existing class

    • Use existing class

  • Christoffer Furnes commented
    15 Jul 06:45am

    Strange that this idea dont have more votes. It would make it extremely more efficient to build sites based on pre-made modules.

  • Taime Koe commented
    5 Mar, 2020 05:16am

    Definitely need this for a master style guide to be useful, especially since my team has multiple projects.

  • D2C commented
    18 Apr, 2018 01:02pm

    Wow, you need that a lot. I thought they would already do with this option.

    for us, we need to have 3 options:
    1. maintain the attributes of the existing class
    2. replace with attributes of the copied class
    3. create a new class (current)

  • +14