create global styles styled-components code example
Example: create global styles in styled components
import { createGlobalStyle } from 'styled-components'
const GlobalStyle = createGlobalStyle`
body {
color: ${props => (props.whiteColor ? 'white' : 'black')};
}
`
<React.Fragment>
<GlobalStyle whiteColor />
<Navigation /> {}
</React.Fragment>import { createGlobalStyle } from 'styled-components'
const GlobalStyle = createGlobalStyle` body { color: ${props => (props.whiteColor ? 'white' : 'black')}; }`
<React.Fragment> <GlobalStyle whiteColor /> <Navigation /> {}</React.Fragment>
.npm__react-simple-code-editor__textarea:empty {
-webkit-text-fill-color: inherit !important;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.npm__react-simple-code-editor__textarea {
color: transparent !important;
}
.npm__react-simple-code-editor__textarea::selection {
background-color: #accef7 !important;
color: transparent !important;
}
}