All Projects → hannesfrank → remnote-css-rem-types

hannesfrank / remnote-css-rem-types

Licence: other
Custom CSS for RemNote to change how flashcard generating Rems look.

Programming Languages

CSS
56736 projects

Projects that are alternatives of or similar to remnote-css-rem-types

remnote-library
📜 Magical package manager for RemNote.io https://hannesfrank.github.io/remnote-library
Stars: ✭ 35 (+16.67%)
Mutual labels:  remnote, remnote-css
RemNoteTheme
Custom CSS Themes for RemNote
Stars: ✭ 58 (+93.33%)
Mutual labels:  remnote, remnote-css
PKMigrator
Tools to migrate between various Personal Knowledge Management Utilities
Stars: ✭ 36 (+20%)
Mutual labels:  remnote

RemNote Card Type Styles

A Custom CSS for RemNote to change how flashcard generating rems look.

Quickstart:

@import URL("https://hannesfrank.github.io/remnote-css-rem-types/everything.css");

default_style custom_style

Features:

Visual indications for:

  • practice direction
  • rem types (plain, multi-line, list, set)
  • card types (concept, descriptor, question [and slot]).

Allow custom text styling by resetting format for concept (bold) and descriptor (italic).

Note: There are still some glitches as the RemNotes markup is not easy to handle.

Installation

The style consists of multiple modules of which you can chose the parts you want to enable:

  • practice-direction.css: arrows (⇔, ⇏) instead of ::

  • rem-type*.css: Icons for Concept, Descriptor, Question and Slot. There are 2 variants of which you can chose one:

    • rem-type.css: Using RemNotes SVG icons.
    • rem-type-simple.css: Use <C>, <D>, <Q> and <S>.
  • card-type.css: Icons for Multiline, List, Set.

  • text-style.css: Disable bold/italic formatting for concept, question and descriptor.

  • Open the Custom CSS page in RemNote.

  • Create a new blank template block.

  • Paste the layout

    1. Recommended: Include everything with default settings. This way you get all future updates.
      @import URL("https://hannesfrank.github.io/remnote-css-rem-types/everything.css");
    2. Custom: Only include the features you like.
      @import URL("https://hannesfrank.github.io/remnote-css-rem-types/practice-direction.css");
      @import URL("https://hannesfrank.github.io/remnote-css-rem-types/rem-type.css");
      /* OR: @import URL("https://hannesfrank.github.io/remnote-css-rem-types/rem-type-simple.css"); */
      @import URL("https://hannesfrank.github.io/remnote-css-rem-types/card-type.css");
      @import URL("https://hannesfrank.github.io/remnote-css-rem-types/text-style.css");
    3. Expert: You know CSS and want to tweak specific parts? Copy the code directly from the files above.

Note: If you do not want to get bothered by future updates or want to install a develop version from another branch, you can import a specific version with jsdelivr

@import URL("https://cdn.jsdelivr.net/gh/hannesfrank/remnote-css-rem-types@8fe69d0/card-types.css");

TODO

  • Prepare for offline usage. You have to this style with @import because it requires extra SVG icons. These should be embedded directly in the CSS.

See also my development notes.

Contributing

I am not a designer. This is just a proof of concept. If you have a good design, feel free to open an Issue to discuss.

If you can improve something a Pull Request is very welcome!

Developing with Live Reload

Setup a workspace in Chrome DevTools. See e.g. StackOverflow: How to save CSS changes of Styles panel.

  • Serve the project folder on e.g. localhost:5500. I don't know yet if this has to be a live server, but probably not as Chrome accesses the file system directly.
  • Add the styles in development to RemNote like this:
@import URL("http://127.0.0.1:5500/practice-direction.css");
@import URL("http://127.0.0.1:5500/rem-type.css");
@import URL("http://127.0.0.1:5500/card-type.css");
@import URL("http://127.0.0.1:5500/text-style.css");
  • Open DevTools > Sources > Filesystem and add the project folder as a workspace using the little +. The icon of the corresponding .css files should have a little green circle now and hovering over the icon shows how they are linked.
  • You can edit now both in your editor and in DevTools. I recommend enabling autosave in your text editor.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].