Upgrade dependencies
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { createGlobalStyle, ThemeProps } from 'styled-components';
|
||||
import { Theme } from '../style/themes';
|
||||
import { createGlobalStyle } from 'styled-components';
|
||||
|
||||
const EditorGlobalStyle = createGlobalStyle<ThemeProps<Theme>>`
|
||||
const EditorGlobalStyle = createGlobalStyle`
|
||||
html, body {
|
||||
color-scheme: ${props => props.theme.lightOrDark};
|
||||
scrollbar-color: ${props => props.theme.lightOrDark};
|
||||
|
||||
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import App from './App';
|
||||
import './style/base.css';
|
||||
import type {} from './style/styled';
|
||||
|
||||
const root = ReactDOM.createRoot(
|
||||
document.getElementById('root') as HTMLElement
|
||||
|
||||
6
src/style/styled.d.ts
vendored
Normal file
6
src/style/styled.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import 'styled-components';
|
||||
import { Theme } from './themes';
|
||||
|
||||
declare module 'styled-components' {
|
||||
export interface DefaultTheme extends Theme {}
|
||||
}
|
||||
Reference in New Issue
Block a user