Allow for CSS Library Import

Hello everyone,

I've recently moved our custom JavaScript, previously located in the Advanced Settings, to a dedicated Git repository to use it as an external library. This change offers several benefits, including version control and the advantages of an integrated development environment (IDE). However, I’ve encountered an issue: I am unable to apply the same approach for custom CSS.

My primary request is to support CSS libraries to be added as libraries. I have already tried this, but unfortunately, it does not work as expected.

If integrating CSS libraries is not feasible, I believe it would be helpful to communicate this limitation on the Advanced Settings screen. Currently, it appears as though any library can be added, which might lead to confusion.

I’m assuming that behind the scenes, JS libraries are injected within the context of a script tag. If that’s the case, perhaps checking the file extension could allow for proper embedding of CSS files as well—though I may be oversimplifying the situation.

For reference, I’m referring to the following screen:

Thanks! :wave:

Thanks for the recommendation, @emozio! If I'm understanding your use case correctly, you should be able to import external CSS libraries via the Custom CSS input using @import.

Can you give that a shot and let me know if it works for you?

1 Like

Oh, right... that does seem like a clever workaround. I will try it out.
Thanks! :wave:

1 Like