openwebrxplus-plugins

This receiver plugin adds a UI Basic theme that reproduces the flat dark colour palette originally built into the uikit plugin — near-black surfaces with a subtle cool tint. It is the recommended companion theme for uikit.

Load

Add to your init.js after uikit:

await Plugins.load('https://0xaf.github.io/openwebrxplus-plugins/receiver/uikit/uikit.js');
await Plugins.load('https://0xaf.github.io/openwebrxplus-plugins/receiver/ui_basic_theme/ui_basic_theme.js');

Then select UI Basic in the OWRX+ theme list (Settings → Theme).

What it does

CSS variables defined

Variable Value
--theme-color1 #0c0e12
--theme-color2 #11141a
--uikit-accent #6f89ff
--uikit-accent-dim rgba(111,137,255,.25)
--uikit-btn-bg rgba(255,255,255,.06)
--uikit-btn-text #e9edf5
--uikit-btn-primary-bg #3b5bfd
--uikit-btn-primary-text #ffffff
--uikit-btn-danger-bg rgba(226,76,76,.15)
--uikit-btn-danger-border rgba(226,76,76,.4)
--uikit-btn-danger-text #ff9e9e
--uikit-btn-ghost-border rgba(255,255,255,.12)
--uikit-btn-ghost-text #d9dde6
--uikit-text #f6f7f9
--uikit-text-dim #cdd2db
--uikit-text-muted #9aa3b2
--uikit-border rgba(255,255,255,.08)
--uikit-border-strong rgba(255,255,255,.35)
--uikit-border-mid rgba(255,255,255,.12)
--uikit-input-bg linear-gradient(#373737, #4F4F4F)
--uikit-input-bg-color #373737
--uikit-input-option-bg #373737
--uikit-native-btn-bg linear-gradient(#373737, #4F4F4F)
--uikit-native-btn-bg-color #373737
--uikit-native-btn-hover-bg #474747

Creating a custom uikit theme

To create your own theme, register a theme option in the OWRX+ theme selector and define any --uikit-* variables you want to override on body.theme-yourtheme:

// yourtheme.js
Plugins.yourtheme = Plugins.yourtheme || {};
Plugins.yourtheme._version = 0.1;
Plugins.yourtheme.no_css = false; // loads yourtheme.css automatically

Plugins.yourtheme.init = function () {
    $('#openwebrx-themes-listbox').append(
        $('<option>').val('yourtheme').text('Your Theme')
    );
    return true;
};
/* yourtheme.css */
body.theme-yourtheme {
    --theme-color1: #1a0a2e;
    --theme-color2: #2a1045;
    --uikit-accent: #c084fc;
    --uikit-btn-primary-bg: #7c3aed;
    /* ... only override what you need */
}

uikit reads all --uikit-* values with fallbacks, so undefined variables automatically use the built-in dark defaults.

Code

Code is in the Github repo.