Skip to content
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

Depreciation warning for colors #2478

Closed
akvadrako opened this issue Mar 8, 2018 · 5 comments
Closed

Depreciation warning for colors #2478

akvadrako opened this issue Mar 8, 2018 · 5 comments

Comments

@akvadrako
Copy link

Hi, I actually just have a usage question, but I can't find anywhere to ask it. I couldn't find a link to any forum, mailing list or chat from your repo, homepage or docs.

I would like to know how to get rid this depreciation warning:

DEPRECATION WARNING on line 145, column 67 of /.../layout.scss:
The value "#AAAAAA00" is currently parsed as a string, but it will be parsed as a color in
future versions of Sass. Use "unquote('#AAAAAA00')" to continue parsing it as a string.

What should I do? I DON'T want it parsed as a string - it's a color.

@nex3
Copy link
Contributor

nex3 commented Mar 8, 2018

If you want a color value, you can use rgba() syntax: rgba(#AAAAAA, 0).

@nex3 nex3 closed this as completed Mar 8, 2018
@RISCfuture
Copy link

So your recommendation is that for now we change all our color variables from #AAAAAA to rgba(#AAAAAA, 0), but only temporarily, until the new version of Sass comes out, when we change them back to #AAAAAA because the rgb() call is redundant?

@nex3
Copy link
Contributor

nex3 commented May 3, 2018

The value #AAAAAA will work just fine. It's only the syntax #AAAAAA00, which represents opacity as hex digits, which isn't supported yet and requires the use of the rgba() function right now.

@nicolasxu-bg
Copy link

nicolasxu-bg commented Nov 5, 2018

The value "#526c9687" is currently parsed as a string, but it will be parsed as a color in
future versions of Sass. Use "unquote('#526c9687')" to continue parsing it as a string.

It is what I got. What is going on?

@nex3
Copy link
Contributor

nex3 commented Nov 5, 2018

@nicolasxu-bg That syntax isn't supported yet in some Sass implementations. Use the rgba() function instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@nex3 @RISCfuture @akvadrako @nicolasxu-bg and others