HamzaHassanain/polyman

Support for Light Theme in Formatter

Open

#13 opened on Nov 29, 2025

 (0 comments) (0 reactions) (0 assignees)TypeScript (2 forks)auto 404
UIcligood first issuethemes

Repository metrics

Stars
 (33 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently, the Formatter class in formatter.ts is designed with a Codeforces-themed dark styling. This issue proposes adding support for a light theme while ensuring the formatter remains flexible for future theme additions.

Scope

Modify the Formatter class to support a light theme. Refactor the Formatter class to make it extensible for additional themes in the future. Proposed Changes

Theme Support:

Introduce a mechanism to switch between themes (e.g., light and dark). Define a light theme with appropriate colors and styles.

NOTE Ensure the current dark theme remains the default to avoid breaking existing functionality.

Acceptance Criteria

  • A light theme is implemented with appropriate colors and styles.
  • The Formatter class is refactored to support multiple themes.
  • The dark theme remains the default.
  • Unit tests are added or updated to cover the new functionality.

Additional Notes

This issue focuses solely on modifying the Formatter class. No changes to other parts of the application are required. Suggestions for design patterns or approaches to make the formatter extensible are welcome.

References

Current implementation: src/formatter.ts

Contributor guide