Mark
TypographyBrick 0.1.12

Mark

Mark renders a native static marked passage with restrained, theme-aware Brick paint.

Live example

Built from the published package

Interactive

The review found zero critical issues in the release candidate.

Choose with confidence

Know when Mark is the right part

Use it when

Use Mark for authored content whose relevance is already known.

Choose another path when

Do not use Mark for query matching, document-search state, stress emphasis, or selection behavior. Use Highlight for matching and Em for stress emphasis.

Installation and imports

tsx
import { Mark } from "@flowstack-ui/brick/mark";
import "@flowstack-ui/brick/styles.css";

For modular CSS:

tsx
import "@flowstack-ui/brick/styles/core.css";
import "@flowstack-ui/brick/styles/mark.css";

Mark is also available from @flowstack-ui/brick.

Quick start

tsx
<Text as="p">Deploy during the <Mark>approved window</Mark>.</Text>

Visual recipes and states

Subtle is a quiet marked surface, solid is high emphasis, and plain preserves semantic marking without background paint. Accent and neutral choose closed semantic color relationships.

Examples

tsx
<Mark variant="solid" tone="neutral">Scheduled maintenance</Mark>
Public contract

API

Start with the public parts and root options below. Components with multiple parts separate each area into its own named subsection.

PropValuesDefault
variantsubtle, solid, plainsubtle
toneaccent, neutralaccent
slotstringmark

Public exports are Mark, MarkProps, MarkVariant, and MarkTone.

Shared responsibility

Accessibility

Native mark expresses relevance. Mark adds no role or focus. Forced colors uses system highlight colors; plain remains distinguishable with an underline.

Responsive behavior

Mark follows surrounding inline flow and wraps with the marked passage.

Stable visual contract

Styling and tokens

Customization

Choose props first, then documented variables for a deliberate local recipe.

Tokens and CSS hooks

Use .brick-mark, data-slot, data-tone, data-variant, --brick-mark-background, --brick-mark-foreground, --brick-mark-radius, and --brick-mark-padding-inline.

Advanced reference

Open these details only when you need to inspect DOM ownership, native forwarding, or lower-level composition.

Maintainer resources

Tests, playground evidence, source notes, and release history remain available without crowding the plug-and-play guide.