Skip to content

feat(cli): support adaptive theme syntax in --theme argument#503

Merged
pamburus merged 1 commit intomainfrom
feature/theme-arg
Feb 3, 2026
Merged

feat(cli): support adaptive theme syntax in --theme argument#503
pamburus merged 1 commit intomainfrom
feature/theme-arg

Conversation

@pamburus
Copy link
Owner

@pamburus pamburus commented Feb 3, 2026

Summary

The --theme argument now supports adaptive theme syntax, allowing different themes for dark and light modes directly from the command line.

Changes

Adaptive theme syntax for --theme

The --theme flag now accepts two forms:

  • Fixed: --theme my-theme — uses the same theme regardless of mode
  • Adaptive: --theme "dark:one-dark,light:one-light" — uses different themes depending on the resolved mode

Previously, the --theme flag only accepted a plain theme name and always overrode the config with a fixed theme. Adaptive themes configured in config.toml were lost when --theme was specified. Now, the CLI argument supports the same expressiveness as the config file.

The default value from the config is now shown in --help output.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.43%. Comparing base (c434cc2) to head (728c987).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #503      +/-   ##
==========================================
+ Coverage   77.27%   77.43%   +0.16%     
==========================================
  Files          31       31              
  Lines        4140     4166      +26     
==========================================
+ Hits         3199     3226      +27     
+ Misses        941      940       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pamburus pamburus marked this pull request as ready for review February 3, 2026 22:47
@pamburus pamburus merged commit df912a0 into main Feb 3, 2026
12 checks passed
@pamburus pamburus deleted the feature/theme-arg branch February 3, 2026 22:47
@pamburus pamburus added the enhancement New feature or request label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant