csstyle
csstyle copied to clipboard
make / the default parts symbol
A few people have suggested making /
the default symbol for parts. For example:
div class="button/icon"
I like this quite a bit. It deviates from BEM a bit more which is fine. It also makes csstyle even more similar to the CLI with directories separated by /
(on *nix at least). Only downside is that parts would have to be escaped when accessed with certain JS apis. But parts are probably the least accessed class from JS so I'm cool with the tradeoffs. Going to make this happen soon unless anyone has a good counterargument.
I don't like, i really like the default part symbol or maybe something like button.icon
but sounds weird.
Also I should add that people will still of course have the ability to configure their project to use whatever symbols they like.