Copy imported styles in one click.

it’d be great if you could duplicate all the imported styles in a single click; that way you can import a project that has the styles you’re looking for, but then you can de-import it once you’re done copying the styles

Sorry, I haven’t followed, do you mean to be able to import solely the tokens and mixins present in a project ?

this is the current capability to duplicate a style token; you can right click on each individual token to duplicate it; but there isn’t a way to do it in bulk; for instance if you were to right click on the bolded title and it had the ability to duplicate all

an added bonus; is that if a project has different global variables for color themes that have been set; that those would be able to be copied over too

https://spectrum.adobe.com/page/color-palette/#Latest-Spectrum-colors

as I’m thinking about it; I wonder if the whole Style Tokens feature might be something that could be outside of each project like the CMS is so that it is something that can integrated into the project

I see your point, I do believe that the global variants set could be copied over if they are matching screen variants. I see the point about having it outside projects as the CMS case, but this could lead to more complexity in project management

https://plasmiccommunity.slack.com/archives/C025BC1JJAX/p1702261300461849?thread_ts=1702079471.438869&cid=C025BC1JJAX

Yes, for the antd we use their algorithm to generate tokens based on the proposed theme in studio https://github.com/plasmicapp/plasmic/blob/c2f809ab768cb3c208c9b4f95c5dfe4b279f6ac3/plasmicpkgs/antd5/src/registerConfigProvider.tsx#L114

o0o0o; interesting; I did some digging and enjoyed looking through this code

https://github.com/ant-design/ant-design-colors/blob/master/src/generate.ts

seems like that is the code behind selecting a single color and multiple colors being generated from it like is demod here https://ant.design/docs/spec/colors#palette-generation-tool