Skip to content

Why are Atomizer classes capitalized? #430

Answered by thierryk
thierryk asked this question in Q&A
Discussion options

You must be logged in to vote

From the FAQ page:

Q: Why are Atomic classes capitalized? As far as I know, no other framework does that?

A: We took advantage of the fact that nobody seems to capitalize classes and that CSS is case sensitive to get a "cheap" namespace, one that does not rely on an extra character(s).


From our "acss-io/atomizer" Gitter chat:

Before using ACSS at Yahoo! we used a static Atomic CSS library. At the time, we chose to use the capital letter as a mean to prevent styles collision (classes are case sensitive in CSS). Our logic was that even if somebody was using the same classes than ours they would not start them with a capital letter.

I think we then kept that distinction to be consistent…

Replies: 0 comments 3 replies

Comment options

thierryk
Jan 25, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by thierryk
Comment options

You must be logged in to vote
1 reply
@thierryk
Comment options

thierryk Feb 5, 2021
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants