Skip to content

feat(callouts): draw callouts in the Soft family with a required bold title - #636

Merged
aicayzer merged 1 commit into
mainfrom
ui/callouts
Oct 25, 2026
Merged

aicayzer merged 1 commit into
mainfrom
ui/callouts

Conversation

@aicayzer

Copy link
Copy Markdown
Contributor

Draws every callout as a soft tinted panel with a bold title and the body under it. There is no border, shadow or icon.

What changes

  • Callout takes a required title. The icon prop is gone, because nothing passed it.
  • Four kinds of note have a panel, title and body color in light and dark: warning (apricot), info (blue, also tip and idea), error (red) and success (mint). They are the --marfa-callout-<kind>-bg, -title and -body custom properties in src/styles/app.css, so other components can use them.
  • The content lint fails a <Callout with no title=, and has a test that the rule fires on a bad sample.
  • The seven callouts on the pages now have a short title that says what happens. The facts are unchanged.
  • STYLE.md describes the component: title required, no icon, warn for a loss or something that can't be undone.
  • The Markdown copy prints the title in bold, then the body, as before.

Checked

pnpm build, pnpm build:status, pnpm types:check and pnpm test pass. All seven callouts were viewed in light and dark, and /overview.md was read.

This is a draft until the before and after comparison is approved.

… title

Callouts take a tinted panel, a bold title in the tint's dark color and the body under it, with no icon. The colors are the --marfa-callout-* tokens, in light and dark. A content lint rule requires a title on every callout, and each page's callouts now carry one.

@aicayzer aicayzer left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: checks only

Styling change, looked at in the browser by the builder and again by the session; build, type check and tests pass.

@aicayzer
aicayzer marked this pull request as ready for review October 25, 2026 16:27
@aicayzer
aicayzer merged commit 1fd3277 into main Oct 25, 2026
7 checks passed
@aicayzer
aicayzer deleted the ui/callouts branch October 25, 2026 16:29
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