chore(examples): update deps for custom-themes

This commit is contained in:
unix
2020-06-08 04:30:23 +08:00
parent d69f7140c8
commit 1e2c75ccdb
5 changed files with 22 additions and 10705 deletions

View File

@@ -1,3 +1,15 @@
## Custom themes example
## Custom themes
This is an example of **how to custom Themes in `zeit-ui`**.
## Getting Started
First, run the development server:
```bash
npm i && npm run dev
# or
yarn && yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

View File

@@ -8,7 +8,7 @@
"build": "react-scripts build"
},
"dependencies": {
"@zeit-ui/react": "^0.0.1-beta.17",
"@zeit-ui/react": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},

View File

@@ -5,7 +5,7 @@ const Home = () => {
const theme = useTheme()
return (
<Card shadow style={{ width: '500px', margin: '100px auto' }}>
<Card shadow>
<Text>Modern and minimalist React UI library.</Text>
<Text type={'success'}>
Modern and minimalist React UI library. <Tag>{theme.palette.success}</Tag>

View File

@@ -1,15 +1,17 @@
import React from 'react'
import ReactDom from 'react-dom'
import { ZEITUIProvider, CSSBaseline } from '@zeit-ui/react'
import { ZeitProvider, CssBaseline, Page } from '@zeit-ui/react'
import Home from './home'
import Theme from './theme'
const App = () => {
return (
<ZEITUIProvider theme={Theme}>
<CSSBaseline />
<Home />
</ZEITUIProvider>
<ZeitProvider theme={Theme}>
<CssBaseline />
<Page size="mini">
<Home />
</Page>
</ZeitProvider>
)
}

File diff suppressed because it is too large Load Diff