@cebus/react-theme
v0.0.1
Published
A set of theme default tokens to use with Cebus UI components.
Downloads
15
Readme
Theme
The Theme package is a set of various theme tokens used by Cebus components.
Use
- Install the @cebus/react-theme package.
Using NPM
npm install @cebus/react-theme
Using Yarn
yarn add @cebus/react-theme
Install the @cebus/react-provider and one of our components.
Set up the provider in your app:
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Build your app.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Button } from '@cebus/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.