Trying to use SASS in my project I wrote a SCSS and then changed it to CSS.
I have made a SCSS,
$ primary caller: # D92231; Body {$ primary color: # ccc; Background: $ Primary Caller; } P {background-color: $ primary collar; } Ui-btn {background color: $ primary-color; }
Convert that SCSS to command by CSS,
sass-convert style.css style.scss
> Lastly I got CSS. Generated CSS,
$ Primary Color: # D92231 Body Background: $ Primary Color P Color: $ Primary Color URI-btn Background-Color: $ Primary Color
I added it to my html page but there is no effect. Where am i going
Generating CSS is not actually a sass in the form of CSS Convert
actually Sass does not convert to CSS
This depends on the CSS based on the SASS or SCSS which you want.
To convert SCSS into SASS, you will need to run the script below. You will need to install SASS.
sass input.scss output.css
Alternatively, you can run a script to update the SCSS file to Ruby and on every saving
Similarly:
sass - Input Input CSS: output.css
Read more here:
No comments:
Post a Comment