@pongo-ui/react-theme
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

Theme

The Theme package is a set of various theme tokens used by Pongo components.

Use

  1. Install the @pongo-ui/react-theme package.

Using NPM

npm install @pongo-ui/react-theme

Using Yarn

yarn add @pongo-ui/react-theme
  1. Install the @pongo-ui/react-provider and one of our components.

  2. 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>
  )
}
  1. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pongo-ui/react-theme

Weekly Downloads

0

Version

0.0.13

License

MIT

Unpacked Size

165 kB

Total Files

213

Last publish

Collaborators

  • pongobuild
  • czearing