V
V
valera734685342020-03-02 14:40:19
css
valera73468534, 2020-03-02 14:40:19

How to change color of evergreen ui spinner?

documentation site https://evergreen.segment.com/get-started/theming/
In order to style your app, you must wrap it in the ThemeProvider component. This component uses the React.Context API under the hood.
ThemeProvider is not imported from import {ThemeProvider} from 'evergreen-ui';

how to change spinner color?????

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2020-03-02
@valera73468534

const newTheme = {
  ...defaultTheme,
  spinnerColor: 'green' //сюда писать цвет 
}

const ThemedApp = () => (
  <ThemeProvider
    value={newTheme}
  >
    <Spinner />
  </ThemeProvider>
)

render(
  <ThemedApp />
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question