Tachyons: Use unicode fraction for grids className

Created on 26 Sep 2017  Â·  4Comments  Â·  Source: tachyons-css/tachyons

Hello,

Did you consider (and if yes can you explain me quickly why i has been rejected) using unicode fraction in grids className, like
w-⅓ over w-third (or even ⅓ 😄 but maybe its going too far)
w-â…” over w-two-thirds
w-¼ over w-25
...

I guess you got the idea.
I find it more consistent than mixing numbers and letters and i believe even clearer at a first glance.

Sorry if this suggestion has already been proposed and answer but i didn't find it in your issues.
Keep up your great work on Tachyons !

PS: unicode className is compatible until IE6 if i'm not wrong, so no compatibility worries

Most helpful comment

how are you supposed to type that?

All 4 comments

how are you supposed to type that?

Even if this library is thought to be easy to write, i usually type once and copy/paste rest of the time (or use components). I personally find more interesting to read it easily than to write it.

@Alexgalinier While we appreciate this interesting concept for class naming, we won't look to support it in core since it will be more difficult to type and search for. Following this same philosophy we also won't introduce characters that need to be escaped in the source css. But that's not to say you can't create your own fork for widths and publish it!

Thanks for your answer, i totally understand the point. I won't do a fork cause it's not mandatory in my opinion. It was more to share an idea that could have helped.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kmcgillivray picture kmcgillivray  Â·  3Comments

j-greig picture j-greig  Â·  3Comments

johno picture johno  Â·  6Comments

rolfen picture rolfen  Â·  7Comments

johno picture johno  Â·  5Comments