Prepros | Compile almost any preprocessing language | Style Language library
kandi X-RAY | Prepros Summary
kandi X-RAY | Prepros Summary
Compile less, sass, scss, compass, coffeescript, stylus, jade, slim, markdown, haml and livescript files with live browser refresh.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Compile directive provider .
- Creates a scope provider .
- Initialize a new httpProvider .
- Define RouteProvider
- Parse JSON .
- Creates a new Browser instance .
- Apply directives to the given node
- Returns a promise that resolves with a deferred .
- Sets up the Angular loader .
- Parse text .
Prepros Key Features
Prepros Examples and Code Snippets
Community Discussions
Trending Discussions on Prepros
QUESTION
I have been using LESS for years and am only just trying out SASS. I am having trouble with a very basic thing so I hope someone can help me out.
What I want to achieve is:
- a file theme.scss (which is compiled into theme.css) contains separate components (for header, navigation, font etc.)
- define variables for things like brand colours to be re-used in the components
I have got it to work with @import, but because that is (going to be) deprecated I want to use @use instead. According to https://sass-lang.com/documentation/at-rules/use that should be possible.
My file setup is like this:
...ANSWER
Answered 2020-Aug-29 at 13:29@import
will never be depricated. Sass' devs are a sleepy bunch of ****. @use
is only supported by Dart-Sass yet, I assume you are using Node-Sass, which most are. Therefor you need to use @import
, which makes in most use cases no difference.
You can find the info right under the heading, its the first line, virtually everbody skips.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Prepros
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page