Search code examples
sassstylesheetionic3styling

Using the app.scss file in an ionic 3 project


Today I've started using ionic 3 for the first time. I don't really know anything about it, so that's why I wanna learn how it works.

I've created a sidemenu project and now I want to add some global styling in my app.scss, so I can use it in any page of my project. Well, I've added simple styling to my app.scss but nothing happens on my page. Everything still looks the same. Now my question is: Do I have to import the app.scss somewhere? If so, where? Or how can I use the app.scss?

I thought it would happen automatically, that my page uses also the classes of my app.scss and not only of it's own stylesheet, but to me it seems like it doesn't even know the classes of the app.scss.


Solution

  • within the app.scss you can create class use them normally as class="class-name" on html.

    Hope I helped you.