I'd like to define my own color variables in my SCSS, but how?
I checked this website and did everything that is described there.. but it doesn't work.
I have installed a preprocessor already!
Furthermore I tried to create a color-map and access the color with map-get.. doesn't work either.
colors.scss file
$yellow_100: #FFC819;
style.scss file with a colors.scss import
h1 {
color: $yellow_100;
}
I also tried this:
colors.scss file
$colors: (
color: #FFBB00
);
style.scss file
h1 {
color: map-get($colors, color);
}
Neither of them works.
<h1>Test</h1>
colors.scss$yellow_100: #FFC819;
style.scssh1 { color:$yellow_100; }
– Stagnerstyle.css
file? And maybe astyle.min.css
as well? – Catchallscss
files into one bigcss
file - this is what you then link in your HTML. There are many ways that you can compile your SASS - but since you're using VS Code, you can just get a free extension that'll do it for you. – Catchall