Replace explicit tracking
scale with multiplier system
#15298
aaronadamsCA
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
tracking-tight
can also be expressed as-tracking-wide
, which seems like an API design smell.I also increasingly find myself needing arbitrary values like
tracking-[0.0125rem]
.For both these reasons, I'd like to suggest a multiplier system like #14857 for
tracking
:--tracking: 0.025rem
.tracking-tighter
to-tracking-2
tracking-tight
to-tracking-1
tracking-normal
totracking-0
tracking-wide
totracking-1
tracking-wider
totracking-2
tracking-widest
totracking-4
This is simple and intuitive, fixes the design smell, and supports in-between values like
tracking-0.5
.Tracking isn't like other named scales (like text size, leading, and radius), because it (a) supports negative values and (b) doesn't really benefit from a constrained set of named values. In those two respects it's a lot more like
spacing
, so I think it's a great candidate for aspacing
-like approach.Beta Was this translation helpful? Give feedback.
All reactions