You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the problem you want to solved? I thought the metric-derived CSS variables were cute and fun, but I tried to edit the CSS today and I couldn't remember whether to use --micro or --milli for half-size. Boo.
Is there a solution you'd like to recommend? Maybe we should just do:
This has the nice side-effect of being able to easily change the base, so we could use 1.5rem or the golden ratio or whatever we want in the future without having to memorize quirky variables names. Simplicity!!!!!
The text was updated successfully, but these errors were encountered:
A convention I kind of like is to call it e.g. --size-1--size-2 etc, makes it easy to switch between different ones and I think they're sorted when autocomplete in devtools suggests them. (:bike::house:)
Problem: The "metric CSS" was kind of clever but mostly just confusing.
Solution: Use `--size-N` for the size, where the size is `2^n`. Double
size is `--size-1`, half size is `--size--1` (negative one). The
negatives kind of suck but I couldn't think of a better solution that
didn't give up the flexibility, brevity, or the ability to sort
alphabetically.
Fixes: fraction#100
What's the problem you want to solved? I thought the metric-derived CSS variables were cute and fun, but I tried to edit the CSS today and I couldn't remember whether to use
--micro
or--milli
for half-size. Boo.Is there a solution you'd like to recommend? Maybe we should just do:
This has the nice side-effect of being able to easily change the base, so we could use 1.5rem or the golden ratio or whatever we want in the future without having to memorize quirky variables names. Simplicity!!!!!
The text was updated successfully, but these errors were encountered: