Answers for "sass & scss"

CSS
2

sass css

NOTE: you must have installed NPM Package manager if you wanna continue with this method!

EXAMPLE,use --watch in case you want to get it compiled in real time! :

FIRST: install SASS in your project, run this: npm install -g sass 

SECOND, run this:
sass --watch scss/styles.scss css/styles.css
Posted by: Guest on January-26-2022
0

sass example html

/*
SASS default file *.scss must be converted to *.css to use in html

Installation: 
npm install -g sass
*/
<head>
	<link rel="stylesheet" href="styles.css">
</head>
/* create new file styles.scss and fill */
$myColor: red;

body {
  color: $myColor;
}
/*
in terminal run: sass --watch styles.scss styles.css

info from https://sass-lang.com/install
*/
Posted by: Guest on January-15-2022

Browse Popular Code Answers by Language