Skip to content

Pick a theme from installed theme packages #19

Closed

Description

@M4n0x

Problem

A theme today is an include or package that sets tokens, defaults, bar, groups and popup styles (README "Modules, templates and overrides" and "Local widget packages"). That works, but StableBar doesn't know it's a theme:

  • Several can be enabled at once, and they layer over each other without warning.
  • Setup and Customize have no theme picker, only package enabling.
  • Nothing defines what a theme provides, so widget packages can't rely on token names and hard-code colours instead.
  • The Packages tab reviews a theme like any package that might run commands, although a theme needs none.

Proposal

  • Add "kind": "theme" to package.json. A theme may contain only tokens, defaults, bar, groups, popup and workspace styles, profiles (for light and dark variants) and static assets. No widgets, commands, providers or environment variables. The loader rejects anything else, so enabling a theme needs no command review.
  • Allow one active theme, "theme": { "id": "…", "version": "…" } in the root configuration. It applies before widget packages and includes, so the user's own settings still win.
  • Document the token names a theme should define, for example surface, surfaceRaised, text, textMuted, accent, track, hairline, warning, critical, plus state styles once Resolve widget styles in one place, with named states #15 lands. Widget packages can then write @token.textMuted and work under any theme.
  • Add a theme picker to setup's appearance step and to Customize, with today's light/dark look as the built-in theme.
  • Add an example under examples/themes/.

Possible today

As a convention: put the theme in an include or a package. There's no exclusivity, picker, no-commands guarantee or shared token names.

Related

#15 (named states, defaults.states). #9 (edit profiles in Customize): a theme's light and dark variants are profiles.

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 15, 2026
  2. stablebar-releases commented on Oct 21, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.5.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions