code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

How can I extract color of the typography in component?

Open jongjunpark opened this issue 1 year ago • 3 comments

Our Heading component contains typography inside it, and the color of the typography is being changed directly, rather than through the component's own props. So, I want to extract the color value of the typography. How can I do that?

  • component structure 스크린샷 2024-10-16 오후 2 19 51

  • typography in component image

  • Code Connect CLI version: 1.1.2

  • Operating system: Mac OS 13.5.2

jongjunpark avatar Oct 16 '24 05:10 jongjunpark

Hey @jongjunpark, right now this is not possible, you can only access components props and text content. I'll raise this for discussion with the team as I can see there are cases like yours where direct access to design props might be useful.

tomduncalf-figma avatar Oct 22 '24 10:10 tomduncalf-figma

Adding in here, this would be useful for getting the color for icons.

Tiberriver256 avatar Nov 26 '24 22:11 Tiberriver256

Hi team, I’d like to follow up on this discussion. As of October 2025, this issue still seems to persist, and it’s preventing us from fully utilizing Code Connect for Coding. We’d really appreciate it if support for accessing typography color could be considered. Thanks a lot!

yuchan2215 avatar Oct 22 '25 06:10 yuchan2215