Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yarastqt/themebox

themekit as lambda function
https://github.com/yarastqt/themebox

lambda themekit

Last synced: 10 days ago
JSON representation

themekit as lambda function

Awesome Lists containing this project

README

        

# themebox

## ☄️ Usage

**javascript**

```ts
const config = {
output: {
css: {
transforms: ['name/cti/kebab'],
buildPath: './themes',
files: [
{
destination: 'tokens.css',
format: 'css/variables',
},
],
},
},
}

const tokens = {
color: {
black500: {
value: '#000',
},
},
}

fetch('https://themebox.now.sh', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
config,
tokens: {
language: 'json',
content: tokens,
},
}),
})
```

## License

MPL-2.0