Skip to content

[sync] Plugin generates an incorrect theme object shape that's not compatible with createTheme(...) #432

Open
@SaavanFreed

Description

@SaavanFreed

Steps to reproduce

Steps:

  1. Download SampleTheme.json
  2. Run createTheme(sampleThemeJson); in a basic project
  3. Verify the theme is not actually being applied

Current behavior

It uses the default theme object instead of the one generated by the plugin.

Expected behavior

  1. It should use the theme object I'm supplying or at the very least throw an error if it's not going to use it.
  2. The shape of the object generated by the plugin should match the TypeScript type for the MUI Theme object.

Context

I want to create a theme, export it using the Sync Plugin, and import it into my MUI app.

Your environment

Software Version
Design file version v5.?.?
Design tool Figma/Adobe XD/Sketch
etc.

Search keywords: MUI Sync Plugin, Design Kit

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something doesn't workfigmascope: syncIssues related to the Material UI Sync Figma plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions