@pongo-ui/react-theme-generator
v0.1.2
Published
A tool used to easily and quickly create themes.
Downloads
5
Readme
Theme Generator
The theme generator package is a tool used to easily and quickly create themes.
Use
- Install the @pongo-ui/react-theme-generator package.
Using NPM
npm install @pongo-ui/react-theme-generator
Using Yarn
yarn add @pongo-ui/react-theme-generator
- Set up the themeGenerator in your app:
import { themeGenerator } from './themeGenerator';
const hcTheme = themeGenerator({
canvasColor: '#000000',
semanticColors: {
inherit: '#ffff00',
brand: '#0029ff',
success: '#278536',
danger: '#de3309',
},
});
- Integrate your theme in your provider and components
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Button } from '@pongo-ui/react-button'
const hcTheme = themeGenerator({
canvasColor: '#000000',
semanticColors: {
inherit: '#ffff00',
brand: '#0029ff',
success: '#278536',
danger: '#de3309',
},
const MyApp = () => {
return (
<Provider theme={hcTheme}>
<Button>Hello World</Button>
<Provider>
)
}
API
To learn more about the ThemeGenerator API take a look at the ThemeGenerator Interface file.