Importing Stylesheets

If you already have a stylesheet (CSS file) somewhere else and want to reuse it in your current project, you can import that stylesheet.

How to Import a Stylesheet

  1. Select Project > New > Stylesheet. The Add File dialog opens.
  2. Select New from existing and click The browse ellipsis button opens to more options..
  3. Find and select the stylesheet file that you want to import.
  4. Click Open. The Source File field now contains the path to the file that you are importing. Also, the name of the file is displayed in the File Name field.
  5. In the Folder field, you can leave it as (root folder), or you can choose a folder for the stylesheet. Depending on the type of stylesheet, you might select Resources > Stylesheets or Resources > Branding.
  6. If you want to give the stylesheet a different name than that for the imported file, click in the File name field and replace the text.
  7. (Optional) If you want to apply condition tags to the file, expand the Attributes section at the bottom of the dialog. Next to the Condition Tags field, click The browse ellipsis button opens to more options. and select the conditions you want to apply. Click OK. See Applying Conditions to Content.
  8. (Optional) If you want to apply file tags, expand the Attributes section at the bottom of the dialog. Next to the File Tags field, click The browse ellipsis button opens to more options. and select the file tags you want to apply. Click OK. See Associating Tags With Files.
  9. Click Add. The stylesheet is added to the Content Explorer and opens in an editor (i.e., the Stylesheet Editor or the Branding Editor).

Note You can also import individual styles from another stylesheet. See Importing Styles.

Note As an alternative to importing single files from another location, you can import linked files from a Flare source project using a featured called "Global Project Linking." This is different than a simple import process, because in this case, the imported files remain linked to the source project. This lets you make future updates to those files in just one place—in the parent project. When you perform ongoing imports using your previous settings, Flare recognizes changes to the source files. Therefore, the new files can be brought over, replacing the outdated ones. See Global Project Linking—Importing Files From Other Projects.