segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.38k stars 830 forks source link

How can I change Overlay color? #1553

Closed Piero87 closed 1 year ago

Piero87 commented 1 year ago

Hello, I have tried to do this:

const theme = mergeTheme(defaultTheme, { components: { Overlay: { baseStyle: { backgroundColor: 'rgba(0, 0, 0, 0.5)' } } }, })

but the Overlay components seems not present, anyone can help me to change the background color?

thanks

brandongregoryscott commented 1 year ago

Hey @Piero87, the Overlay component doesn't have a full object under theme.components, but its color is overridable via theme.colors.overlay, for example:

const theme = mergeTheme(defaultTheme, {
  colors: {
    overlay: "indianred"
  }
});
Piero87 commented 1 year ago

@brandongregoryscott thank you!!!