fix: light theme text contrast + dynamic CLI formatting - #4
Open
Abderraouf-yt wants to merge 2 commits into
Open
fix: light theme text contrast + dynamic CLI formatting#4Abderraouf-yt wants to merge 2 commits into
Abderraouf-yt wants to merge 2 commits into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two targeted fixes:
1. Light theme contrast (WCAG AA)
--text-mutedon light was#5c5752c4blended to 3.55:1 contrast against--bg-canvas— fails WCAG AA for small body text. Changed to#6d6763(full opacity, ~4.8:1).--text-mutedon dark bumped from#9fa4abad(4.08:1) to#a0a5abc0(~4.6:1).--text-primaryand--text-secondarycleaned up: removed unnecessary alpha channels, solid hex values.2. CLI
man-aioutput formattingprocess.stdout.columnsdetection so horizontal rulers and centering adapt to terminal width.ruler()function replaces hard-coded width.--listoutput now computes max ID length for aligned columns.Files changed:
src/styles/global.css,bin/cli.mjs