Skip to content

Support customize theme(css styles) in Mark Text  #174

Closed

Description

@lunoctis

如题, 内置一些可选风格如github等, 或提供一个手动选择css文件的选项

Activity

  1. Jocs commented on Apr 17, 2018

    @Jocs
    Member

    目前自定义风格需要自己修改 assets 中theme 文件夹内的样式代码,在1.0 版本以后,考虑支持自定义主题。

  2. added
    🦄 feature request
    on Apr 17, 2018
  3. changed the title [-]可以添加一个自定义CSS风格的选项吗?[/-] [+]Support customize theme(css styles) in Mark Text (post version 1.0.0)[/+] on Apr 17, 2018
  4. added
    🐼 plugin
    on Jun 7, 2018
  5. shvchk commented on Mar 1, 2019

    @shvchk

    Basic override custom.css loaded from the same location as preference.md (getPath('userData')) would be probably easy to implement and enough for most use cases.

  6. Jocs commented on Mar 1, 2019

    @Jocs
    Member

    @shvchk Yes, you can rewrite (override) the css file (or .vue file) in project to custom style, and build Mark Text by yourself.

  7. changed the title [-]Support customize theme(css styles) in Mark Text (post version 1.0.0)[/-] [+]Support customize theme(css styles) in Mark Text [/+] on Sep 29, 2019
  8. ejm554 commented on May 8, 2022

    @ejm554

    Can someone clarify the status of custom themes? For example, when is it expected that a user will be able to customize paragraph spacing, etc.

    I see confusing bits of information, and I can't get a handle on where it's at. Not criticizing, mind you. Just asking for someone to make it a little less muddy for me. :-)

    It sounds like maybe this will be possible when an plug-ins become a thing. Yet, I see the following in marktext/docs/THEMES.md:

    MarkText currently doesn't support user-defined application themes. This feature is planned for v0.17.0.

    As of this writing, the current release is 0.17.1.

  9. hunyun commented on Jul 18, 2022

    @hunyun

    How to make a custom theme ???

  10. viocha commented on Jul 25, 2022

    @viocha

    +1

  11. DYH-Hong commented on Aug 13, 2024

    @DYH-Hong

    A fork with actual maintenance has been created with this issue fixed.

    If you can, please subscribe it and help test this feature there.

  12. Jocs commented on Jun 26, 2026

    @Jocs
    Member

    Thank you for the original request! Both features asked for here have been implemented in current versions of MarkText:

    1. Built-in themes: Preferences → Theme now offers 35 selectable themes (Dracula, Nord, Tokyo Night, Catppuccin Mocha/Latte, Solarized, Gruvbox, One Dark, Rose Pine, and many more), with automatic light/dark mode switching.

    2. Custom CSS: The same Preferences → Theme panel has a "Custom CSS" textarea where you can paste any CSS rules; they are injected live into the editor without requiring a restart or a source build.

    Closing this as implemented. If you need something beyond what these two mechanisms provide, please open a new issue with a specific description.

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

    🐼 plugin🦄 feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions