użycie sass
// style.scss
@use "src/corners" as c;
.button {
@include c.rounded;
padding: 5px + c.$radius;
}
yashu mastrose
// style.scss
@use "src/corners" as c;
.button {
@include c.rounded;
padding: 5px + c.$radius;
}
Syntactically Awesome Stylesheets
/*
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
*/