How to use SCSS for plugins

I heard on one of the videos that there is going to be a support for SCSS.
Is there a proper way of installing it for the plugins library or am I supposed to install sass for each plugin?

BTW: I’m asking this also because { stylesFactory, useTheme } from '@grafana/ui' are marked as depricated.
Also: both npx-create-new-plugin and the starter-panel repo are still using these, so I’m pretty confused here… :slight_smile:

1 Like

Since Grafana 8.0, the preferred way to style your plugins is using emotion and the useTheme2() function from the @grafana/ui package.

You can read more in the style guides for Styling and Theming.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.