@pongo-ui/react-theme
v0.0.13
Published
A set of theme tokens used by Pongo.
Downloads
8
Readme
Theme
The Theme package is a set of various theme tokens used by Pongo components.
Use
- Install the @pongo-ui/react-theme package.
Using NPM
npm install @pongo-ui/react-theme
Using Yarn
yarn add @pongo-ui/react-theme
Install the @pongo-ui/react-provider and one of our components.
Set up the provider in your app:
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Build your app.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Button } from '@pongo-ui/react-button'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Button>Hello World</Button>
<Provider>
)
}
API
To learn more about the Theme API take a look at the Theme Interface file.