Open AlucPro opened 1 year ago
Hi. Unfortunately themes are plugins which are only supported on desktop so this would take some work. Fortunately one workaround you can do is to add a one-liner to your logseq/export.css. From a logseq-dev-theme example, that css file would contain:
@import url("https://cdn.jsdelivr.net/gh/pengx17/logseq-dev-theme@main/custom.css");
To configure your own theme you would need to change pengx17/logseq-dev-theme@main/custom.css
to match your theme. The format of that string is GITHUB-USER/GITHUB-REPO/@BRANCH/FILE
. GITHUB-USER and GITHUB-REPO are just from the theme's github repo url. BRANCH is the default branch which is usually 'main' or 'master'. FILE is the name of the primary custom css file usually 'custom.css'.
For anyone interested, I'm open to a contribution for this with tests. Of the 4 variables above, user and repo are easy to obtain from the name and file from the package.json. Branch is a little trickier and may require interacting with the github api
If i want to publish logseq with a theme, now the only way to custom my css style is editing
custom.css
. Can this repo support ability to publish with theme installed from theme market?Maybe can add a config field like this: