Skip to content

Can't set my custom theme #3402

Closed
Closed

Description

@mike2003

I did everything according to this instruction, but there are no new themes. Where should I look for it?
https://github.com/marktext/marktext/blob/develop/docs/EXPORT_THEMES.md#create-a-theme

The path where I put the files
MarkText_new\marktext-user-data\themes\export\Academic.css

Activity

  1. KemikalElite commented on Aug 19, 2022

    @KemikalElite

    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.

  2. carcasonne commented on Sep 18, 2023

    @carcasonne

    So has anyone figured out how to do add your custom theme?

  3. dejalavidavolar commented on Nov 8, 2023

    @dejalavidavolar

    So has anyone figured out how to do add your custom theme?

    x2

  4. danfrom commented on Nov 23, 2023

    @danfrom

    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.

  5. Sylphystia commented on Nov 18, 2024

    @Sylphystia

    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.

    This method does not appear to work for me.

  6. added
    🐛 bug
    🪲 pri/major
    on May 16, 2026
  7. Jocs commented on Jul 2, 2026

    @Jocs
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/major🐛 bug🔭 area/ui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions