Plugin Development

Learn how to customize the theme to fit your needs, preview changes and export the plugin.

This is a living document which means it is work in progress, not completed yet and can change at any time while the project is still in development major version zero 0.y.z!

This page documents how to develop the theme plugin — from requirements to the deployment and local installation steps.

Requirements

Download and install IntelliJ with a minimal version of 2019.1 or higher.

To develop IntelliJ platform plugins the DevKit plugin (bundled by default) must be enabled.

Setup

Download

Clone the Nord JetBrains repository from GitHub to any path:

git clone https://github.com/arcticicestudio/nord-jetbrains.git

To get the project without Git download the project as .zip archive file from the GitHub repository or click on the download button below. Afterwards extract the archive to any path.

Download
Screenshot showing the GitHub repository web UI to download the project repository
Download the project repository from GitHub

Both methods will use the develop branch to work with the latest development state.

Import the project use IntelliJ's Open... wizard from the welcome screen and browse to the path of the cloned/extracted repository.

Development

Workflow

Nord JetBrains follows the official workflow documentation to

  1. Customize the UI icons and Controls
  2. Bundle the already existing editor color theme
  3. Build, debug and test the theme plugin
  4. Deploy and publish the theme plugin

For details about the general UI design pattern please refer to the JetBrains UI guidelines.

Theme Preview

IntelliJ comes with a builtin function to preview the currently opened platform plugin project.
Open the nord.theme.json file and click on the play icon to apply the current state of the UI theme.

Screenshot showing the UI theme preview icon bar when the theme definition file is opened
UI theme preview icon bar when the theme definition file is opened

To apply changes made while the preview is enabled click on the double play icon and disable the preview again using using the stop icon.

Screenshot showing the enabled UI theme preview icon bar when the theme definition file is opened
UI theme preview icon bar when enabled

Visual Testing

The IntelliJ SDK provides a lot of tools to develop plugins by enabling the internal mode that will allow to show e.g. the LaF Defaults.

To enable the internal mode open the advanced IDE properties and add the following key-value pair:

idea.is.internal=true

Restart IntelliJ to enable the new property.

Screenshot showing the menu entry to edit the IDE properties
Menu entry to edit the IDE properties

Deployment

IntelliJ comes with builtin tools to build and deploy plugins.

  1. Go to Build and Build Project to copy the project files to the /out folder and generate required metadata.
  2. Again go to Build and choose Select All Plugin Modules For Deployment to generate the JAR file.
Screenshot showing the menu entries for builtin tools to build and deploy platform plugins
Menu entries for builtin tools to build and deploy platform plugins

Local Installation

A generated JAR file can be locally installed to use the theme without uploading it to the JetBrains plugin repository.
Go to Settings / PreferencesPlugins, click on the gear icon and select „Install Plugin From Disk...“.

Screenshot showing the menu to install plugins locally
Local plugin installation

Select the plugin JAR file and restart IntelliJ.

Follow the Installation & Activation Guide for more details how to enable the UI theme and editor color scheme.