nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.2k stars 1.75k forks source link

Apply color theme #907

Open ryum91 opened 4 years ago

ryum91 commented 4 years ago

Version

latest

Development Environment

none

Current Behavior

Only white theme

Expected Behavior

Apply color theme (ex. Dark mode, Custom theme)

seonim-ryu commented 4 years ago

@ryum91 Good idea! But I think it will be difficult right now. There are no APIs related to themes and I need to organize the specifications. Anyway, thanks for your comment. :)

Dunky13 commented 4 years ago

It would be much preferred, or even apply custom themes?

beeman commented 4 years ago

One possible solution that might be relatively easy to implement is moving the colors to CSS variables, they seem pretty well supported.

That way the dev using the library can set their own values and override the editor's theme.

I'm happy to take a stab at implementing that :)