Skip to content

0.4.0 - Dark theme and full screen

Choose a tag to compare

@kojak8791 kojak8791 released this 21 Oct 12:15
· 23 commits to main since this release
Immutable release. Only release title and notes can be modified.

Dark theme, full screen, and an option to turn the Markdown shortcuts off. No breaking changes: the new toolbar item is on as soon as you update, the dark colors only when your page sets color-scheme.

Added

  • Editor option markdownShortcuts (default true): false turns the Markdown shortcuts off, so #, >, * and the other Markdown characters are typed as text. Also a prop of the React, Vue and Svelte components.
  • Dark theme: every color of the toolbar, of the popovers and of content.css has a dark value, used when the page sets color-scheme: dark (or light dark to follow the system). Without color-scheme, and in browsers without light-dark(), nothing changes. The gap cursor takes the color of the text.
  • Toolbar item fullscreen, last in the default toolbar: the element that holds the toolbar and the editor fills the browser window, over the whole page (the browser's top layer, through the Popover API; older browsers: --stilo-z-fullscreen). Only the text scrolls: the toolbar and the status bar stay at the top and the bottom, with or without sticky. Esc in the editor leaves full screen, and the page scrolls back where it was. Meanwhile the page does not scroll and shows no scrollbar (class stilo-fullscreen-page on <html>). ToolbarContext gains toggleFullscreen() and isFullscreen(), and isActive of a custom button receives the context as second argument.