feat(banner): adopt CoDev Code's "codev" wordmark, theme-aware - #222
Merged
Conversation
Replace the block CODEV logo with the lowercase "codev" pixel wordmark from codev-code (packages/tui/src/logo.ts): "co" on the left, "dev" on the right, no drop shadow, bold. "dev" is always the brand red (#ee0033); "co" is the brand navy (#19224c) on a light terminal and the terminal's default foreground on a dark or unknown one -- the readable counterpart of navy-on-white, matching how codev-code's own CLI banner handles the undetectable case. Add src/lib/terminal-theme.ts#terminalIsLight, a synchronous best-effort light/dark detector via COLORFGBG (the only signal that avoids an escape-sequence round trip that would fight Ink for the TTY); it returns null when unknown so the banner falls back to the always-readable default foreground. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The "codev" wordmark's top row is near-empty (just the tittle of the
"d"), so the pre-existing padding={1} top line on each app's outer Box
made the banner read as floating two lines below the user's command.
Switch those wrappers to paddingX + paddingBottom, keeping side and
bottom spacing while removing the top gap. The block logo hid this
because its first row was solid.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Replaces the block
CODEVASCII logo with CoDev Code's lowercase "codev" pixel wordmark (ported verbatim fromcodev-code/packages/tui/src/logo.ts), and makes it light/dark aware.#ee0033.#19224con a light terminal (matching CoDev Code's TUImode === "light"branch) and the terminal's default foreground on a dark or unknown one — the readable counterpart of navy-on-white, mirroring how CoDev Code's own CLI banner handles the undetectable case.AI Coding Agent Hub v<version>subtitle.Rendered
Dark / unknown terminal —
coin default foreground,devred:Light terminal (
COLORFGBG=0;15) —coswitches to brand navy,devstays red.New: theme detection
src/lib/terminal-theme.ts#terminalIsLight— a synchronous, best-effort light/dark detector viaCOLORFGBG, the only signal available without an escape-sequence round trip that would fight Ink for the TTY. Returnstrue/false/null; onnull(unknown) the banner falls back to the always-readable default foreground.Tests
Banner.test.tsxupdated to assert the new wordmark glyphs.tests/lib/terminal-theme.test.tscovering light/dark/rxvtfg;default;bg/unset/malformed cases.Validation
pnpm fix,pnpm typecheck,pnpm test(1256 passed), andpnpm build && node dist/index.js --versionall pass (also enforced by the pre-commit hook).🤖 Generated with Claude Code