question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SCSS Variables & Mixin Highlighting

See original GitHub issue

The highlighting doesn’t work for SCSS for the following sample:

<style lang="scss">
  @import "scss/bootstrap/mixins/_buttons.scss";
  $brand-primary: #3c763d !default;
  $btn-primary-color: #fff !default;
  $btn-primary-bg: $brand-primary !default;
  $btn-primary-border: darken($btn-primary-bg, 5%) !default;
  .btn-primary {
    @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
  }
</style>

All shows formatted when in a .scss file

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
octrefcommented, Nov 24, 2016

Do you have

"files.associations": {
  "*.vue": "vue"
}

in your user setting?

0reactions
octrefcommented, Nov 24, 2016

NVM, this extension only works for vue file. scss file error should be reported to https://github.com/Microsoft/vscode. Meanwhile you can turn off scss validation by:

  "scss.validate": false
Read more comments on GitHub >

github_iconTop Results From Across the Web

mixin and @include - Sass
Mixins allow you to define styles that can be re-used throughout your stylesheet. They make it easy to avoid using non-semantic classes like...
Read more >
Mixins in Sass - Telerik
Mixins in Sass are a feature that allows you to reuse styles across template rules. They were made to clear up the path...
Read more >
SCSS Mixin for CSS Variables - CodePen
All of them offer things like variables and mixins to provide convenient abstractions. Learn more · Versions. None, Less, SCSS, Sass, Stylus, PostCSS....
Read more >
Sass mixins - Free tutorial to learn HTML and CSS
The main purpose of a mixin is to make a set of properties reusable. Like Sass variables (where you define your values on...
Read more >
5 Useful Sass Mixins - PSD2HTML Blog
Sass is a popular CSS preprocessor that provides the benefit of variables for web developers. In this post, we have reviewed five Sass...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found