Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yarastqt/themebox
- Owner: yarastqt
- Created: 2020-11-21T23:17:15.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-25T13:02:20.000Z (over 3 years ago)
- Last Synced: 2023-03-03T14:52:08.072Z (over 1 year ago)
- Topics: lambda, themekit
- Language: TypeScript
- Homepage: https://themebox.now.sh
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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