chore: migrate to geist ui

This commit is contained in:
unix
2020-08-24 18:32:46 +08:00
parent c179794f36
commit 909a2963c0
176 changed files with 2188 additions and 2668 deletions

View File

@@ -15,7 +15,7 @@ initialize {
html {
font-size: 16px;
--zeit-icons-background: #fff;
--geist-icons-background: #fff;
}
body {
@@ -349,7 +349,7 @@ initialize {
html {
font-size: 16px;
--zeit-icons-background: #000;
--geist-icons-background: #000;
}
body {

View File

@@ -1,22 +1,22 @@
import React from 'react'
import { render } from 'enzyme'
import { CssBaseline, ZeitProvider } from 'components'
import { CssBaseline, GeistProvider } from 'components'
describe('CSSBaseline', () => {
it('should render correctly', () => {
const wrapper = render(
<ZeitProvider>
<GeistProvider>
<CssBaseline />
</ZeitProvider>,
</GeistProvider>,
)
expect(wrapper).toMatchSnapshot()
})
it('should render dark mode correctly', () => {
const wrapper = render(
<ZeitProvider theme={{ type: 'dark' }}>
<GeistProvider theme={{ type: 'dark' }}>
<CssBaseline />
</ZeitProvider>,
</GeistProvider>,
)
expect(wrapper).toMatchSnapshot()
})

View File

@@ -18,7 +18,7 @@ const CssBaseline: React.FC<React.PropsWithChildren<{}>> = ({ children }) => {
html {
font-size: 16px;
--zeit-icons-background: ${theme.palette.background};
--geist-icons-background: ${theme.palette.background};
}
body {