#Any way to access the theme object when setting up defaultprops via Component.extend API?

3 messages · Page 1 of 1 (latest)

jolly lava
#

I have something like the following but I'd like to have access to the theme API when setting the defaultProps but can't figure out a way, any ideas?

Loader.extend({
  defaultProps: {
    color: {theme.stuff},
  },
})
plain estuary
jolly lava
#

we added a section for fontWeights in the theme.other, for example theme.other.fontWeights.LIGHT.

color: was I guess an unfortunate example