-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate from SASS to SCSS #247
Comments
Hmm no sass expert here but the docs say the syntax is a bit different: h3
width: 100px |
You are right, of course - I normally use scss syntax. Silly of me, thanks :-) |
No problem! I think the template also includes a CSS loader, so you can create a plain old import "./custom-styles.css" of course assuming |
I just renamed |
I choose the SASS over SCSS as I saw it was being used somewhere in the sample Fable projects. @alfonsogarciacaro @MangelMaxime do you have an opinion on whether any is preferred nowadays? |
Apparently, SCSS is the new syntax and is designed to be a superset of CSS3 so I guess it makes sense to use it from now on: https://stackoverflow.com/a/5654471 |
You can use SASS or SCSS syntax. This is a superset of CSS3 like mentioned by @alfonsogarciacaro Originally, I was using SASS syntax as done in Bulma but because SASS syntax is no longer evolving (SCSS is the new version of SASS and is the one maintained). There is still some few pains points when using it that will never be fixed... For example, if you use a $colors: mergeColorMaps(("white": ($white, $black), "black": ($black, $white), "light": ($light, $light-invert), "dark": ($dark, $dark-invert), "primary": ($primary, $primary-invert), "link": ($link, $link-invert), "info": ($info, $info-invert), "success": ($success, $success-invert), "warning": ($warning, $warning-invert), "danger": ($danger, $danger-invert)), $custom-colors) !default In the mean time, if you use SCSS you can write something like that: $marker-colors : (
"red": ($marker-red, $marker-red-invert),
"turquoise": ($marker-turquoise, $marker-turquoise-invert),
"green-pale": ($marker-green-pale, $marker-green-pale-invert),
"yellow": ($marker-yellow, $marker-yellow-invert),
"brown": ($marker-brown, $marker-brown-invert),
"blue": ($marker-blue, $marker-blue-invert),
"green-dark": ($marker-green-dark, $marker-green-dark-invert),
"orange": ($marker-orange, $marker-orange-invert),
"grey-metallic": ($marker-grey-metallic, $marker-grey-metallic-invert),
"purple": ($marker-purple, $marker-purple-invert),
"blue-dark": ($marker-blue-dark, $marker-blue-dark-invert),
"green": ($marker-green, $marker-green-invert),
"brown-light": ($marker-brown-light, $marker-brown-light-invert),
"pink": ($marker-pink, $marker-pink-invert),
"grey-light": ($marker-grey-light, $marker-grey-light-invert),
); So I am in favor of using SCSS but both can work side by side. This is actually the case in most of my projects, I have CSS, SASS and SCSS working side by side :) |
Thanks for your input. I love it how this comment with largest number of upvotes summarises the CSS development:
Given above feedback I think we should change the default in template from SASS to SCSS, unless someone has strong opinion why we shouldn't do that. |
Ok, I can take a stab at this, since I'm the reason this happened :-) What should I do with the version number? 1.0.2? 1.1.0? 2.0.0? |
Awesome! Don't worry about version number, I'll bump it after PR is accepted |
Ok, I think I'm almost there. However, running Should I just ignore that, or commit the changed file, or? |
Please ignore |
PR created here |
@theimowski I am almost certain that I think that something there is a change in the files to fix it or support new things when paket is being upgraded. You can fix the version of |
@MangelMaxime yeah probably pinning I do agree though that the targets file changing from time to time might be misleading for most users |
Closed by #248 |
If I add a style to the (initially empty) style.sass file, it will fail to compile.
To reproduce:
dotnet new SAFE -lang F#
fake build --target run
and wait for the browser to come up and present the counter example.src/Client/style.sass
file in the editor of your choice and add a style to it. For example:OS: macOS 10.14.4
SAFE template: 1.0.1
dotnet core: 2.2.202
The text was updated successfully, but these errors were encountered: