Figma Tokens / Type Scaling

I apologize in advance if this is not the right section for this question.

I am using Jan Six Figma Tokens and implementing a dynamic font scale using the major third concept.

Question:
How would one dynamically scaling to line-height? esp if I want to follow 8px grid.