Open iamdangavin opened 1 year ago
This depends on the bundler you are using as stated in the example you are referencing:
//You could also inport the css via a CSS Loader in your JS environment (refer to syntax of whatever loader you are using) import styles
For example, some tools will require a side effect import like:
import 'figma-plugin-ds/dist/figma-plugin-ds.css'
Am I missing something? You have
import styles from 'figma-plugin-ds/dist/figma-plugin-ds.css'
listed in the documentation, but that file isn't a module.css file so it comes backundefined
if youconsole.log
thestyles
export and if you try and use it in your code with{styles.button}
or something it throwscaught TypeError: Cannot read properties of undefined (reading 'button')