You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open '%APPDATA%\marktext' and if the folder 'themes' is not present, create it and go into it and create a new folder in there called 'export'. Put your theme in the 'export' folder and you are done.
Restart Marktext if it is open and you will be able to use your own theme while exporting.
Open '%APPDATA%\marktext' and if the folder 'themes' is not present, create it and go into it and create a new folder in there called 'export'. Put your theme in the 'export' folder and you are done. Restart Marktext if it is open and you will be able to use your own theme while exporting.
Thanks for the report, and apologies for the long silence. Loading custom export themes from the application-data themes/export/ directory is implemented in the current code: when you open the Export dialog, MarkText scans <user-data>/themes/export/*.css, reads the theme name from the first-line /** Name **/ comment, and adds it to the theme dropdown; selecting it applies the file's CSS on export (see exportSettings/index.vue loadThemesFromDisk and util/pdf.ts). A couple of gotchas that match the older reports here:
The folder is themes/export/ directly under the application data directory (%APPDATA%/marktext on Windows), not a nested marktext-user-data folder.
Restart MarkText (or at least reopen the export dialog) after dropping in the file so it gets picked up.
Give the theme a name via a first-line comment, e.g. /** Academic **/, otherwise it shows up under its filename.
I'm going to close this as implemented. If you grab a current build and it still doesn't show your .css after a restart, please reopen with your OS, the exact full path of the file, and the first few lines of the CSS, and we'll dig in.
Activity
KemikalElite commentedon Aug 19, 2022
I can confirm there is no themes\export directory under %APPDATA\marktext on Windows.
Its possible this was the location in an older version but was removed at some point.
carcasonne commentedon Sep 18, 2023
So has anyone figured out how to do add your custom theme?
dejalavidavolar commentedon Nov 8, 2023
x2
danfrom commentedon Nov 23, 2023
Open '%APPDATA%\marktext' and if the folder 'themes' is not present, create it and go into it and create a new folder in there called 'export'. Put your theme in the 'export' folder and you are done.
Restart Marktext if it is open and you will be able to use your own theme while exporting.
Sylphystia commentedon Nov 18, 2024
This method does not appear to work for me.
Jocs commentedon Jul 2, 2026
Thanks for the report, and apologies for the long silence. Loading custom export themes from the application-data
themes/export/directory is implemented in the current code: when you open the Export dialog, MarkText scans<user-data>/themes/export/*.css, reads the theme name from the first-line/** Name **/comment, and adds it to the theme dropdown; selecting it applies the file's CSS on export (seeexportSettings/index.vueloadThemesFromDisk andutil/pdf.ts). A couple of gotchas that match the older reports here:themes/export/directly under the application data directory (%APPDATA%/marktexton Windows), not a nestedmarktext-user-datafolder./** Academic **/, otherwise it shows up under its filename.I'm going to close this as implemented. If you grab a current build and it still doesn't show your
.cssafter a restart, please reopen with your OS, the exact full path of the file, and the first few lines of the CSS, and we'll dig in.feat(theme): import custom editor themes from a folder