For authors
Publish an add-on
An add-on is one JSON file. GeeChat and this site check it with the same code, so if it passes here it installs there. You never sign it yourself: the marketplace signs what it publishes.
The file
{
"format": 1,
"id": "yourname.midnight",
"name": "Midnight",
"version": "1.0.0",
"kind": "theme",
"publisher": { "name": "Your Name", "url": "https://example.com" },
"description": "A deep blue theme.",
"license": "CC0-1.0",
"permissions": [],
"theme": {
"base": "dark",
"colors": {
"background": "#0f1220",
"surface": "#181c2e",
"text": "#e8eaf6",
"mutedText": "#9aa3c7",
"border": "#2a3050",
"accent": "#7c9cff"
}
}
}The rules
- id
- publisher.name in lower case: letters, digits, dots and dashes (3 to 64). It identifies the add-on across versions, so keep it.
- version
- Like 1.2.3. Publish a new version by raising it; people who install the new file replace the old one.
- kind
- theme is the only kind today. Fonts and more come later; anything that runs code will be a different kind with its own permissions.
- permissions
- Always an empty list for a theme. A theme is data and cannot ask for anything.
- colours
- Six opaque #rrggbb colours. Text must have 4.5:1 contrast against both the background and the surface, muted text and the accent 3:1 against the background. A theme that would be hard to read is refused.
- base
- dark. Light themes are not supported yet: parts of GeeChat still use fixed dark colours, so they would be unreadable in places.
- nothing else
- Unknown fields are an error, text cannot contain control or direction-override characters, and the file can be at most 1 MB.
Try it before you submit
In GeeChat, Settings > Extensions > Choose file… installs your file straight away (it will say it is not verified, which is expected until it is published here). Fix whatever it reports, and check the contrast in a few places of the app.
Submit
Open a merge request on the GeeChat repository that adds your file to marketplace/catalog/, named your-id.json. Add-ons are reviewed before they are published. Check it yourself first with npm run catalog:check in the marketplace folder.