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

double_quotes vs single_quotes #21

Open
NameFILIP opened this issue May 24, 2016 · 2 comments
Open

double_quotes vs single_quotes #21

NameFILIP opened this issue May 24, 2016 · 2 comments

Comments

@NameFILIP
Copy link

NameFILIP commented May 24, 2016

Why are you guys using double_quotes instead of single_quotes as in the javascript config?

P.S. Looks like the official sass documentation uses single quotes: http://sass-lang.com/guide#topic-5

@NameFILIP NameFILIP changed the title Why double_quotes instead of single_quotes as in the javascript conifg? double_quotes vs single_quotes May 24, 2016
@ljharb
Copy link
Collaborator

ljharb commented May 24, 2016

Double quotes are more common and idiomatic in both CSS and HTML, single quotes are more common and idiomatic in JS. This is the same reason that JSX has double quotes, despite JS having single quotes: the similarity to HTML implies using similar quote styles. CSS → SASS is no different.

@ilan-schemoul
Copy link

You may want to put it in the guidelines. Because the fact is both css and a kind of programming language (very good description isn't it) may makes unclear how we should do about quotes.
Besides the css guideline is very short and it's such a pleasure to have to read through a ton of guidelines...

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

3 participants