345
Views
4
Comments
Solved
How do you import Stylesheet?
Question

My client have existing stylesheet that they use in the company. Is there a way to import it in or just simply do a copy-paste onto the application stylesheet?

Checked this tutorial on CSS Masterclass but it doesn't have it.

mvp_badge
MVP
Rank: #134
Solution

Hello!

You can add the CSS file as resource and user @import url (/<modulename>/<filename>.css) in your styleshet, liket his example:



You can see more info here: https://teamtreehouse.com/library/importing-style-sheets-with-import


Hope it helps!


BR,

Luis

Thanks. Will try that out!

Question though, so I can import the CSS and then as long as the theme (in the producer module e.g. Theme eSpace) is used on that Front End app (consumer eSpace), I can use the classes from that imported CSS?