mesh
mesh copied to clipboard
Make it easy to use custom styles
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
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.
Specify theme via querystring? Could let us easily create a gallery of themes (via embedded iframes).