Skip to content

feat(tui): tint response structure, scan bands, and table zebra rows in markdown - #446

Merged
mohitranka merged 1 commit into
mainfrom
feat/response-structure-tokens
Aug 27, 2026
Merged

mohitranka merged 1 commit into
mainfrom
feat/response-structure-tokens

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Add three optional palette tokens to ThemePalette: structure (section labels and list markers; falls back to info), scan_band (ground behind outermost list blocks; falls back to surface), and zebra_row (even table body rows; falls back to a 50/50 background/surface blend derived per theme).
  • Markdown renderer editorial treatment: H1/H2 render as uppercased section labels with a hairline rule, list markers take the structure hue while prose stays neutral, outermost list blocks get a scan-band ground, and table body rows zebra-stripe.
  • Both built-in themes (forge-dark, forge-light) declare the tokens explicitly; older user theme drops keep parsing via fallbacks (covered by new tests).
  • Document the treatment in FORGE-DESIGN.md.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --package forge-config --package forge-tui --all-targets --locked

…in markdown

Add three optional palette tokens: `structure` (section labels and list markers, falling back to `info`), `scan_band` (ground behind outermost list blocks, falling back to `surface`), and `zebra_row` (even table body rows, falling back to a 50/50 background/surface blend). H1/H2 render as uppercased section labels with a hairline rule; list markers take the structure hue while prose stays neutral; tables zebra-stripe their body rows. Both built-in themes declare the tokens explicitly, older theme drops keep parsing via fallbacks, and FORGE-DESIGN.md documents the treatment.

cargo fmt --check, workspace clippy -D warnings, forge-config + forge-tui tests all pass.
@mohitranka
mohitranka merged commit 8ada2ec into main Aug 27, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Sep 11, 2026
…in markdown (#446)

Add three optional palette tokens: `structure` (section labels and list markers, falling back to `info`), `scan_band` (ground behind outermost list blocks, falling back to `surface`), and `zebra_row` (even table body rows, falling back to a 50/50 background/surface blend). H1/H2 render as uppercased section labels with a hairline rule; list markers take the structure hue while prose stays neutral; tables zebra-stripe their body rows. Both built-in themes declare the tokens explicitly, older theme drops keep parsing via fallbacks, and FORGE-DESIGN.md documents the treatment.

cargo fmt --check, workspace clippy -D warnings, forge-config + forge-tui tests all pass.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…in markdown (#446)

Add three optional palette tokens: `structure` (section labels and list markers, falling back to `info`), `scan_band` (ground behind outermost list blocks, falling back to `surface`), and `zebra_row` (even table body rows, falling back to a 50/50 background/surface blend). H1/H2 render as uppercased section labels with a hairline rule; list markers take the structure hue while prose stays neutral; tables zebra-stripe their body rows. Both built-in themes declare the tokens explicitly, older theme drops keep parsing via fallbacks, and FORGE-DESIGN.md documents the treatment.

cargo fmt --check, workspace clippy -D warnings, forge-config + forge-tui tests all pass.
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