Skip to content

v2.3.6 — Light theme by default; vanilla YOURLS readability fix

Choose a tag to compare

@toineenzo toineenzo released this 26 Apr 01:57

A small but important readability fix for anyone running the plugin on a vanilla YOURLS install (no Sleeky-backend).

🐛 Fix

Settings page was unreadable without Sleeky

The settings UI was hard-coded to a dark surface (#1f2937 backgrounds, light text) so dark-on-dark inputs lined up cleanly with Sleeky-backend's dark theme. On a vanilla YOURLS admin (white page), the same dark inputs and dark cards looked broken — barely-legible label text bleeding into the page background, dark input boxes you couldn't see your typing in.

Fix: invert the default. The token block at the top of admin.css now holds the light palette (#fff backgrounds, #111827 text), which is what vanilla YOURLS needs. A new .lfp-theme-dark scope re-applies the dark palette only when admin.js spots Sleeky-backend's <meta name="sleeky_theme" content="dark"> on the admin page and tags <html> with that class.

Result

Setup Theme
Vanilla YOURLS Light (matches white admin)
Sleeky-backend with dark Dark
Sleeky-backend with light Light
No Sleeky but browser in dark mode Light (matches what YOURLS itself is rendering)

The surface now always tracks whatever YOURLS chrome is actually being shown around the plugin page, instead of assuming dark-on-dark.

⬇️ Installation

cd /path/to/yourls/user/plugins
rm -rf yourls-link-front-page
unzip /path/to/YOURLS-Link-Front-Page-2.3.6.zip

…or git pull. No database changes.

Full changelog: v2.3.5…v2.3.6