Skip to content

Follow CSS naming conventions #79

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

Open
nkapolcs opened this issue Jan 24, 2020 · 3 comments
Open

Follow CSS naming conventions #79

nkapolcs opened this issue Jan 24, 2020 · 3 comments

Comments

@nkapolcs
Copy link
Contributor

Based on: #76 (comment)

Across the project, we should use consistent CSS naming rules.

@thisismydesign
Copy link
Member

Does styled components have any conventions?

@nkapolcs
Copy link
Contributor Author

I don't find any "official" conventions, I think the reason is that with SC you are building fully encapsulated components. BEM and other conventions were very helpful when you had a big CSS, SASS,... framework and with this naming convention, you could build sustainable codebase.
Now in SC, this is not as important.

But I think we can agree with one of these naming schemes (+1 for Two Dashes style):
https://en.bem.info/methodology/naming-convention/

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

No branches or pull requests

2 participants