Using antd tokens with codegen

Hi,

We’re trying the codegen option of Plasmic. Everything works fine, but we’ve noticed the styles weren’t working well. There are some style tokens referencing --antd-[attr] for example and these weren’t found anywhere in the generated theo file or anywhere

How do we get this working ?

Hi @future_design, I believe these styles will be resolved via an import of the antd npm package. When you deploy the app, do the antd components have the correct styling?

as of the latest antd version, there’s no “.css” file to import from antd package that would include these variables.

I had to manually get these variables (through theme.useToken()) and append them to my app’s heading, which worked but that’s a lot of manual step.