Search
 
SCRIPT & CODE EXAMPLE
 

CSS

scss how to use a variable in entire angular project

/*in the src/_variables file:*/
$primary-color: blue;

/*in the component you want to use the variable:*/

@use 'src/variables' as c;

.container-fluid {
  text-align: center;
  background-color: c.$primary-color;
}
Comment

PREVIOUS NEXT
Code Example
Css :: cypress check css property value 
Css :: css select all immediate children 
Css :: rotate animation css 
Css :: how to make a dotted hr in css 
Css :: add expanding underline on page load css 
Css :: css shado on image 
Css :: set visibility css 
Css :: css text overflow 
Css :: background-attachment 
Css :: textarea scale to content 
Css :: html disabled hover style 
Css :: css example 
Css :: check ssh port 
Css :: fonmt family css 
Css :: background linear gradient opacity css 
Css :: box-sizing border-box vs content-box css 
Css :: hide the scrollbar in css if not overflow 
Css :: CSS adding something next to a picture 
Css :: css clippath 
Css :: font stack css 
Css :: overflow-y scroll css 
Css :: how to remove default padding of div 
Css :: tailwind css absolute pin 
Css :: responsive flexbox 
Css :: transform on click 
Css :: line icon 
Css :: text sliding css 
Css :: firefox-scroll-css 
Css :: matsnackbar background color 
Css :: how use befor after for image 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =