mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Make it easy to use custom styles

Open chrispsn opened this issue 8 years ago • 3 comments
trafficstars

chrispsn avatar Mar 19 '17 05:03 chrispsn

Part of the way there (toggleable themes) but needs a better way to add user-created themes than 'edit the source code'. https://github.com/chrispsn/mesh/commit/a42cfbd78c0282722dd9d191ebf76d926a7b73b3

chrispsn avatar Mar 04 '18 09:03 chrispsn

Themes should come in subfolders in an 'extras' folder (eg 'extras/some-theme-name/style.css').

try-mesh.html should load the default, embedded theme, then override it with a style.css file in the same folder (if there is one). This allows users to just copy across themes from the themes directory instead of having to rename them.

It also simplifies the custom theme code, because theme selection and browsing is now handled via the file system UI.

Implies CodeMirror themes are no longer used...?

But if we did include theme selection in the Mesh UI - it would be cool to apply the theme as soon as the mouse is hovered over. Maybe something a separate themes website could do.

chrispsn avatar Jan 03 '19 11:01 chrispsn

Specify theme via querystring? Could let us easily create a gallery of themes (via embedded iframes).

chrispsn avatar Jan 24 '19 13:01 chrispsn