Skip to main content

Contributions

Your plugin can add a number of custom styles and functionalities to RemNote, including powerups, slash commands, menu items and Custom CSS. These are called Contributions. Widgets are also a type of Contribution. You learned about them on the Widgets page.

Contributions are registered, usually in your index widget, by by calling a registerCONTRIBUTION_NAME function.

You can update some contributions by calling the register function again, e.g. to supply a new CSS string.

Example: Adding Custom CSS

You can register any text as Custom CSS like this:

plugin.app.registerCSS(
'text-color',
`.rem-text { color: var(--rn-${color}-80);`,
);

🚧 Under Construction 🚧

More docs coming soon.