Skip to main content

String Variable for Property Names

  • April 23, 2026
  • 0 replies
  • 11 views

Ethan_Leonow

I wish I could use text string variables to manage common property names across component variants. Many components in my design system share the same properties (eg, theme: light/dark, state: default/hover/pressed, size: small/default/large), but I have to hand key each of these for each main component. I wish I could have a list of these property names that could be reused between components. Having that would:

  1. Reduce the amount of manual entry
  2. Eliminate potential for typos
  3. Ensure a consistent vocabulary that translates better to tokens/code semantics
  4. Increase likelihood of consistent component variable taxonomy