0.0.6 • Published 6 years ago
togettheme v0.0.6
togettheme
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'