Heart design system already had resting and hover button tokens mapped to color primitives. But we wanted to add a pressed state so clicks had clear, immediate feedback. This made me rethink how button states work across the system and how to best scale them for our white-labeling experience.
Criteria for new button states:
#274a34Aa#ccf88e8.22:1 AA#1d3827Aa#ccf88e10.55:1 AA#101e15Aa#ccf88e14.27:1 AAHover and pressed colors are computed from each button’s resting tokens.
Computed button states applied to all button variants in the design system.