Package Exports
- reakit-system-palette
- reakit-system-palette/Box
- reakit-system-palette/palette
- reakit-system-palette/utils
- reakit-system-palette/utils/contrast
- reakit-system-palette/utils/darken
- reakit-system-palette/utils/fade
- reakit-system-palette/utils/isDark
- reakit-system-palette/utils/isLight
- reakit-system-palette/utils/lighten
- reakit-system-palette/utils/palette
- reakit-system-palette/utils/ref
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reakit-system-palette) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
reakit-system-palette
Create color themes for Reakit components.
This is experimental and may have breaking changes in minor versions.
Installation
npm:
npm i reakit-system-palette
Yarn:
yarn add reakit-system-palette
Setup
import React from "react";
import ReactDOM from "react-dom";
import { Provider, Button } from "reakit";
import * as system from "reakit-system-palette";
function App() {
return (
<Provider unstable_system={system}>
<Button unstable_system={{ palette: "primary", fill: "opaque" }}>
Button
</Button>
</Provider>
);
}
ReactDOM.render(<App />, document.getElementById("root"));
License
MIT © Diego Haz