0.0.6 • Published 6 years ago

togettheme v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

togettheme

CircleCI

Install

yarn add togettheme

Example

const togettheme = require('togettheme');

const defaultValues = {
  color: 'orange',
  background: '#444'
};

const theme = togettheme(defaultValues);

const data = {
  theme: {
    color: 'blue',
  }
}

console.log(theme`color`(data)) // 'blue'
console.log(theme`background`(data)) // '#444'
0.0.6

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago