Convert to typescript
This commit is contained in:
12
src/components/EditorGlobalStyle.tsx
Normal file
12
src/components/EditorGlobalStyle.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { createGlobalStyle, ThemeProps } from 'styled-components';
|
||||
import { Theme } from '../style/themes';
|
||||
|
||||
const EditorGlobalStyle = createGlobalStyle<ThemeProps<Theme>>`
|
||||
html, body {
|
||||
color-scheme: ${props => props.theme.lightOrDark};
|
||||
scrollbar-color: ${props => props.theme.lightOrDark};
|
||||
background-color: ${props => props.theme.editor.background};
|
||||
}
|
||||
`;
|
||||
|
||||
export default EditorGlobalStyle;
|
||||
Reference in New Issue
Block a user