From 303b5a5fc00108c24c17b58a76e84165fb23321b Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Sat, 6 Apr 2019 15:00:05 -0700 Subject: Update readme --- readme.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 8423c90..2702989 100644 --- a/readme.md +++ b/readme.md @@ -2,6 +2,36 @@ ## Demo +[https://optimistic-kalam-56c21b.netlify.com](https://optimistic-kalam-56c21b.netlify.com) + ## Usage -## Bugs +```javascript +const containerStyle = ({ colours }) => css` + color: ${colours.main}; +` + +const mainRange = colormap({ + colormap: 'autumn', + nshades: 11, + format: 'hex', + alpha: 1 +}) + +const colourMiddleware = theme => { + return { + ...theme, + colours: { + main: mainRange[theme.lightLevel] + } + } +} + +export const DemoComponent = ({ children }) => { + return ( + +
{children}
+
+ ) +} +``` -- cgit v1.2.3