Aster Themes is a small CLI tool for creating themes for Aster-Apps (themes are yet to be implemented, will be in a bit)
- Node.js 18+
- npm package:
npm install argsRun commands using:
node index.js <command> [options]Turns a CSS file into a signed JSON theme.
node index.js process --file theme.css --author "Your Name" --desc "My theme" --license mit --sign y--file→ Path to the CSS file (defaults totheme.css)--author→ Your name--desc→ Description of the theme--license→ License key (defined inlicense.js, defaults tomit)--sign→ Useyto sign the theme (defaults ton)
Generates a file like:
theme_theme.css.json
node index.js verify theme_theme.css.jsonChecks the theme for:
- Valid signature
- Urls
node index.js verifylink https://example.com/theme.jsonSaves a new author along with their public key in authors.json.
node index.js addAuthor "AuthorName" keys/pubkey.jwk "Bio text"node index.js pubA generated theme looks like this:
{
"header": {
"author": "Name",
"desc": "Description",
"license": "...",
"signature": "...",
"preview": {
"bg": "...",
"text_primary": "..."
}
},
"content": "CSS HERE"
}- URLs inside theme content and preview are blocked unless explicitly allowed
- If you wish to add a theme, please submit it in Pull Requests, please also send your public key along with it!