Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48984

Where do I put sass variables for my own components?

$
0
0

Hi,

this should be obvious, but it sorta isn’t :slight_smile: I want to use some sass variables that would be used in several of my angular/ionic 5 custom components. I tried putting them in global.scss and theme/variables.scss like so:

$attachment-size-thumbnail-sq-small: 18vh;

but I still get

SassError: SassError: Undefined variable: "$attachment-size-thumbnail-sq-small".
        on line 62 of src/app/components/camera-window/camera-window.component.scss
>>   height: $attachment-size-thumbnail-sq-small;

as if they weren’t there

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48984

Trending Articles



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