A theme package manager for Typora. It's currently in progress, not so user friendly.
Current features:
- add a theme
- remove a theme
- list installed themes
./tytm.exe update
./tytm.exe add <THEME_ID>
./tytm.exe add <THEME_ID> --sub <SUB_THEME_ID>
<THEME_ID> will be theme's name but use lowercase and use dash to replace whitespace. Ex: "GitHub Night" has id "github-night"
./tytm.exe rm <THEME_ID>
./tytm.exe rm <THEME_ID> --sub <SUB_THEME_ID>
- install rust (https://www.rust-lang.org/tools/install)
cargo build --release
Refer to manifest/
. Readme may be outdated.
An example manifest (OneDark). The file name is same as the id.
{
"id": "onedark",
"name": "Blackout",
"version": "1.0.7",
"source": {
"type": "Zip",
"value": {
"url": "https://github.com/obscurefreeman/typora_theme_blackout/releases/download/V1.0.7/blackout_theme.zip",
"content": "./",
"excludes": []
}
},
"assets": [ ... ],
"pkgs": [ ... ]
}
"id" will be theme's name but use lowercase and use dash to replace whitespace. Ex: "GitHub Night" has id "github-night"
"type" can be "Zip" or "Git"
- "Zip": download a zip file from web
- "Git": clone a repository
"content" means the root folder of css and assets.
"excludes" means files in "content" but unnecessary, such as readme or license. You may also refer to manifest/
.