Files
lucko-paste/src/components/EditorGlobalStyle.tsx

13 lines
408 B
TypeScript
Raw Normal View History

2022-11-06 22:46:13 +00:00
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;