Skip to content

fix: light theme text contrast + dynamic CLI formatting - #4

Open
Abderraouf-yt wants to merge 2 commits into
ZakyTm:developfrom
Abderraouf-yt:fix/text-contrast-cli-format
Open

fix: light theme text contrast + dynamic CLI formatting#4
Abderraouf-yt wants to merge 2 commits into
ZakyTm:developfrom
Abderraouf-yt:fix/text-contrast-cli-format

Conversation

@Abderraouf-yt

Copy link
Copy Markdown

Two targeted fixes:

1. Light theme contrast (WCAG AA)

  • --text-muted on light was #5c5752c4 blended to 3.55:1 contrast against --bg-canvas — fails WCAG AA for small body text. Changed to #6d6763 (full opacity, ~4.8:1).
  • --text-muted on dark bumped from #9fa4abad (4.08:1) to #a0a5abc0 (~4.6:1).
  • Light --text-primary and --text-secondary cleaned up: removed unnecessary alpha channels, solid hex values.

2. CLI man-ai output formatting

  • Added process.stdout.columns detection so horizontal rulers and centering adapt to terminal width.
  • Dynamic ruler() function replaces hard-coded width.
  • --list output now computes max ID length for aligned columns.
  • Cleaner line-by-line markdown parser.

Files changed: src/styles/global.css, bin/cli.mjs

…mp, primary/secondary opacity cleanup

- Light --text-muted: #5c5752c4 (3.55:1 against bg-canvas) → #6d6763 full opacity (~4.8:1)
- Dark --text-muted: #9fa4abad (4.08:1) → #a0a5abc0 (~4.6:1)
- Light --text-primary: removed unnecessary alpha, solid #1e2735
- Light --text-secondary: removed alpha, solid #3f4d5c (5.75:1 unchanged)
…al rulers

- Detect process.stdout.columns for responsive formatting
- Dynamic ruler() function instead of hard-coded width
- Dynamic centering for CAIL(1) header
- Fix list display to use computed max id length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant