Skip to main content
June 6, 2023
Question

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

This topic has been closed for replies.

6 replies

tank666
June 6, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
June 6, 2023

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.

tank666
June 6, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
June 6, 2023

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.

tank666
June 6, 2023

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?

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
June 6, 2023

Stil not, will do it and let you know.