Is the load order of webflow.css and .webflow.css significant in a Webflow layout used in a Meteor app?

Published on
September 22, 2023

In a Webflow layout used in a Meteor app, the load order of webflow.css and .webflow.css files is indeed significant. Here's why:

  1. webflow.css - This is the main Webflow CSS file that contains all the styles for your Webflow layout. It includes default styles, classes, and keyframe animations provided by Webflow. It should be loaded before any custom CSS so that the custom CSS can override or modify these default styles if needed.

  2. .webflow.css - This is the file that Webflow generates specifically for your project, based on the styles you configure in the Webflow Designer. It contains all the custom styles you define in Webflow, including class styles, interactions, and breakpoints. This file should be loaded after webflow.css so that it can take priority over the default styles and properly apply your custom styles to the elements.

The recommended load order for these CSS files in a Meteor app is as follows:

  1. webflow.css: This file should be loaded first in your HTML document's head section. You can add it by linking to the Webflow CDN or by hosting it locally if you have exported the code from Webflow.

  2. .webflow.css: This file should be loaded after webflow.css in the head section as well. You can include it by linking to the file that Webflow generates for your project, either by hosting it locally or by using a CDN.

By following this load order, you ensure that the default Webflow styles are applied first, and then your custom styles from Webflow take precedence. This way, your layout will render correctly with all the desired styles and interactions intact.

Remember to also include any additional custom CSS files or frameworks (such as Bootstrap or Materialize) after both webflow.css and .webflow.css to maintain the proper cascade of styles.

In conclusion, the load order of webflow.css and .webflow.css is significant in a Webflow layout used in a Meteor app. webflow.css should be loaded first, followed by .webflow.css, to ensure that default styles are applied before custom styles.

Additional Questions:

  1. How do I include Webflow CSS files in a Meteor app?
  2. Can I edit the generated .webflow.css file in a Meteor app?
  3. Are there any considerations for load order when using Webflow with other CSS frameworks in a Meteor app?