ColorHelper 3.0 Showing Previews for SCSS/SASS variables that are the same as an HTML color name
See original GitHub issueDescription
After upgraded to ColorHelper 3.0, I see the following in a .scss
file:
$blue
is an SCSS/SASS variable for a color and is not a reference to the HTML color “blue”:
This was correctly not highlighted in previous versions. It would be awesome if the correct color was shown (#142), but I’d be more than happy to just not have this highlighted.
Support Info
- ST ver.: 3211
- Platform: windows
- Arch: x64
- Plugin ver.: 3.0.0
- Install via PC: True
- coloraide ver: 0.1.0a7
- mdpopups ver.: 4.0.2
- markdown ver.: 3.2.2
- pygments ver.: 2.1a0
- jinja2 ver.: 2.10.1
Steps to Reproduce Issue
Use any SCSS variable with a name that matches a named HTML color as a CSS property value.
color: $blue;
color: $tomato;
color: $rebeccapurple;
color: $darkgoldenrod;
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Support for SCSS (SASS) Variables Coloring #101 - GitHub
Is there any chance of Color Helper supporting SCSS (SASS) variable coloring throughout the files? The main variable declaration is colored, ...
Read more >My RGB variables are not working on SCSS/SASS
scss color: rgb(var(--main__blue));. I don't want to declare the variable as RGB (in which would solve my problem), because I want later on...
Read more >Build A Responsive Website With HTML & SCSS/SASS, Full ...
Build a fully responsive website with SASS/SCSS.This complete tutorial on how to build a responsive website with HTML and SCSS/sass.
Read more >Colors - Documentation | CodyHouse
Learn how to set colors and create color themes in CodyFrame. ... each HSL value separately, we can combine SASS color functions and...
Read more >The Ultimate Guide to Learning Sass/SCSS
The Ultimate Guide to Learning Sass/SCSS. Variables, nesting, partials, modules, mixins, inheritance, operators, and more.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a fix 🙁.
We just need to make sure our trigger for color words doesn’t have a
$
before it:Thanks! If all the missed bugs are just like this, I’ll be pretty happy.