Skip to content

[TB] Export and Import of theme gives inconsistent CSS #1091

@aaronreed708

Description

@aaronreed708

Problem/Concern

Found by Matt Mills at Discover

If a user creates a new design system using Theme Builder and saves off the generated CSS, and then imports the design system and exports its generated CSS, they don't match.

Steps to recteate:

Generate initial CSS

  1. Load https://try.a11y-theme-builder.finos.org/
  2. Click on Your Design Systems from the left Nav
  3. Click the button to create a new design system. Give it a name, like "Default1".
  4. Select an initial color and give it a name
  5. Select values for all of the fields for your default color theme
  6. Click Show Theme button. Click ok to acknowledge that the color theme will not be modifiable in the future.
  7. Click on the Save button from the header
  8. Click on Code from the tab bar
  9. Click on CSS from the left nav bar to see the generated CSS
  10. Click on the Download button to save the generated CSS to your local filesystem.

Backup design system

  1. Click on the Logo from the header bar
  2. Click on Your Design Systems from the left Nav
  3. Find the card for the design system that you just created (e.g. "Default1")
  4. From that card click on the 3 dots to get a dropdown menu with actions
  5. Select Download Design System Data to save the design system to your filesystem

Load in previous design system

  1. Click on the Logo from the header bar
  2. Click on Your Design Systems from the left Nav
  3. Click on the Import a Design System button
  4. Navigate to the design system that you just downloaded to import it into Theme Builder under a different name.
  5. Double click on the card for the newly created design system to load it.
  6. Click on Code from the tab bar
  7. Click on CSS from the left nav bar to see the generated CSS
  8. Click on the Download button to save the generated CSS to your local filesystem.

Compare the initially saved CSS to this most recently saved CSS. They should be identical because they came from the same design system. But they are not.

Proposed Solution

The generated CSS from a loaded design system should match the CSS generated when the same design system is loaded onto the same or different instance of Theme Builder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions