I’m using jss through react-jss. Let’s say that I have a theme where I have defined a base color. Then I want to define a default border in this theme, referring to the base color.
const theme = {
baseColor: ‘#aaaaaa’,
defaultBorder: [[1, ‘solid’, this.baseColor]]
}
I haven’t found a syntax for this. Isn’t it possible? Do I have to define the color outside and use it both places?
const baseColor = ‘#aaaaaa’;
const theme = {
baseColor: baseColor,
defaultBorder: [[1, ‘solid’, baseColor]]
}