menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

styled-system

Style props for rapid UI development

Channels
Team

passing nested color object as prop not working

October 11, 2020 at 4:47pm

passing nested color object as prop not working

October 11, 2020 at 4:47pm
I have colors in my theme.js as below -
colors: { gray: '#f2f2f2', text: [ '#d6d7d8', '#929598'] }
Now, the below code is not working -
<Heading color="text[0]"></Heading>

October 11, 2020 at 7:30pm
Can you provide a working example?