How can I use stylesheet and library from NPM

Hi guys,

I want to use the external stylesheet and “GitHub - thomas-lowry/figma-plugin-ds: A small lightweight design system for use in Figma Plugins” in our Figma UI. I have tried to include the stylesheet with the Link tag but not working. Also, I have installed the package using npm but it is not working.

How can I use the stylesheet in a separate file as well, I have created on CSS file in the assets folder and tried to include using the link tag still it’s not working.

Also,I how can I use images like svg, png, jpg, etc in the design?
Any help would be appreciated.

Thanks

1 Like

Can you please suggest any example that how to use it? Also, how can I import the installed packages inside the file?

I don’t want to host a file. I want to use external GitHub - thomas-lowry/figma-plugin-ds: A small lightweight design system for use in Figma Plugins and I want to import the style and js so, where I can import the style and js from the node_modules in our plugin?

Please give any example that would be very helpful for me.

Can I use this GitHub - thomas-lowry/figma-plugin-ds: A small lightweight design system for use in Figma Plugins design library in my plugin?

There I want to use the component and class in my UI HTML file.

Did you follow the instructions that are described in the above repository and the links I sent you?
Have you configured your bundler?
Have you run a build to inline all the required files in your HTML file?

Stil not, will do it and let you know.