Supported features of Base16 LoqSeq
masterThe Base16 LoqSeq theme provides:
- Compatibility: Supports Logseq v0.0.4.1.
- Theming: Basic color scheme application.
- Editor Support: Includes styles for CodeMirror.
repository·master·Indexed 18 days ago
https://github.com/logseq/logseq-plugin-samplesA collection of sample implementations of the Logseq Plugin API serving as a reference for developers. Includes examples for using Logseq.App hooks like onInputSelectionEnd, registering slash commands, manipulating editor appearance via provideUI and provideStyle, and utilizing Logseq.DB for Datascript queries. Featured samples include a translator, emoji picker, Pomodoro timer, IMDb Top 250 importer for DB graphs, and various theme implementations.
The Base16 LoqSeq theme provides:
The plugin demonstrates how to manipulate a Logseq DB graph using the logseq.Editor API. Key methods used in index.tsx include:
Creating Metadata & Tags:
logseq.Editor.upsertProperty(...): Creates or updates properties.logseq.Editor.createTag(...): Creates new tags like #movie or #director.logseq.Editor.addTagProperty(...): Attaches properties specifically to a tag.Importing Individual Items:
logseq.Editor.createPage(...): Creates the actual movie page.logseq.Editor.addBlockTag(...): Applies tags to specific blocks/pages.logseq.Editor.upsertBlockProperty(...): Sets property values on a block.Performance Tip: The plugin uses a 100ms throttle between imports via setTimeout to avoid overwhelming the Logseq process.
To run this sample locally, ensure you are using at least Logseq App version 0.4.6. Follow these steps:
yarn && yarn buildyarn && yarn buildTo use or develop this plugin, you must meet the following requirements:
The plugin uses Vite and React 18. To start developing:
npm installnpm run devThe development entry point is configured in package.json at http://localhost:5173.
To build the plugin for production:
npm run buildnpm install
npm run dev
npm run buildTo run this sample plugin locally, follow these steps:
npm install && npm run buildLoad unpacked plugin to point to the built plugin directory.npm install && npm run buildFollow these steps to run a sample plugin from this repository in your local Logseq instance:
git clone https://github.com/logseq/logseq-plugin-samplesDeveloper mode.README.md to see if it requires a build step. If it does, run:npm install && npm run build<kbd>t</kbd><kbd>p</kbd> to navigate to the plugins page.Load unpacked plugin button and select the directory of the sample you wish to load.Note: To ensure stability and performance, keep the @logseq/libs SDK up-to-date.
git clone https://github.com/logseq/logseq-plugin-samples
npm install && npm run buildYou can apply Base16 color schemes to Logseq using one of two methods:
Manual Installation:
css folder in this repository to find a color scheme you like.logseq/custom.css.Browser Extension:
To run this sample plugin, use the Logseq Desktop client's plugin management interface:
Load unpacked plugin.Load unpacked pluginTo run this sample plugin locally in Logseq Desktop, follow these steps:
npm install && npm run buildLoad unpacked plugin option to select the built plugin directory.npm install && npm run buildTo run and develop Logseq plugin samples, you need the following installed on your system:
If you are unsure how to install Node.js, it is recommended to use Node Version Manager (NVM). You can install NVM via their installation script, then install Node using:
nvm install 22 # For current version
# OR
nvm install 20 # For LTS versionnvm install 22To run this sample plugin locally, follow these steps:
npm install && npm run buildLoad unpacked plugin option to select the built plugin directory.npm install && npm run build