Replies: 1 comment 4 replies
-
Dear @rozhok, just add |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My project uses tailwindcss-rails, and I want to add a lightbox to the app. I found a stimulus wrapper for it at https://github.com/stimulus-components/stimulus-lightbox, and I can add its JS files using importmap, which works fine.
However, I’m struggling to understand how to add the plugin’s CSS files. I added
@import 'lightgallery/css/lightgallery';
at the top of theapplication.tailwind.css
file, and it added the lightbox styles. However, I encountered problems with fonts because they were referenced as relative files inside the CSS, and they weren’t processed.What is the correct way to handle situations like this?
Beta Was this translation helpful? Give feedback.
All reactions