Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70439

Add Global Mixins on Ionic v4

$
0
0

@Hanzo wrote:

Hi,

Is it possible to add custom global mixins on Ionic 4?

On Ionic v3 I define mixins on app.scss and use it on each page scss file.

app.scss

@import '../../../fluid-type';

@mixin bigger-text {
  @include fluid-type(28px, 42px);
}

page.scss

p{
@include bigger-text
}

On Ionic v4 I have tried to define it into variables.scss inside root and then use it into scss page files but the compilations fails because it not found the mixins

If I define the mixins in each scss page file it works correctly

Where should be defined this ‘global’ mixins to can use on each page scss?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>