Use calc() (or equivalent) when defining values of Custom Variables

Allow the use of the calc() function when defining the value of custom variables. For example:

  • Define Variable A as 100vw

  • Define Variable B as 20px

  • Define Variable C using calc(var(--Variable-A) - var(--Variable-B)), resulting in 100vw - 20px


  • Callum Brown
  • Jul 30 2024
  • Peter Nowell commented
    12 Dec 15:00

    I constantly rely on this when building sites with code, and I'm surprised Webflow doesn't support it yet!