Repository navigation
Closed
Labels
Description
Problem
- In dark mode a theme's dark profile beats your own
tokens. Profiles apply after the main file (Sources/StableBar/ConfigurationLoader.swift:241), so with Slate selected,"tokens": { "text": "#c2410c" }in the main file colours text in light mode and reverts to Slate's text colour in dark mode. README "Theme packages" says your settings override the theme's. - A colour is one fixed value. Only unset colours follow the system appearance (
systemColor,Sources/StableBar/Configuration.swift:146), so any colour you set, in JSON or with a Customize colour well, stops following it. With the built-in look, setting only a dark background gives dark text on it in light mode, since the text colour still follows the system. - Light and dark variants need profiles, and a main file with its own
profilesdrops the theme's (Merge profiles by name across includes, packages and the main file #24). - The built-in look isn't a theme. It's hard-coded (
WidgetStyle.lightand.dark,Configuration.swift:140) and defines none of the nine shared tokens, so@token.textMutedis an error without a theme. No theme ships with the app, so setup and Customize offer only Built-in until you install a package from a folder. - Setup's Light and Dark write five fixed colours into
defaults(Sources/StableBar/SetupPreferences.swift:47), which beat any theme chosen later in Customize (Choosing a theme in Customize keeps colours from setup and the starter configuration #28).
Proposal
- A colour is
"#RRGGBB[AA]"or{ "light": "…", "dark": "…" }, drawn as a dynamicNSColorlike unset colours today. Tokens substitute whole values, so"@token.text"carries a pair unchanged. - Themes define pairs instead of appearance profiles. Profiles stay for power, displays and apps.
- Ship the built-in look as a bundled theme that defines the nine tokens, used when
themeis absent, plus two or three more such as Slate. Bundled themes need no install. - Replace setup's Light and Dark colours with one key that forces a variant, for example
"bar": { "appearance": "dark" }, which profiles'when.appearancealso follows. - Update the schema, README "Layout and style" and "Theme packages", and
examples/themes/slate.
Theme packages have only shipped in v0.5.0-beta.31, so their format can change before a stable release.
Possible today
Partly. A theme's dark profile switches its tokens with the system while the main file has no profiles. Setting a property directly, such as defaults.accent, beats the theme in both modes but no longer follows light and dark.
Related
- Merge profiles by name across includes, packages and the main file #24 (merge profiles by name): themes stop depending on it; it still matters for modules.
- Resolve widget styles in one place, with named states #15 (named states):
defaults.stateswould style hover, focused and warning states from the same tokens. - Pick a theme from installed theme packages #19 / feat: pick a theme from installed theme packages #26: theme packages and the nine shared tokens.
- Choosing a theme in Customize keeps colours from setup and the starter configuration #28: colours from setup hiding a theme chosen in Customize.
Triaged by Claude Code (Claude Opus 5.5).
Activity
stablebar-releases commentedon Oct 21, 2026
🎉 This issue has been resolved in version 0.5.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀