misc/theme-forja: new theme (dark brushed steel, CSS only)

Open
#5,921 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
css, scss
Domain
frontend

Research direction

The theme plugin is proposed under misc/theme-forja, laid out like misc/theme-cicada, with the stylesheets under src/opnsense/www/themes/forja/. Start by comparing that layout with the cicada plugin and the default opnsense theme to see which classes and assets must stay untouched. Before any patch, the maintainers need to answer the four open questions in the body: logo and trademark, Sass compiler, plugin name, and light variant. Done means the maintainers have decided those points and the plugin builds and installs cleanly.

Written by the indexing model from the issue text.

Description

incomplete

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

Hi, before opening a PR I'd like your feedback on a new theme. Our community is crucial in shaping the ongoing development of our open-source OPNsense® software products.

OPNsense has a handful of theme plugins, but none with a metal / industrial look. I made one for my own firewall and would like to share it as a plugin, without touching core.

Describe the solution you'd like

What it is

Forja ("forge" in Portuguese) is a dark theme derived from the default opnsense theme. It keeps the original page structure, classes and JavaScript untouched and only changes the look:

  • brushed-steel surfaces in three tones (page background < menu and rails < content plates), done with inline SVG noise, no image files;
  • content panels as framed plates with small rivets in the corners, engraved section titles, raised buttons and sunken input fields;
  • ember-orange accent (#F97316) for the active menu item, links, focus ring and primary buttons;
  • the main text/background pairs checked for WCAG contrast ≥ 4.5:1;
  • covers the dashboard widgets, Tabulator and bootgrid grids, MVC forms and dialogs, the legacy *.php form tables, the sticky Save bar, the log viewers and mobile layouts (390–800 px, no horizontal page scrolling);
  • uses the Source Sans Pro fonts and glyphicons already served by the default theme (no extra fonts, no external resources, works offline).
Package

Same layout as the existing themes (e.g. misc/theme-cicada):

misc/theme-forja/
  Makefile            PLUGIN_NAME=theme-forja, PLUGIN_VERSION=1.0, PLUGIN_NO_ABI=yes
  pkg-descr
  src/opnsense/www/themes/forja/
    LICENSE           BSD 2-Clause (+ MIT notices for the Bootstrap 3 and bootstrap-select partials)
    assets/           SCSS sources and build notes
    build/css/        compiled stylesheets
    build/images/     logo, favicon, caret and the small SVG icons used by the stylesheet

About 100 files and 1.3 MB, most of it the SCSS sources and the Bootstrap partials. There is no theme.js: the plugin is CSS only. Some behaviour I built for my own firewall (grid column fitting, expand/collapse buttons for trees, chart colours that follow the theme) needs JavaScript; if you find any of it useful I would propose it separately to opnsense/core, one small PR each, so it works for every theme.

Inline data: SVGs are moved to files under build/images/ after compiling, because the legacy pages have a Content Security Policy without data: in img-src.

Questions before I open the PR
  1. Logo. The theme uses the OPNsense 10-year anniversary logo, with the official drawing and orange. Is that acceptable regarding the OPNsense® trademark, or should the plugin ship the logo of the default theme?
  2. Sass compiler. I compiled with sassc (libsass). A handful of expressions in the Bootstrap 3 partials use calc() for Sass math, which libsass doesn't evaluate, so I adapted them. Which compiler do you use for theme plugins, so I can keep the partials identical to yours?
  3. Name. Is theme-forja fine, or would you prefer an English name?
  4. Light variant. I also have a light version (lighter brushed steel). Would you rather have it in the same plugin as a second theme folder, later in a follow-up, or not at all?

I'm happy to keep the PR small and to maintain the plugin. Maintainer: igortoledo007 (please reach me here on GitHub).

Describe alternatives you've considered

  • Keeping it as a local customisation: works for me, but nobody else can install or update it.
  • Changing the default theme: themes are meant to live in plugins, and the default look should stay as it is.

Additional context

AI disclosure

Developed with AI assistance: Claude (Anthropic), a mix of the Fable 5.2 and Opus 5.5 models. I reviewed and tested the result on my own OPNsense 26.7.9 firewall.

Screenshots

Taken on my own firewall running OPNsense 26.7.9; addresses, interface, gateway and host names are blurred.

  1. Login
  2. Dashboard
  3. Firewall: Rules
  4. Lobby: License
  5. Form with the sticky Save bar (System: Settings: Administration)
  6. Confirmation panel (Power: Reboot)
01-login 02-dashboard 03-rules 04-license 05-form-save 06-reboot
Dominant language
PHP
Stars
1.2k
Forks
926
Avg merge
1d 10h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opnsense/plugins

All issues in opnsense/plugins

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.